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.
 
 
 

20 lines
633 B

#pragma once
#define VERSION "v1.1"
#define ORDER_UART huart1
#define DEBUG_UART huart1 //直接使用指令串口作为调试串口
#define DEBUG_LIGHT_PORT GPIOA
#define DEBUG_LIGHT_PIN GPIO_PIN_1
#define EXT_OEn_PORT GPIOC
#define EXT_OEn_PIN GPIO_PIN_0
#define EXT_OEn_SET(value) \
HAL_GPIO_WritePin(EXT_OEn_PORT, EXT_OEn_PIN, \
value ? GPIO_PIN_SET : GPIO_PIN_RESET)
#define PWM_OEn_PORT GPIOC
#define PWM_OEn_PIN GPIO_PIN_1
#define PWM_OEn_SET(value) \
HAL_GPIO_WritePin(PWM_OEn_PORT, PWM_OEn_PIN, \
value ? GPIO_PIN_SET : GPIO_PIN_RESET)