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.

19 lines
579 B

  1. #pragma once
  2. #define VERSION "v1.0"
  3. #define ORDER_UART
  4. #define DEBUG_UART huart2
  5. #define DEBUG_LIGHT_PORT GPIOA
  6. #define DEBUG_LIGHT_PIN GPIO_PIN_1
  7. #define EXT_OEn_PORT GPIOC
  8. #define EXT_OEn_PIN GPIO_PIN_0
  9. #define EXT_OEn_SET(value) \
  10. HAL_GPIO_WritePin(EXT_OEn_PORT, EXT_OEn_PIN, \
  11. value ? GPIO_PIN_RESET : GPIO_PIN_SET)
  12. #define PWM_OEn_PORT GPIOC
  13. #define PWM_OEn_PIN GPIO_PIN_1
  14. #define PWM_OEn_SET(value) \
  15. HAL_GPIO_WritePin(PWM_OEn_PORT, PWM_OEn_PIN, \
  16. value ? GPIO_PIN_RESET : GPIO_PIN_SET)