#ifndef BSS_AXIL_SPI_REGS_H
#define BSS_AXIL_SPI_REGS_H

#include <stdint.h>

/* Aligned byte offsets from the peripheral's mapped base address. */
#define BSS_SPI_REG_STATUS  UINT32_C(0x00)
#define BSS_SPI_REG_DIVIDER UINT32_C(0x04)
#define BSS_SPI_REG_TXDATA  UINT32_C(0x08)
#define BSS_SPI_REG_RXDATA  UINT32_C(0x0C)

#define BSS_SPI_STATUS_BUSY UINT32_C(0x01) /* Read only. */
#define BSS_SPI_STATUS_DONE UINT32_C(0x02) /* Sticky, write one to clear. */
#define BSS_SPI_DIVIDER_MAX UINT32_C(0xFFFF)
#define BSS_SPI_DATA_MASK   UINT32_C(0xFF)

#endif
