mux_hal.h 891 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2018, Synopsys, Inc.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _MUX_HAL_H_
  7. #define _MUX_HAL_H_
  8. /**
  9. * \name Mux Control Register Index
  10. * @{
  11. */
  12. #define PMOD_MUX_CTRL 0 /*!< 32-bits, offset 0x0,
  13. This register controls mapping of the peripheral device signals on Pmod connectors */
  14. #define I2C_MAP_CTRL 1 /*!< 32-bits, offset 0x4 */
  15. #define SPI_MAP_CTRL 2 /*!< 32-bits, offset 0x8,
  16. SPI_MAP_CTRL[0] selects the mode of operation of the SPI Slave:
  17. - Normal operation, SPI_MAP_CTRL[0]=0: SPI Slave is connected to Pmod1 at connector J1.
  18. - Loop-back mode, SPI_MAP_CTRL[0]=1: SPI Slave is connected to the SPI Master inside the FPGA using CS4.
  19. */
  20. #define UART_MAP_CTRL 3 /*!< 32-bits, offset 0x8,
  21. This register controls the mapping of the UART signals on the Pmod1 connector. */
  22. /** @} end of name */
  23. #endif /* _MUX_HAL_H_ */