|
M5UnitUnified 0.2.0 git rev:9e1ffe1
|
Adapters to treat M5HAL and RMT in the same way. More...
#include "adapter_gpio.hpp"#include <driver/gpio.h>#include <esp_adc/adc_oneshot.h>#include <esp_timer.h>Namespaces | |
| namespace | m5 |
| Top level namespace of M5stack. | |
Functions | |
| uint8_t | m5::unit::gpio::calculate_rmt_clk_div (const uint32_t apb_freq_hz, const uint32_t tick_ns) |
| Calculate clk_div from desired tick time (nanoseconds) | |
| uint32_t | m5::unit::gpio::calculate_rmt_resolution_hz (const uint32_t apb_freq_hz, const uint32_t tick_ns) |
| Calculate resolution from desired tick time. | |
Adapters to treat M5HAL and RMT in the same way.
| uint8_t m5::unit::gpio::calculate_rmt_clk_div | ( | const uint32_t | apb_freq_hz, |
| const uint32_t | tick_ns ) |
Calculate clk_div from desired tick time (nanoseconds)
| apb_freq_hz | Current APB clock (Hz) |
| tick_ns | Desired tick time (ns) |
| uint32_t m5::unit::gpio::calculate_rmt_resolution_hz | ( | const uint32_t | apb_freq_hz, |
| const uint32_t | tick_ns ) |
Calculate resolution from desired tick time.
| apb_freq_hz | Current APB clock (Hz) |
| tick_ns | Desired tick time (ns) |