9 #ifndef _HARDWARE_STRUCTS_SPI_H
10 #define _HARDWARE_STRUCTS_SPI_H
13 #include "hardware/regs/spi.h"
24 _REG_(SPI_SSPCR0_OFFSET)
33 _REG_(SPI_SSPCR1_OFFSET)
41 _REG_(SPI_SSPDR_OFFSET)
46 _REG_(SPI_SSPSR_OFFSET)
55 _REG_(SPI_SSPCPSR_OFFSET)
60 _REG_(SPI_SSPIMSC_OFFSET)
68 _REG_(SPI_SSPRIS_OFFSET)
76 _REG_(SPI_SSPMIS_OFFSET)
84 _REG_(SPI_SSPICR_OFFSET)
90 _REG_(SPI_SSPDMACR_OFFSET)
97 #define spi0_hw ((spi_hw_t *)SPI0_BASE)
98 #define spi1_hw ((spi_hw_t *)SPI1_BASE)