MeterLogger
Functions
rfinit.c File Reference
#include "ets_sys.h"
#include "osapi.h"
#include "user_interface.h"
Include dependency graph for rfinit.c:

Go to the source code of this file.

Functions

uint32 ICACHE_FLASH_ATTR __attribute__ ((weak))
 

Function Documentation

◆ __attribute__()

void __attribute__ ( (weak)  )

Definition at line 28 of file rfinit.c.

References FLASH_SIZE_16M_MAP_1024_1024, FLASH_SIZE_16M_MAP_512_512, FLASH_SIZE_32M_MAP_1024_1024, FLASH_SIZE_32M_MAP_512_512, FLASH_SIZE_4M_MAP_256_256, FLASH_SIZE_8M_MAP_512_512, system_get_flash_size_map(), system_phy_set_max_tpw(), and system_phy_set_rfoption().

30 {
31  enum flash_size_map size_map = system_get_flash_size_map();
32  uint32 rf_cal_sec = 0;
33 
34  switch (size_map) {
36  rf_cal_sec = 128 - 5;
37  break;
38 
40  rf_cal_sec = 256 - 5;
41  break;
42 
45  rf_cal_sec = 512 - 5;
46  break;
47 
50  rf_cal_sec = 1024 - 5;
51  break;
52 
53  default:
54  rf_cal_sec = 0;
55  break;
56  }
57 
58  return rf_cal_sec;
59 }
enum flash_size_map system_get_flash_size_map(void)
flash_size_map
unsigned int uint32
Definition: c_types.h:54
Here is the call graph for this function: