mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 13:31:58 -04:00
Minor updates to the MSP430X CCS4 demo application.
This commit is contained in:
parent
947524522b
commit
2b92b7a5d9
|
@ -51,6 +51,15 @@
|
||||||
licensing and training services.
|
licensing and training services.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* The following #error directive is to remind users that a batch file must be
|
||||||
|
* executed prior to this project being built. The batch file *cannot* be
|
||||||
|
* executed from within CCS4! Once it has been executed, re-open or refresh
|
||||||
|
* the CCS4 project and remove the #error line below.
|
||||||
|
*/
|
||||||
|
#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
|
||||||
|
|
||||||
|
|
||||||
#ifndef FREERTOS_CONFIG_H
|
#ifndef FREERTOS_CONFIG_H
|
||||||
#define FREERTOS_CONFIG_H
|
#define FREERTOS_CONFIG_H
|
||||||
|
|
||||||
|
|
|
@ -78,8 +78,8 @@ void vConfigureTimerForRunTimeStats( void )
|
||||||
/* Ensure the timer is stopped. */
|
/* Ensure the timer is stopped. */
|
||||||
TA1CTL = 0;
|
TA1CTL = 0;
|
||||||
|
|
||||||
/* Run the timer from the ACLK/4. */
|
/* Run the timer from the ACLK/2. */
|
||||||
TA1CTL = TASSEL_1 | ID__4;
|
TA1CTL = TASSEL_1 | ID__2;
|
||||||
|
|
||||||
/* Clear everything to start with. */
|
/* Clear everything to start with. */
|
||||||
TA1CTL |= TACLR;
|
TA1CTL |= TACLR;
|
||||||
|
|
|
@ -236,13 +236,6 @@ typedef struct
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* The following #error directive is to remind users that a batch file must be
|
|
||||||
* executed prior to this project being built. The batch file *cannot* be
|
|
||||||
* executed from within CCS4! Once it has been executed, re-open the CCS4
|
|
||||||
* project and remove the #error line below.
|
|
||||||
*/
|
|
||||||
#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
|
|
||||||
|
|
||||||
/* The linker script tests the FreeRTOS ports use of 20bit addresses by
|
/* The linker script tests the FreeRTOS ports use of 20bit addresses by
|
||||||
locating all code in high memory. The following pragma ensures that main
|
locating all code in high memory. The following pragma ensures that main
|
||||||
remains in low memory. */
|
remains in low memory. */
|
||||||
|
@ -571,10 +564,10 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||||
|
|
||||||
/* The MSP430X port uses this callback function to configure its tick interrupt.
|
/* The MSP430X port uses this 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 vector for the chosen tick interrupt source. This implementation of
|
interrupt 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. */
|
||||||
void vApplicationSetupTimerInterrupt( void )
|
void vApplicationSetupTimerInterrupt( void )
|
||||||
{
|
{
|
||||||
const unsigned short usACLK_Frequency_Hz = 32768;
|
const unsigned short usACLK_Frequency_Hz = 32768;
|
||||||
|
|
|
@ -106,11 +106,11 @@ SECTIONS
|
||||||
.sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */
|
.sysmem : {} > RAM /* DYNAMIC MEMORY ALLOCATION AREA */
|
||||||
.stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */
|
.stack : {} > RAM (HIGH) /* SOFTWARE SYSTEM STACK */
|
||||||
|
|
||||||
/* Modified to test the use of high memory. */
|
/* Can be modified to test the use of high memory. */
|
||||||
/* Original line. */
|
/* Original line. */
|
||||||
/* .text : {}>> FLASH | FLASH2 */ /* CODE */
|
.text : {}>> FLASH | FLASH2 /* CODE */
|
||||||
/* Modified line. */
|
/* Modified line. */
|
||||||
.text : {}>> FLASH2 /* CODE */
|
/* .text : {}>> FLASH2 */ /* CODE */
|
||||||
.main : {} > FLASH
|
.main : {} > FLASH
|
||||||
.text:_isr : {} > FLASH /* ISR CODE SPACE */
|
.text:_isr : {} > FLASH /* ISR CODE SPACE */
|
||||||
.cinit : {} > FLASH /* INITIALIZATION TABLES */
|
.cinit : {} > FLASH /* INITIALIZATION TABLES */
|
||||||
|
|
Loading…
Reference in a new issue