This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
fsfw_example_public/bsp_stm32_rtems/boardconfig/led.h

34 lines
530 B
C
Raw Normal View History

2021-04-27 17:22:34 +02:00
/*
* LED -- simple LED support
*/
#ifndef __LED_h
#define __LED_h
#include <bspopts.h>
#if defined(STM32H743xx)
/* These settings are for the STM32H743ZI NUCLEO board */
#include "stm32h7xx_hal.h"
extern GPIO_InitTypeDef GPIO_InitStruct;
extern void ledInit();
extern void ledOn();
extern void ledOff();
#else
/* default case is to print */
#define __LED_PRINTING 1
#define LED_ON() fputs( "LED ON\n", stderr )
#define LED_OFF() fputs( "LED OFF\n", stderr )
#endif
#ifndef LED_INIT
#define LED_INIT()
#endif
#endif