36 lines
985 B
C
36 lines
985 B
C
#ifndef BSP_SOC_H
|
|
#define BSP_SOC_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define BSP_UART_BASE 0x10013000UL
|
|
#define BSP_SPI_BASE 0x10014000UL
|
|
#define BSP_PMOD_SPI_BASE 0x10015000UL
|
|
#define BSP_GPS_ACQ_BASE 0x10020000UL
|
|
#define BSP_GPS_TRCK0_BASE 0x10021000UL
|
|
#define BSP_GPS_TRCK_STRIDE 0x00001000UL
|
|
#define BSP_GPS_TRCK_COUNT 9UL
|
|
#define BSP_GPS_PPS_BASE 0x1002a000UL
|
|
#define BSP_GPS_ACQ_IRQ 1UL
|
|
#define BSP_GPS_TRCK0_IRQ 2UL
|
|
#define BSP_GPS_TRCK_IRQ_STRIDE 1UL
|
|
#define BSP_PMOD_IRQ 11UL
|
|
#define BSP_PLIC_BASE 0x0c000000UL
|
|
#define BSP_CLINT_BASE 0x02000000UL
|
|
#define BSP_CLINT_MTIMECMP (BSP_CLINT_BASE + 0x4000UL)
|
|
#define BSP_CLINT_MTIME (BSP_CLINT_BASE + 0xbff8UL)
|
|
#ifndef BSP_CLINT_TIMEBASE_HZ
|
|
#define BSP_CLINT_TIMEBASE_HZ 1000000UL
|
|
#endif
|
|
|
|
/* Board Makefiles override these with -DBSP_DTIM_*; defaults keep direct builds working. */
|
|
#ifndef BSP_DTIM_BASE
|
|
#define BSP_DTIM_BASE 0x80000000UL
|
|
#endif
|
|
|
|
#ifndef BSP_DTIM_SIZE
|
|
#define BSP_DTIM_SIZE 0x00100000UL
|
|
#endif
|
|
|
|
#endif
|