|
PebbleOS
|
SF32LB52-specific driver definitions. More...
Functions | |
| void | debounced_button_irq_handler (GPT_TypeDef *timer) |
| Interrupt handler of the button debounce timer. | |
| void | rc10k_init (void) |
| Initialize the RC10K low-power oscillator calibration. | |
| uint32_t | rc10k_get_freq_hz (void) |
| Get the calibrated RC10K frequency. | |
| uint32_t | rc10k_cyc_to_milli_ticks (uint32_t rc10k_cyc) |
| Convert RC10K cycles to RTC milli-ticks. | |
SF32LB52-specific driver definitions.
| void debounced_button_irq_handler | ( | GPT_TypeDef * | timer | ) |
Interrupt handler of the button debounce timer.
Connected by the board to the timer set in its button configuration.
| timer | Debounce timer. |
| uint32_t rc10k_cyc_to_milli_ticks | ( | uint32_t | rc10k_cyc | ) |
Convert RC10K cycles to RTC milli-ticks.
| rc10k_cyc | Number of RC10K cycles. |
| uint32_t rc10k_get_freq_hz | ( | void | ) |
Get the calibrated RC10K frequency.
| void rc10k_init | ( | void | ) |
Initialize the RC10K low-power oscillator calibration.
Calibrates the oscillator against the 48 MHz crystal now and then every 15 seconds.