This repository has been archived on 2025-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
controller-hd/User/board/inc/leds.h

22 lines
557 B
C

#ifndef __LEDS_H__
#define __LEDS_H__
#include "lib.h"
typedef enum
{
LEDS_1_RED,
LEDS_1_GREEN,
LEDS_1_YELLOW,
LEDS_2_ORANGE,
LEDS_2_BLUE,
LEDS_MAX,
} leds_e;
extern void leds_init(void); ///< 初始化LED
extern void leds_dinit(void); ///< 反初始化LED
extern void leds_on(leds_e led); ///< 打开LED
extern void leds_off(leds_e led); ///< 关闭LED
extern void leds_off_all(void); ///< 关闭所有LED
extern void leds_toggle(leds_e io); ///< 翻转LED
#endif // !__LEDS_H__