mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
Merge branch 'bugfix/fix_timer_freq_error_when_switch_cpu_freq' into 'master'
Fix timer frequency error when switch CPU frequncy See merge request sdk/ESP8266_RTOS_SDK!416
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
gwen:
|
gwen:
|
||||||
crypto: 8943c89
|
crypto: 8943c89
|
||||||
espnow: 8943c89
|
espnow: 8943c89
|
||||||
core: f4f0d3d
|
core: c875f12
|
||||||
net80211: ac9e664
|
net80211: ac9e664
|
||||||
pp: 830c0c8
|
pp: 830c0c8
|
||||||
pwm: 0181338
|
pwm: 0181338
|
||||||
|
Binary file not shown.
@ -111,7 +111,9 @@ Adjust this frequency to taste (it's not real-time anyway!).
|
|||||||
#ifdef XT_XT2000 /* deprecated */
|
#ifdef XT_XT2000 /* deprecated */
|
||||||
#define XT_CLOCK_FREQ 16500000 /* 16.5 MHz (XT2000 default) */
|
#define XT_CLOCK_FREQ 16500000 /* 16.5 MHz (XT2000 default) */
|
||||||
#else
|
#else
|
||||||
#define XT_CLOCK_FREQ 80000000
|
//#define XT_CLOCK_FREQ 80000000
|
||||||
|
#define XT_BOARD
|
||||||
|
#define xtbsp_clock_freq_hz() 80000000
|
||||||
#endif
|
#endif
|
||||||
#endif /* XT_SIMULATOR */
|
#endif /* XT_SIMULATOR */
|
||||||
|
|
||||||
|
@ -204,6 +204,7 @@ portBASE_TYPE xPortStartScheduler(void)
|
|||||||
_xt_isr_unmask(1 << ETS_SOFT_INUM);
|
_xt_isr_unmask(1 << ETS_SOFT_INUM);
|
||||||
|
|
||||||
/* Initialize system tick timer interrupt and schedule the first tick. */
|
/* Initialize system tick timer interrupt and schedule the first tick. */
|
||||||
|
_xt_tick_divisor_init();
|
||||||
_xt_tick_timer_init();
|
_xt_tick_timer_init();
|
||||||
|
|
||||||
vTaskSwitchContext();
|
vTaskSwitchContext();
|
||||||
|
Reference in New Issue
Block a user