diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 03:48:50 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 03:48:50 +0100 |
commit | 06b5a32ca82128edd807542d633d34897e0f43ef (patch) | |
tree | e6f0b871102255226f17c347f82ba93c7ec569d9 /code/fe310/eos/eve/eve_platform.h | |
parent | 2079587f0282603170a465e78b8074117fcb8c41 (diff) |
eve portable
Diffstat (limited to 'code/fe310/eos/eve/eve_platform.h')
-rw-r--r-- | code/fe310/eos/eve/eve_platform.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/eve_platform.h b/code/fe310/eos/eve/eve_platform.h new file mode 100644 index 0000000..8ab43ea --- /dev/null +++ b/code/fe310/eos/eve/eve_platform.h @@ -0,0 +1,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);
\ No newline at end of file |