mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-22 08:22:04 +03:00
Update to SDK 1.5 (#1102)
This commit is contained in:
@ -31,7 +31,7 @@ extern "C" {
|
||||
#include "user_interface.h"
|
||||
#include "cont.h"
|
||||
}
|
||||
#define LOOP_TASK_PRIORITY 0
|
||||
#define LOOP_TASK_PRIORITY 1
|
||||
#define LOOP_QUEUE_SIZE 1
|
||||
|
||||
#define OPTIMISTIC_YIELD_TIME_US 16000
|
||||
@ -73,7 +73,7 @@ extern "C" void esp_yield() {
|
||||
}
|
||||
|
||||
extern "C" void esp_schedule() {
|
||||
system_os_post(LOOP_TASK_PRIORITY, 0, 0);
|
||||
ets_post(LOOP_TASK_PRIORITY, 0, 0);
|
||||
}
|
||||
|
||||
extern "C" void __yield() {
|
||||
@ -144,7 +144,7 @@ extern "C" void user_init(void) {
|
||||
|
||||
cont_init(&g_cont);
|
||||
|
||||
system_os_task(loop_task,
|
||||
ets_task(loop_task,
|
||||
LOOP_TASK_PRIORITY, g_loop_queue,
|
||||
LOOP_QUEUE_SIZE);
|
||||
|
||||
|
@ -231,6 +231,13 @@ static uint8_t phy_init_data[128] =
|
||||
// force_freq_offset
|
||||
// signed, unit is 8kHz
|
||||
[113] = 0,
|
||||
|
||||
// rf_cal_use_flash
|
||||
// 0: RF init no RF CAL, using all RF CAL data in flash, it takes about 2ms for RF init
|
||||
// 1: RF init only do TX power control CAL, others using RF CAL data in flash , it takes about 20ms for RF init
|
||||
// 2: RF init no RF CAL, using all RF CAL data in flash, it takes about 2ms for RF init (same as 0?!)
|
||||
// 3: RF init do all RF CAL, it takes about 200ms for RF init
|
||||
[114] = 2
|
||||
};
|
||||
|
||||
extern int __real_register_chipv6_phy(uint8_t* init_data);
|
||||
|
Reference in New Issue
Block a user