Blink LED on PA05 and print system millis over UART2. More...
#include "navhal.h"
Macros | |
| #define | CORTEX_M4 |
Functions | |
| int | main (void) |
Blink LED on PA05 and print system millis over UART2.
This example demonstrates:
© 2025 NAVROBOTEC PVT. LTD. All rights reserved.
| #define CORTEX_M4 |
| int main | ( | void | ) |
< Initialize SysTick with 40 µs tick
< Initialize UART2 at 9600 baud
< Configure PA05 as output
< Initialize TIM5 with prescaler 0 and auto-reload 1e9
< Set PA05 HIGH
< Delay 500 ms
< Set PA05 LOW
< Delay 500 ms
< Print label
< Print system millis
< Newline and carriage return