mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-19 21:39:07 +08:00
fix(freertos): Fix timer frequency error when switch CPU frequncy
This commit is contained in:
components
@ -111,7 +111,9 @@ Adjust this frequency to taste (it's not real-time anyway!).
|
||||
#ifdef XT_XT2000 /* deprecated */
|
||||
#define XT_CLOCK_FREQ 16500000 /* 16.5 MHz (XT2000 default) */
|
||||
#else
|
||||
#define XT_CLOCK_FREQ 80000000
|
||||
//#define XT_CLOCK_FREQ 80000000
|
||||
#define XT_BOARD
|
||||
#define xtbsp_clock_freq_hz() 80000000
|
||||
#endif
|
||||
#endif /* XT_SIMULATOR */
|
||||
|
||||
|
@ -204,6 +204,7 @@ portBASE_TYPE xPortStartScheduler(void)
|
||||
_xt_isr_unmask(1 << ETS_SOFT_INUM);
|
||||
|
||||
/* Initialize system tick timer interrupt and schedule the first tick. */
|
||||
_xt_tick_divisor_init();
|
||||
_xt_tick_timer_init();
|
||||
|
||||
vTaskSwitchContext();
|
||||
|
Reference in New Issue
Block a user