forked from len0rd/rockbox
spi is shared between the rtc and tsc2100
adds the very begining of the rtc driver (only reads the time currently git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14935 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea47ee64f0
commit
03f45d3aff
8 changed files with 95 additions and 19 deletions
|
|
@ -21,9 +21,17 @@
|
|||
#define SPI_TARGET_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
enum SPI_target {
|
||||
SPI_target_TSC2100 = 0,
|
||||
SPI_target_RX5X348AB,
|
||||
SPI_MAX_TARGETS,
|
||||
};
|
||||
|
||||
void spi_init(void);
|
||||
int spi_block_transfer(const uint8_t *tx_bytes, unsigned int tx_size,
|
||||
int spi_block_transfer(enum SPI_target target,
|
||||
const uint8_t *tx_bytes, unsigned int tx_size,
|
||||
uint8_t *rx_bytes, unsigned int rx_size);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue