summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/eve_platform.h
blob: 8ab43ea7a1f1656fefaf8d72a5d12e413e2bb506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdint.h>

#include "spi.h"

#define EVE_RTC_FREQ        32768

#define EVE_SPI_FLAG_BSWAP  EOS_SPI_FLAG_BSWAP
#define EVE_SPI_FLAG_TX     EOS_SPI_FLAG_TX

#define eve_spi_cs_set      eos_spi_cs_set
#define eve_spi_cs_clear    eos_spi_cs_clear
#define eve_spi_flush       eos_spi_flush
#define eve_spi_xchg8       eos_spi_xchg8
#define eve_spi_xchg16      eos_spi_xchg16
#define eve_spi_xchg24      eos_spi_xchg24
#define eve_spi_xchg32      eos_spi_xchg32

void eve_sleep(uint32_t ms);
void eve_timer_set(uint32_t ms);
void eve_timer_clear(void);
uint64_t eve_timer_get_tick(void);

void eve_init_platform(void);