mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Update the demo directory to use the version 8 type naming conventions.
This commit is contained in:
parent
c6d8892b0d
commit
5a2a8fc319
639 changed files with 3127 additions and 3470 deletions
|
|
@ -121,7 +121,7 @@ static const uint32_t ulAlarmValueForOneTick = ( configSYSTICK_CLOCK_HZ / config
|
|||
/* Holds the maximum number of ticks that can be suppressed - which is
|
||||
basically how far into the future an interrupt can be generated. Set
|
||||
during initialisation. */
|
||||
static portTickType xMaximumPossibleSuppressedTicks = 0;
|
||||
static TickType_t xMaximumPossibleSuppressedTicks = 0;
|
||||
|
||||
/* Flag set from the tick interrupt to allow the sleep processing to know if
|
||||
sleep mode was exited because of an AST interrupt or a different interrupt. */
|
||||
|
|
@ -250,11 +250,11 @@ static void prvEnableAST( void )
|
|||
defined in the FreeRTOS Cortex-M3 port layer with a version that manages the
|
||||
asynchronous timer (AST), as the tick is generated from the low power AST and
|
||||
not the SysTick as would normally be the case on a Cortex-M. */
|
||||
void vPortSuppressTicksAndSleep( portTickType xExpectedIdleTime )
|
||||
void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
|
||||
{
|
||||
uint32_t ulAlarmValue, ulCompleteTickPeriods, ulInterruptStatus;
|
||||
eSleepModeStatus eSleepAction;
|
||||
portTickType xModifiableIdleTime;
|
||||
TickType_t xModifiableIdleTime;
|
||||
enum sleepmgr_mode xSleepMode;
|
||||
|
||||
/* THIS FUNCTION IS CALLED WITH THE SCHEDULER SUSPENDED. */
|
||||
|
|
|
|||
|
|
@ -88,11 +88,11 @@ or 0 to run the more comprehensive test and demo application. */
|
|||
#define configCPU_CLOCK_HZ 16384
|
||||
#define configSYSTICK_CLOCK_HZ 16384
|
||||
#define configUSE_TICKLESS_IDLE 1
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 128 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 128 )
|
||||
#else
|
||||
#define configCPU_CLOCK_HZ sysclk_get_cpu_hz()
|
||||
#define configUSE_TICKLESS_IDLE 0
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#endif /* configCREATE_LOW_POWER_DEMO */
|
||||
|
||||
#define configUSE_PREEMPTION 1
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ extern void main_full( void );
|
|||
within this file. */
|
||||
void vApplicationMallocFailedHook( void );
|
||||
void vApplicationIdleHook( void );
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );
|
||||
void vApplicationTickHook( void );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
@ -186,7 +186,7 @@ void vApplicationIdleHook( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
|
||||
{
|
||||
( void ) pcTaskName;
|
||||
( void ) pxTask;
|
||||
|
|
|
|||
|
|
@ -133,13 +133,13 @@
|
|||
|
||||
/* The period after which the check timer will expire providing no errors
|
||||
have been reported by any of the standard demo tasks. ms are converted to the
|
||||
equivalent in ticks using the portTICK_RATE_MS constant. */
|
||||
#define mainCHECK_TIMER_PERIOD_MS ( 3000UL / portTICK_RATE_MS )
|
||||
equivalent in ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainCHECK_TIMER_PERIOD_MS ( 3000UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* The period at which the check timer will expire, in ms, if an error has been
|
||||
reported in one of the standard demo tasks. ms are converted to the equivalent
|
||||
in ticks using the portTICK_RATE_MS constant. */
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_RATE_MS )
|
||||
in ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* The LED toggled by the check timer. */
|
||||
#define mainCHECK_LED ( 0 )
|
||||
|
|
@ -149,13 +149,13 @@ in ticks using the portTICK_RATE_MS constant. */
|
|||
/*
|
||||
* The check timer callback function, as described at the top of this file.
|
||||
*/
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer );
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void main_full( void )
|
||||
{
|
||||
xTimerHandle xCheckTimer = NULL;
|
||||
TimerHandle_t xCheckTimer = NULL;
|
||||
|
||||
/* Start all the other standard demo/test tasks. They have not particular
|
||||
functionality, but do demonstrate how to use the FreeRTOS API and test the
|
||||
|
|
@ -195,7 +195,7 @@ xTimerHandle xCheckTimer = NULL;
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer )
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer )
|
||||
{
|
||||
static long lChangedTimerPeriodAlready = pdFALSE;
|
||||
unsigned long ulErrorFound = pdFALSE;
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ empty. */
|
|||
#define mainQUEUE_LED ( 0 )
|
||||
|
||||
/* The rate at which the Tx task sends to the queue. */
|
||||
#define mainTX_DELAY ( 500UL / portTICK_RATE_MS )
|
||||
#define mainTX_DELAY ( 500UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* A block time of zero simply means "don't block". */
|
||||
#define mainDONT_BLOCK ( 0 )
|
||||
|
|
@ -147,7 +147,7 @@ empty. */
|
|||
/* The length of time the LED will remain on for. It is on just long enough
|
||||
to be able to see with the human eye so as not to distort the power readings too
|
||||
much. */
|
||||
#define mainLED_TOGGLE_DELAY ( 20 / portTICK_RATE_MS )
|
||||
#define mainLED_TOGGLE_DELAY ( 20 / portTICK_PERIOD_MS )
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ static void prvQueueSendTask( void *pvParameters );
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* The queue to pass data from the Tx task to the Rx task. */
|
||||
static xQueueHandle xQueue = NULL;
|
||||
static QueueHandle_t xQueue = NULL;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue