Includes <System Includes> , "Project Includes"\r
******************************************************************************/\r
#include <stddef.h>\r
+#include <stdint.h>\r
\r
/******************************************************************************\r
Macro definitions\r
/******************************************************************************\r
Typedef definitions\r
******************************************************************************/\r
+\r
typedef char char_t;\r
-typedef unsigned int bool_t;\r
typedef int int_t;\r
-typedef signed char int8_t;\r
-typedef signed short int16_t;\r
-typedef signed long int32_t;\r
-typedef signed long long int64_t;\r
-typedef unsigned char uint8_t;\r
-typedef unsigned short uint16_t;\r
-typedef unsigned long uint32_t;\r
-typedef unsigned long long uint64_t;\r
-typedef float float32_t;\r
-typedef double float64_t;\r
-typedef long double float128_t;\r
\r
+#ifdef TYPES_ALREADY_DEFINED_IN_STDINT\r
+ typedef unsigned int bool_t;\r
+ typedef signed char int8_t;\r
+ typedef signed short int16_t;\r
+ typedef signed long int32_t;\r
+ typedef signed long long int64_t;\r
+ typedef unsigned char uint8_t;\r
+ typedef unsigned short uint16_t;\r
+ typedef unsigned long uint32_t;\r
+ typedef unsigned long long uint64_t;\r
+ typedef float float32_t;\r
+ typedef double float64_t;\r
+ typedef long double float128_t;\r
+#endif\r
#endif /* R_TYPEDEFS_H */\r
\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
#define configUSE_TICK_HOOK 1\r
#define configCPU_CLOCK_HZ ( 96000000UL )\r
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )\r
-#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )\r
+#define configMAX_PRIORITIES ( 5 )\r
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 )\r
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 30 * 1024 ) )\r
#define configMAX_TASK_NAME_LEN ( 10 )\r
\r
/* This demo makes use of one or more example stats formatting functions. These\r
format the raw data provided by the uxTaskGetSystemState() function in to human\r
-readable ASCII form. See the notes in the implementation of vTaskList() within \r
+readable ASCII form. See the notes in the implementation of vTaskList() within\r
FreeRTOS/Source/tasks.c for limitations. */\r
#define configUSE_STATS_FORMATTING_FUNCTIONS 1\r
\r
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!\r
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */\r
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )\r
- \r
+\r
/* Normal assert() semantics without relying on the provision of an assert.h\r
header file. */\r
-#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } \r
- \r
+#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
+\r
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS\r
standard names. */\r
#define vPortSVCHandler SVC_Handler\r
#define configUSE_APPLICATION_TASK_TAG 0\r
#define configUSE_COUNTING_SEMAPHORES 1\r
\r
+/* The full demo always has tasks to run so the tick will never be turned off.\r
+The blinky demo will use the default tickless idle implementation to turn the\r
+tick off. */\r
+#define configUSE_TICKLESS_IDLE 1\r
+\r
/* Run time stats gathering definitions. */\r
void vConfigureTimerForRunTimeStats( void );\r
uint32_t ulGetRunTimeCounterValue( void );\r
/* Constants required to pend a PendSV interrupt from the tick ISR if the\r
preemptive scheduler is being used. These are just standard bits and registers\r
within the Cortex-M core itself. */\r
-#define portNVIC_INT_CTRL_REG ( * ( ( volatile unsigned long * ) 0xe000ed04 ) )\r
#define portNVIC_PENDSVSET_BIT ( 1UL << 28UL )\r
\r
/* The alarm used to generate interrupts in the asynchronous timer. */\r
/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
#define configUSE_TICK_HOOK 1\r
#define configCPU_CLOCK_HZ ( SystemCoreClock )\r
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )\r
-#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )\r
+#define configMAX_PRIORITIES ( 5 )\r
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 90 )\r
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 60 * 1024 ) )\r
#define configMAX_TASK_NAME_LEN ( 10 )\r
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!\r
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */\r
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )\r
- \r
-#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } \r
- \r
+\r
+#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
+\r
#define vPortSVCHandler SVC_Handler\r
#define xPortPendSVHandler PendSV_Handler\r
#define vPortSVCHandler SVC_Handler\r