mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
148 lines
2.8 KiB
C
148 lines
2.8 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include "sdkconfig.h"
|
|
#include "phy_init_data.h"
|
|
|
|
|
|
const char __attribute__((section(".rodata"))) phy_init_magic_pre[] = PHY_INIT_MAGIC;
|
|
|
|
/**
|
|
* @brief Structure containing default recommended PHY initialization parameters.
|
|
*/
|
|
const esp_phy_init_data_t phy_init_data= { {
|
|
0x1,
|
|
0x0,
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x50),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x50),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x50),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x50),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x34),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x34),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x4c),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x4c),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x30),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x30),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x28),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x24),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x24),
|
|
LIMIT(CONFIG_ESP_PHY_MAX_TX_POWER * 4, 0, 0x24),
|
|
LIMIT(CONFIG_ESP_P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|
|
0x51
|
|
} };
|
|
|
|
const char __attribute__((section(".rodata"))) phy_init_magic_post[] = PHY_INIT_MAGIC;
|