NavHAL 0.1.0
NAVRobotec's architecture-agnostic HAL for embedded systems.
Loading...
Searching...
No Matches
main.c File Reference

Example application: Print Timer5 count over UART2 continuously. More...

#include "navhal.h"
Include dependency graph for main.c:

Macros

#define CORTEX_M4

Functions

int main (void)

Detailed Description

Example application: Print Timer5 count over UART2 continuously.

  • Initializes SysTick with 1 ms tick.
  • Initializes UART2 at 9600 baud.
  • Initializes TIM5 timer.
  • Continuously prints the TIM5 count via UART2.

Macro Definition Documentation

◆ CORTEX_M4

#define CORTEX_M4

Function Documentation

◆ main()

int main ( void )

< Initialize SysTick with 1 ms tick

< Initialize UART2 at 9600 baud

< Initialize TIM5 with auto-reload 1e9

< Print label

< Convert timer value to string

< Newline and carriage return