From b450fbbf1135e9c6ebd08c61d6b33927855e7db5 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sat, 29 Jan 2011 15:49:42 +0000 Subject: [PATCH] Add some comments to the PIC32 demos that the IPL setting in an ISR prototype has no effect if the FreeRTOS assembly wrapper is being used. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1269 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/PIC32MX_MPLAB/IntQueueTimer.c | 3 +++ Demo/PIC32MX_MPLAB/serial/serial.c | 5 ++++- Demo/PIC32MX_MPLAB/timertest.c | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Demo/PIC32MX_MPLAB/IntQueueTimer.c b/Demo/PIC32MX_MPLAB/IntQueueTimer.c index e823dd6a7..15b40d0bd 100644 --- a/Demo/PIC32MX_MPLAB/IntQueueTimer.c +++ b/Demo/PIC32MX_MPLAB/IntQueueTimer.c @@ -61,6 +61,9 @@ void vT3InterruptHandler( void ); void vT4InterruptHandler( void ); +/* As these interrupts use the FreeRTOS interrupt entry point, the IPL settings +in the following prototypes have no effect. The interrupt priorities are set +by the ConfigIntTimerX() library calls in vInitialiseTimerForIntQueueTest(). */ void __attribute__( (interrupt(ipl0), vector(_TIMER_3_VECTOR))) vT3InterruptWrapper( void ); void __attribute__( (interrupt(ipl0), vector(_TIMER_4_VECTOR))) vT4InterruptWrapper( void ); diff --git a/Demo/PIC32MX_MPLAB/serial/serial.c b/Demo/PIC32MX_MPLAB/serial/serial.c index 78b84c4e0..7bc98af09 100644 --- a/Demo/PIC32MX_MPLAB/serial/serial.c +++ b/Demo/PIC32MX_MPLAB/serial/serial.c @@ -82,7 +82,10 @@ static portBASE_TYPE xTxHasEnded; /*-----------------------------------------------------------*/ -/* The UART interrupt handler. */ +/* The UART interrupt handler. As this uses the FreeRTOS assembly interrupt +entry point the IPL setting in the following prototype has no effect. The +interrupt priority is set by the call to ConfigIntUART2() in +xSerialPortInitMinimal(). */ void __attribute__( (interrupt(ipl1), vector(_UART2_VECTOR))) vU2InterruptWrapper( void ); /*-----------------------------------------------------------*/ diff --git a/Demo/PIC32MX_MPLAB/timertest.c b/Demo/PIC32MX_MPLAB/timertest.c index 6ea6ebd5c..ba32d7a30 100644 --- a/Demo/PIC32MX_MPLAB/timertest.c +++ b/Demo/PIC32MX_MPLAB/timertest.c @@ -60,7 +60,9 @@ /* The maximum value the 16bit timer can contain. */ #define timerMAX_COUNT 0xffff -/* The timer 2 interrupt handler. */ +/* The timer 2 interrupt handler. As this interrupt uses the FreeRTOS assembly +entry point the IPL setting in the following function prototype has no effect. +The interrupt priority is set by ConfigIntTimer2() in vSetupTimerTest(). */ void __attribute__( (interrupt(ipl0), vector(_TIMER_2_VECTOR))) vT2InterruptWrapper( void ); /*-----------------------------------------------------------*/ -- 2.39.5