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.c | |
parent | 0b0972ce96a59fb9b59c0b166e0174ba4d8dd198 (diff) |
lcd driver added; fixed startup code;
Diffstat (limited to 'fw/fe310/eos/spi.c')
-rw-r--r-- | fw/fe310/eos/spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fw/fe310/eos/spi.c b/fw/fe310/eos/spi.c index 234bff6..a4b164e 100644 --- a/fw/fe310/eos/spi.c +++ b/fw/fe310/eos/spi.c @@ -45,7 +45,7 @@ static void spi_handle_evt(unsigned char type, unsigned char *buffer, uint16_t l } } -void eos_spi_init(uint8_t wakeup_cause) { +int eos_spi_init(uint8_t wakeup_cause) { int i; for (i=0; i<EOS_SPI_MAX_EVT; i++) { @@ -83,6 +83,7 @@ void eos_spi_init(uint8_t wakeup_cause) { // There is no way here to change the CS polarity. // SPI1_REG(SPI_REG_CSDEF) = 0xFFFF; + return EOS_OK; } void eos_spi_start(uint16_t div, uint8_t csid, uint8_t cspin, unsigned char evt) { |