pin_config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2006-2021, 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. #if defined(SOC_W600_A8xx)
  16. #define WM_UART1_RX_PIN 31 // PB11 : UART1_RX (W600)
  17. #define WM_UART1_TX_PIN 32 // PB12 : UART1_TX (W600)
  18. #elif defined(SOC_W601_A8xx)
  19. #define WM_UART1_RX_PIN 66 // PB11 : UART1_RX (W601)
  20. #define WM_UART1_TX_PIN 67 // PB12 : UART1_TX (W601)
  21. #endif
  22. // spi
  23. #define WM_SPI_CK_PIN 53 // PB27 : SPI_SCK
  24. #define WM_SPI_DI_PIN 55 // PB1 : SPI_MISO
  25. #define WM_SPI_DO_PIN 56 // PB2 : SPI_MOSI
  26. // i2c
  27. #define WM_I2C_SCL_PIN 18
  28. #define WM_I2C_DAT_PIN 19
  29. // soft i2c
  30. #define SOFT_I2C1_SCL_PIN 23 // PA0 : I2C1_SCL
  31. #define SOFT_I2C1_SDA_PIN 24 // PA1 : I2C1_SDA
  32. #define SOFT_I2C2_SCL_PIN 25 // PA2 : I2C2_SCL
  33. #define SOFT_I2C2_SDA_PIN 24 // PA1 : I2C2_SDA
  34. #endif /* __PIN_CONFIG_H__ */