blob: cae7222425af8fe293b074355e4f2c8d15824ff1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <stdint.h>
#include <stdlib.h>
#include "../soc/timer.h"
#include "../soc/spi.h"
#include "../dev/spi.h"
#define EVE_ETYPE_INTR 1
#define EVE_RTC_FREQ EOS_TIMER_RTC_FREQ
#define EVE_SPI_FLAG_BSWAP EOS_SPI_FLAG_BSWAP
#define EVE_SPI_FLAG_TX EOS_SPI_FLAG_TX
void *eve_malloc(size_t);
void eve_free(void *);
//#define eve_malloc malloc
//#define eve_free free
void eve_select(void);
void eve_deselect(void);
int eve_selected(void);
#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
#define eve_spi_lock eos_spi_lock
#define eve_spi_unlock eos_spi_unlock
void eve_sleep(uint32_t ms);
uint32_t eve_get_tick(void);
void eve_sys_timer_set(uint32_t ms);
void eve_sys_timer_clear(void);
|