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

Example application: Send "Hello World" via UART2 every 1 second. More...

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

Macros

#define CORTEX_M4

Functions

int main (void)

Detailed Description

Example application: Send "Hello World" via UART2 every 1 second.

  • Initializes SysTick timer with 1 ms tick.
  • Initializes UART2 peripheral with 9600 baud rate.
  • Sends "Hello World" over UART2 in a 1-second loop.

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

< Send string over UART2

< Wait for 1 second