summaryrefslogtreecommitdiff
path: root/code/fe310/eos/spi.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-01-28 19:25:20 +0100
committerUros Majstorovic <majstor@majstor.org>2020-01-28 19:25:20 +0100
commit15bddabc5cbe0e751fadcaaa7f7c7c36bca61331 (patch)
treef1c1351a9ed0acb426914ee92cd7b2b917fd9ee4 /code/fe310/eos/spi.c
parent445d72abf487dc325ccbde1e3a12d1c4cf695a6a (diff)
eve logng press event added
Diffstat (limited to 'code/fe310/eos/spi.c')
-rw-r--r--code/fe310/eos/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/fe310/eos/spi.c b/code/fe310/eos/spi.c
index d752bfb..ae12f40 100644
--- a/code/fe310/eos/spi.c
+++ b/code/fe310/eos/spi.c
@@ -63,7 +63,7 @@ void eos_spi_init(void) {
for (i=0; i<EOS_SPI_MAX_DEV; i++) {
evt_handler[i] = eos_evtq_bad_handler;
}
- eos_evtq_set_handler(EOS_EVT_SPI, spi_handler_evt);
+ eos_evtq_set_handler(EOS_EVT_SPI, spi_handler_evt, 0);
eos_intr_set(INT_SPI1_BASE, IRQ_PRIORITY_SPI_XCHG, NULL);
GPIO_REG(GPIO_INPUT_EN) &= ~(1 << SPI_CS_PIN_CAM);
@@ -127,7 +127,7 @@ void eos_spi_set_handler(unsigned char dev, eos_evt_fptr_t handler, uint8_t flag
}
evt_handler[dev] = handler;
- if (flags) eos_evtq_set_flags(EOS_EVT_SPI | dev + 1, flags);
+ eos_evtq_set_hflags(EOS_EVT_SPI | dev + 1, flags);
}
void eos_spi_xchg(unsigned char *buffer, uint16_t len, uint8_t flags) {