You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ASYD/ASYD_Trends/LPC804_LowPower/source/leds.h

30 lines
519 B

/*
* Copyright (c) 2022-2023, Erich Styger
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MY_LEDS_H_
#define MY_LEDS_H_
typedef enum LEDS_Leds_e {
LEDS_RED,
LEDS_GREEN,
} LEDS_Leds_e;
/* turn LED on */
void LEDS_On(LEDS_Leds_e led);
/* turn LED off */
void LEDS_Off(LEDS_Leds_e led);
/* toggle LED */
void LEDS_Neg(LEDS_Leds_e led);
/* call it to initialize the driver */
void LEDS_Init(void);
/* use this after the driver is not needed any more */
void LEDS_Deinit(void);
#endif /* MY_LEDS_H_ */