]> granicus.if.org Git - esp-idf/commit
Disable some peripheral clocks when cpu starts
authorXiaXiaotian <xiaxiaotian@espressif.com>
Tue, 8 Aug 2017 08:58:58 +0000 (16:58 +0800)
committerXiaXiaotian <xiaxiaotian@espressif.com>
Tue, 29 Aug 2017 03:18:42 +0000 (11:18 +0800)
commit4776f73ca4651a5bb65b4db2407205c0dd39925e
treec72f3abbf6d581b30b654e134eca1bab6ead2609
parent4da7ee1295172fb0f64d8cfa1711170ed782ca42
Disable some peripheral clocks when cpu starts

    All peripheral clocks are default enabled after chip is powered on.
    When CPU starts, if reset reason is CPU reset, disable those clocks
    that are not enabled before reset. Otherwise, disable all those
    useless clocks.
    These peripheral clocks must be enabled when the peripherals are
    initialized and disabled when they are deinitialized.
components/esp32/clk.c
components/esp32/cpu_start.c
components/esp32/include/esp_clk.h
components/soc/esp32/include/soc/dport_reg.h