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.

65 lines
1.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #pragma once
  2. #include "system_ES8P5066.h"
  3. #include "lib_config.h"
  4. #include <stdbool.h> //���岼��
  5. #define UART0_RXD0_PIN GPIO_Pin_A22
  6. #define UART0_TXD0_PIN GPIO_Pin_A23
  7. #define GPIO_GET(port, pin, mirror) \
  8. (mirror(GPIO_ReadBit(GPIO_Pin_##port##pin) == 1))
  9. #define GPIO_SET(port, pin, mirror, _state) \
  10. GPIO_WriteBit(GPIO_Pin_##port##pin, mirror _state ? 1 : 0);
  11. void gpio_init(void);
  12. //����
  13. void port_debug_set(bool state);
  14. void port_led0_set(bool state);
  15. void port_led1_set(bool state);
  16. void port_led2_set(bool state);
  17. void port_led3_set(bool state);
  18. void port_led_r_set(bool state);
  19. void port_led_g_set(bool state);
  20. void port_led_b_set(bool state);
  21. void port_fan_set(bool state);
  22. bool port_gpio_get_timer_key_state(void);
  23. bool port_gpio_get_gears_key_state(void);
  24. bool port_gpio_get_interval_key_state(void);
  25. bool port_gpio_get_switch_key_state(void);
  26. /*
  27. ŷ
  28. H PA11 ʱ
  29. M PA16 ߵ͵ѡ͹رգ1ߵ2ɫ3ɫ4رգ
  30. Ъ PA13
  31. PA12
  32. LED0 PA3
  33. LED1 PB13
  34. LED2 PA5
  35. LED3 PA6
  36. LED_R PA7
  37. LED_G PA8
  38. LED_B PA9
  39. PWM PA4
  40. PB1
  41. ʱ |
  42. --------------------|------
  43. λ |
  44. --------------------|------
  45. Ӧled |
  46. --------------------|------
  47. RGB |
  48. --------------------|------
  49. PWMƵ |
  50. --------------------|------
  51. pwmռձ |
  52. --------------------|------
  53. ʱ |
  54. --------------------|------
  55. */