選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 

41 行
1.0 KiB

  1. #ifndef __LED_H
  2. #define __LED_H
  3. #include "sys.h"
  4. //////////////////////////////////////////////////////////////////////////////////
  5. //本程序只供学习使用,未经作者许可,不得用于其它任何用途
  6. //ALIENTEK STM32F407开发板
  7. //LED驱动代码
  8. //正点原子@ALIENTEK
  9. //技术论坛:www.openedv.com
  10. //创建日期:2014/5/2
  11. //版本:V1.0
  12. //版权所有,盗版必究。
  13. //Copyright(C) 广州市星翼电子科技有限公司 2014-2024
  14. //All rights reserved
  15. //////////////////////////////////////////////////////////////////////////////////
  16. //LED端口定义
  17. #define LED0 PFout(6) // Q0
  18. #define LED1 PFout(8) // Q1
  19. #define LED2 PFout(7) // Q2
  20. #define LED3 PFout(9) // Q3
  21. #define LED4 PIout(8) // Q4
  22. #define LED5 PEout(6) // Q5
  23. #define LED6 PEout(5) // Q6
  24. #define LED7 PEout(4) // Q7
  25. #define LED8 PGout(7) // Q10
  26. #define LED9 PGout(6) // Q11
  27. #define LED10 PHout(9) // Q12
  28. #define LED11 PHout(8) // Q13
  29. #define LED12 PHout(7) // Q14
  30. #define LED13 PHout(6) // Q15
  31. #define LED14 PFout(11) // Q16
  32. #define LED15 PHout(5) // Q20
  33. void LED_Init(void);//初始化
  34. #endif