OVMS3-idf/components
Ivan Grokhotkov 2e31cce390 soc/rtc: CPU frequency settings refactoring
Previous APIs used to set CPU frequency used CPU frequencies listed in
rtc_cpu_freq_t enumeration. This was problematic for two reasons.
First, supporting many possible frequency values obtained by dividing
XTAL frequency was hard, as every value would have to be listed in
the enumeration. Since different base XTAL frequencies are supported,
this further complicated things, since not all of these divided
frequencies would be valid for any given XTAL frequency. Second,
having to deal with enumeration values often involved switch
statements to convert between enumeration and MHz values, handle
PLL/XTAL frequencies separately, etc.

This change introduces rtc_cpu_freq_config_t structure, which contains
CPU frequency (in MHz) and information on how this frequency has to
be generated: clock source (XTAL/PLL), source frequency, clock
divider value. More fields can be added to this structure in the
future. This structure simplifies many parts of the code, since both
frequency value and frequency generation settings can be accessed in
any place in code without the need for conversions.

Additionally, this change adds setting of REF_TICK dividers to support
frequencies lower then XTAL with DFS.
2018-08-21 13:02:03 +08:00
..
app_trace Replace all DOS line endings with Unix 2018-07-12 19:10:37 +08:00
app_update app_update: Add API for getting sha256_of_partition 2018-08-13 13:59:07 +05:00
asio asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
aws_iot aws-iot: Update to 3.0.1 release 2018-08-07 11:28:54 +05:30
bootloader Merge branch 'bugfix/bootloader_noreturn_always' into 'master' 2018-07-23 11:56:14 +08:00
bootloader_support soc/rtc_wdt: Add API functions for rtc_wdt 2018-08-14 17:48:02 +05:00
bt Merge branch 'bugfix/btdm_ecdh_public_key_not_check' into 'master' 2018-08-13 15:44:13 +08:00
coap gcc8_newlib3: Compilation warnings and errors not specific to newlib v3 2018-07-09 13:22:24 +03:00
console console: Suppress unused warning asprintf result 2018-07-24 06:08:48 +00:00
cxx gcc8_newlib3: Compilation warnings and errors not specific to newlib v3 2018-07-09 13:22:24 +03:00
driver Merge branch 'bugfix/gpio_reset_bitmask' into 'master' 2018-08-10 17:35:26 +08:00
esp-tls Merge branch 'bugfix/esp_tls_error_logging' into 'master' 2018-04-23 20:18:30 +08:00
esp32 esp_clk.h: add esp_clk_xtal_freq 2018-08-21 13:02:03 +08:00
esp_adc_cal bugfix/Fix BLK3_RESERVED_FLAG register and other minor bugs 2018-03-16 15:51:36 +08:00
esp_http_client Merge branch 'bugfix/http_client_null_auth_header' into 'master' 2018-08-10 13:44:55 +08:00
esp_https_ota esp_https_ota: Add support for HTTPS based ota feature 2018-08-03 16:47:07 +05:30
espcoredump coredump: Adds support for ROM ELF file to 'espcoredump' script 2018-07-05 22:20:20 +03:00
esptool_py secure boot: Pad to avoid data after the signature mapping into the address space 2018-07-17 15:33:47 +10:00
ethernet remove executable permission from source files 2018-05-29 20:07:45 +08:00
expat expat: add source of entropy 2018-08-02 11:02:45 +02:00
fatfs Erase flash before the first use added. 2018-07-31 08:45:43 +03:00
freertos freertos: Remove either one or two assertions from "fast path" of vPortCPUReleaseMutex() 2018-07-31 06:35:25 +00:00
heap Merge branch 'doc/heap_tracing' into 'master' 2018-08-10 16:46:52 +08:00
http_server Http Server : Add a simple light weight HTTP Server Component. 2018-07-20 15:49:17 +05:30
idf_test test: update Wi-Fi test cases: 2018-08-07 10:50:05 +00:00
jsmn
json cJSON : Include only source file objects 2018-04-30 13:51:54 +05:30
libsodium gcc8_newlib3: Compilation warnings and errors not specific to newlib v3 2018-07-09 13:22:24 +03:00
log doc: fix the level inconsistent issue in Kconfig document 2018-06-05 10:36:18 +00:00
lwip asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
mbedtls Merge branch 'feature/mbedtls_2_12_0' into 'master' 2018-08-01 14:56:50 +08:00
mdns mdns: Fix a portion of the queries are issued with the wildcard query type 2018-08-14 07:25:08 +00:00
micro-ecc micro-ecc: update to v1.0 2018-06-10 21:20:55 +08:00
newlib expat: add source of entropy 2018-08-02 11:02:45 +02:00
nghttp gcc8_newlib3: Compilation warnings and errors not specific to newlib v3 2018-07-09 13:22:24 +03:00
nvs_flash nvs: fix memory leak when writing a blob 2018-08-09 10:35:19 +03:00
openssl Merge branch 'bugfix/fixes_from_github' into 'master' 2018-07-13 15:03:50 +08:00
partition_table partition table: Remove hard-coded offsets from default partition tables 2018-08-01 19:23:38 +10:00
pthread pthread: fix esp_pthread.h to compatible with c++ 2018-07-11 14:21:09 +08:00
sdmmc remove executable permission from source files 2018-05-29 20:07:45 +08:00
smartconfig_ack smartconfig_ack.c : Fixed the declaration of remote_ip in sc_ack_send_task() 2018-07-03 16:28:24 +05:30
soc soc/rtc: CPU frequency settings refactoring 2018-08-21 13:02:03 +08:00
spi_flash app_update: Add API for getting sha256_of_partition 2018-08-13 13:59:07 +05:00
spiffs Merge branch 'bugfix/spiffs_readdir_recursion' into 'master' 2018-07-26 08:33:24 +08:00
tcpip_adapter remove executable permission from source files 2018-05-29 20:07:45 +08:00
ulp ulp: add tests for jumps instruction 2018-08-13 16:48:27 +00:00
vfs asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
wear_levelling Build test applicatoin on host failer fixed. 2018-07-31 08:45:43 +03:00
wpa_supplicant wpa_supplicant: removed unrequired header dir include from component.mk 2018-07-30 11:17:11 +05:30
xtensa-debug-module remove executable permission from source files 2018-05-29 20:07:45 +08:00