Merge branch 'feature/add_freertos_hz_config' into 'master'

feat: configurate FreeRTOS HZ

See merge request sdk/ESP8266_RTOS_SDK!337
This commit is contained in:
Wu Jian Gang
2018-08-01 09:58:33 +08:00
3 changed files with 11 additions and 2 deletions

View File

@ -84,7 +84,7 @@
#define configUSE_TICK_HOOK 0
#define configUSE_TICKLESS_IDLE 1
#define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 100 )
#define configTICK_RATE_HZ ( ( portTickType ) CONFIG_FREERTOS_HZ )
#define configMAX_PRIORITIES 15
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 768 )
//#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )

View File

@ -26,6 +26,8 @@ and the Xtensa core configuration need not have a timer.
#ifndef XTENSA_TIMER_H
#define XTENSA_TIMER_H
#include "freertos/FreeRTOSConfig.h"
#ifdef XT_RTOS_TIMER_INT /* skip all this stuff if no timer int */
#ifdef __ASSEMBLER__
@ -125,7 +127,7 @@ editing this here or in xtensa_rtos.h, or compiling with xt-xcc option
"-DXT_TICKS_PER_SEC <value>" where <value> is a suitable number.
*/
#ifndef XT_TICK_PER_SEC
#define XT_TICK_PER_SEC 100 /* 10 ms tick = 100 ticks per second */
#define XT_TICK_PER_SEC CONFIG_FREERTOS_HZ /* 10 ms tick = 100 ticks per second */
#endif
/*