#pragma once #ifdef __cplusplus extern "C" { #endif /* Includes ----------------------------------------------------------------- */ #include #include "bsp/bsp.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_LED_1, BSP_LED_2, BSP_LED_3, } BSP_LED_Channel_t; /* Exported functions prototypes -------------------------------------------- */ int8_t BSP_LED_Set(BSP_LED_Channel_t ch, BSP_LED_Status_t s, float duty_cycle); #ifdef __cplusplus } #endif