33 lines
801 B
C
33 lines
801 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ----------------------------------------------------------------- */
|
|
#include <stdint.h>
|
|
#include "bsp.h"
|
|
/* Exported constants ------------------------------------------------------- */
|
|
/* Exported macro ----------------------------------------------------------- */
|
|
/* Exported types ----------------------------------------------------------- */
|
|
|
|
/* PWM通道 */
|
|
typedef enum {
|
|
BSP_PWM_LED_R = 0,
|
|
BSP_PWM_LED_G,
|
|
BSP_PWM_LED_B,
|
|
} BSP_LED_Channel_t;
|
|
|
|
typedef enum {
|
|
BSP_LED_OFF = 0,
|
|
BSP_LED_ON,
|
|
BSP_LED_TOGGLE,
|
|
} BSP_LED_Status_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
|
|
|