Example: Multiple timers with callbacks and UART output. More...
#include "navhal.h"
Macros | |
| #define | CORTEX_M4 |
Functions | |
| void | print2 (void) |
| void | print3 (void) |
| void | print4 (void) |
| void | print5 (void) |
| void | print6 (void) |
| void | print7 (void) |
| void | print9 (void) |
| void | print12 (void) |
| int | main (void) |
Variables | |
| hal_pll_config_t | pll_cfg |
| hal_clock_config_t | cfg = {.source = HAL_CLOCK_SOURCE_HSI} |
Example: Multiple timers with callbacks and UART output.
This example demonstrates:
© 2025 NAVROBOTEC PVT. LTD. All rights reserved.
| #define CORTEX_M4 |
| int main | ( | void | ) |
< 1 ms tick
< UART2 at 9600 baud
< 1-second delay
| void print12 | ( | void | ) |
| void print2 | ( | void | ) |
| void print3 | ( | void | ) |
| void print4 | ( | void | ) |
| void print5 | ( | void | ) |
| void print6 | ( | void | ) |
| void print7 | ( | void | ) |
| void print9 | ( | void | ) |
| hal_clock_config_t cfg = {.source = HAL_CLOCK_SOURCE_HSI} |
Use HSI as system clock
| hal_pll_config_t pll_cfg |
PLL config (unused if HSI)