您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

26 行
470 B

  1. #ifndef _LED_H_
  2. #define _LED_H_
  3. #include "stm32f7xx_hal.h"
  4. #define ON 1
  5. #define OFF 0
  6. //输出端口定义
  7. #define Y0_GPIO_PORT GPIOF
  8. #define Y0_GPIO_PIN GPIO_PIN_6
  9. #define Y1_GPIO_PORT GPIOF
  10. #define Y1_GPIO_PIN GPIO_PIN_8
  11. #define Y2_GPIO_PORT GPIOF
  12. #define Y2_GPIO_PIN GPIO_PIN_7
  13. void LED0(uint8_t state);
  14. void LED1(uint8_t state);
  15. void LED2(uint8_t state);
  16. void LED0_Toggle(void);
  17. void LED1_Toggle(void);
  18. void LED2_Toggle(void);
  19. #endif/*_LED_H_*/