mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Minor updates to the MSP430X CCS4 demo application.
This commit is contained in:
parent
2b92b7a5d9
commit
1b96233cf1
|
@ -111,11 +111,11 @@ to exclude the API function. */
|
||||||
|
|
||||||
/* The MSP430X port uses a callback function to configure its tick interrupt.
|
/* The MSP430X port uses a callback function to configure its tick interrupt.
|
||||||
This allows the application to choose the tick interrupt source.
|
This allows the application to choose the tick interrupt source.
|
||||||
configTICK_INTERRUPT_VECTOR must also be set in FreeRTOSConfig.h to the correct
|
configTICK_VECTOR must also be set in FreeRTOSConfig.h to the correct interrupt
|
||||||
interrupt vector for the chosen tick interrupt source. This implementation of
|
vector for the chosen tick interrupt source. This implementation of
|
||||||
vApplicationSetupTimerInterrupt() generates the tick from timer A0, so in this
|
vApplicationSetupTimerInterrupt() generates the tick from timer A0, so in this
|
||||||
case configTICK_INTERRUPT_VECTOR is set to TIMER0_A0_VECTOR. */
|
case configTICK_VECTOR is set to TIMER0_A0_VECTOR. */
|
||||||
#define configTICK_INTERRUPT_VECTOR TIMER0_A0_VECTOR
|
#define configTICK_VECTOR TIMER0_A0_VECTOR
|
||||||
|
|
||||||
extern void vConfigureTimerForRunTimeStats( void );
|
extern void vConfigureTimerForRunTimeStats( void );
|
||||||
extern unsigned long ulGetRunTimeStatsTime( void );
|
extern unsigned long ulGetRunTimeStatsTime( void );
|
||||||
|
|
|
@ -183,6 +183,9 @@ information. */
|
||||||
|
|
||||||
/* The maximum number of lines of text that can be displayed on the LCD. */
|
/* The maximum number of lines of text that can be displayed on the LCD. */
|
||||||
#define mainMAX_LCD_LINES ( 8 )
|
#define mainMAX_LCD_LINES ( 8 )
|
||||||
|
|
||||||
|
/* Just used to ensure parameters are passed into tasks correctly. */
|
||||||
|
#define mainTASK_PARAMETER_CHECK_VALUE ( ( void * ) 0xDEAD )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -265,7 +268,7 @@ void main( void )
|
||||||
|
|
||||||
/* Create the LCD, button poll and register test tasks, as described at
|
/* Create the LCD, button poll and register test tasks, as described at
|
||||||
the top of this file. */
|
the top of this file. */
|
||||||
xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, NULL, mainLCD_TASK_PRIORITY, NULL );
|
xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, mainTASK_PARAMETER_CHECK_VALUE, mainLCD_TASK_PRIORITY, NULL );
|
||||||
xTaskCreate( prvButtonPollTask, ( signed char * ) "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
|
xTaskCreate( prvButtonPollTask, ( signed char * ) "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
|
||||||
xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );
|
xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );
|
||||||
xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );
|
xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );
|
||||||
|
@ -304,6 +307,14 @@ unsigned char ucLine = 1;
|
||||||
can be viewed in the terminal IO window within the IAR Embedded Workbench. */
|
can be viewed in the terminal IO window within the IAR Embedded Workbench. */
|
||||||
printf( "%d bytes of heap space remain unallocated\n", ( int ) xPortGetFreeHeapSize() );
|
printf( "%d bytes of heap space remain unallocated\n", ( int ) xPortGetFreeHeapSize() );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
|
||||||
|
/* Just as a test of the port, and for no functional reason, check the task
|
||||||
|
parameter contains its expected value. */
|
||||||
|
if( pvParameters != mainTASK_PARAMETER_CHECK_VALUE )
|
||||||
|
{
|
||||||
|
halLcdPrintLine( "Invalid parameter", ucLine, OVERWRITE_TEXT );
|
||||||
|
ucLine++;
|
||||||
|
}
|
||||||
|
|
||||||
for( ;; )
|
for( ;; )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue