max80_gpio.h 682 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __max80_GPIO_H__
  2. #define __max80_GPIO_H__
  3. #include <Arduino.h>
  4. #define MAX80_LED1 2
  5. #define MAX80_LED2 4
  6. #define MAX80_LED3 3
  7. #define LED_BUILTIN 3
  8. #define MAX80_FPGA_I2C_SDA 5
  9. #define MAX80_FPGA_I2C_SCL 6
  10. #define MAX80_FPGA_MISO 13
  11. #define MAX80_FPGA_MOSI 12
  12. #define MAX80_FPGA_CS 10
  13. #define MAX80_FPGA_CLK 11
  14. #define MAX80_RTC_32KHZ 15
  15. #define MAX80_FPGA_TDI 16
  16. #define MAX80_FPGA_TDO 17
  17. #define MAX80_FPGA_TCK 18
  18. #define MAX80_FPGA_TMS 14
  19. void blink_led(void *pvParameter);
  20. namespace max80 {
  21. class gpio
  22. {
  23. public:
  24. void init();
  25. };
  26. }
  27. #endif