ioswap.h 553 B

1234567891011121314
  1. #ifndef _SDK_OVERRIDES_IOSWAP_H_
  2. #define _SDK_OVERRIDES_IOSWAP_H_
  3. #define ESP8266_DREG(addr) *((volatile uint32_t *)(0x3FF00000+(addr)))
  4. #define IOSWAP ESP8266_DREG(0x28)
  5. #define IOSWAPU 0 //Swaps UART
  6. #define IOSWAPS 1 //Swaps SPI
  7. #define IOSWAPU0 2 //Swaps UART 0 pins (u0rxd <-> u0cts), (u0txd <-> u0rts)
  8. #define IOSWAPU1 3 //Swaps UART 1 pins (u1rxd <-> u1cts), (u1txd <-> u1rts)
  9. #define IOSWAPHS 5 //Sets HSPI with higher prio
  10. #define IOSWAP2HS 6 //Sets Two SPI Masters on HSPI
  11. #define IOSWAP2CS 7 //Sets Two SPI Masters on CSPI
  12. #endif