mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-23 10:08:06 +08:00
Merge branch 'feature/add_settings_for_wifi_tx_power_to_menuconfig' into 'master'
feat(esp8266): add settings for wifi tx power to menuconfig See merge request sdk/ESP8266_RTOS_SDK!899
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
#include "esp_phy_init.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
// constrain a value between 'low' and 'high', inclusive
|
||||
#define LIMIT(val, low, high) ((val < low) ? low : (val > high) ? high : val)
|
||||
#define PHY_INIT_MAGIC "PHYINIT"
|
||||
|
||||
static const char phy_init_magic_pre[] = PHY_INIT_MAGIC;
|
||||
@ -59,12 +61,12 @@ static const esp_phy_init_data_t phy_init_data= { {
|
||||
0x00,
|
||||
0xf8,
|
||||
0xf8,
|
||||
0x52,
|
||||
0x4e,
|
||||
0x4a,
|
||||
0x44,
|
||||
0x40,
|
||||
0x38,
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x52),
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x4e),
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x4a),
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x44),
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x40),
|
||||
LIMIT(CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER * 4, 0, 0x38),
|
||||
0x00,
|
||||
0x00,
|
||||
0x01,
|
||||
|
Reference in New Issue
Block a user