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

Example application: Toggle LED on GPIO_PA05 based on button input on GPIO_PC13. More...

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

Macros

#define CORTEX_M4

Functions

int main (void)

Detailed Description

Example application: Toggle LED on GPIO_PA05 based on button input on GPIO_PC13.

  • Initializes SysTick timer with 1 ms tick.
  • Configures GPIO_PA05 as output (LED).
  • Configures GPIO_PC13 as input with pull-up (button).
  • Turns on the LED when the button is pressed, off when released.

Macro Definition Documentation

◆ CORTEX_M4

#define CORTEX_M4

Function Documentation

◆ main()

int main ( void )