32 lines
759 B
C
32 lines
759 B
C
#pragma once
|
||
|
||
/* Includes ----------------------------------------------------------------- */
|
||
#include <stdint.h>
|
||
|
||
#include "bsp/led.h"
|
||
|
||
/* Exported constants ------------------------------------------------------- */
|
||
/* Exported macro ----------------------------------------------------------- */
|
||
/* Exported types ----------------------------------------------------------- */
|
||
|
||
/* LED灯状态,设置用 */
|
||
typedef enum
|
||
{
|
||
BSP_LED_ON,
|
||
BSP_LED_OFF,
|
||
BSP_LED_TAGGLE,
|
||
} BSP_LED_Status_t;
|
||
|
||
/* LED通道 */
|
||
typedef enum
|
||
{
|
||
BSP_LED1,
|
||
BSP_LED2,
|
||
BSP_LED3,
|
||
} BSP_LED_Channel_t;
|
||
|
||
/* Exported functions prototypes -------------------------------------------- */
|
||
|
||
int8_t BSP_LED_SET(BSP_LED_Channel_t ch, BSP_LED_Status_t s);
|
||
|
||
//未使用ws2812
|