pin_config.h 1018 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2019, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-06-01 Ernest the first version
  9. */
  10. #ifndef __PIN_CONFIG_H__
  11. #define __PIN_CONFIG_H__
  12. // UART
  13. #define WM_UART2_RX_PIN 1 // PB19 : UART2_RX (W601)
  14. #define WM_UART2_TX_PIN 2 // PB20 : UART2_TX (W601)
  15. #define WM_UART1_RX_PIN 31 // PB11 : UART1_RX (W600)
  16. #define WM_UART1_TX_PIN 32 // PB12 : UART1_TX (W600)
  17. // spi
  18. #define WM_SPI_CK_PIN 53 // PB27 : SPI_SCK
  19. #define WM_SPI_DI_PIN 55 // PB1 : SPI_MISO
  20. #define WM_SPI_DO_PIN 56 // PB2 : SPI_MOSI
  21. // i2c
  22. #define WM_I2C_SCL_PIN 18
  23. #define WM_I2C_DAT_PIN 19
  24. // soft i2c
  25. #define SOFT_I2C1_SCL_PIN 23 // PA0 : I2C1_SCL
  26. #define SOFT_I2C1_SDA_PIN 24 // PA1 : I2C1_SDA
  27. #define SOFT_I2C2_SCL_PIN 25 // PA2 : I2C2_SCL
  28. #define SOFT_I2C2_SDA_PIN 24 // PA1 : I2C2_SDA
  29. #endif /* __PIN_CONFIG_H__ */