diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-11-28 23:53:05 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-11-28 23:53:05 +0100 |
commit | acce7d8e05ac38776d6340342f6a7868df4f7f28 (patch) | |
tree | c0e2f3934b82967e4c2aff4a3dfcc5802bc94232 /fw/fe310/eos/spi_dev.c | |
parent | 0b0972ce96a59fb9b59c0b166e0174ba4d8dd198 (diff) |
lcd driver added; fixed startup code;
Diffstat (limited to 'fw/fe310/eos/spi_dev.c')
-rw-r--r-- | fw/fe310/eos/spi_dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/fe310/eos/spi_dev.c b/fw/fe310/eos/spi_dev.c index 09a4a83..b060bad 100644 --- a/fw/fe310/eos/spi_dev.c +++ b/fw/fe310/eos/spi_dev.c @@ -21,7 +21,7 @@ static uint8_t spi_dev; static uint8_t spi_lock; static uint16_t spi_div[EOS_SPI_MAX_DEV]; -void eos_spi_dev_init(uint8_t wakeup_cause) { +int eos_spi_dev_init(uint8_t wakeup_cause) { int i; for (i=0; i<EOS_SPI_MAX_DEV; i++) { @@ -35,6 +35,8 @@ void eos_spi_dev_init(uint8_t wakeup_cause) { GPIO_REG(GPIO_OUTPUT_XOR) &= ~(1 << spi_cfg[i].cspin); } } + + return EOS_OK; } int eos_spi_select(unsigned char dev) { |