diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-09-11 15:37:36 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-09-25 14:46:22 +0200 |
commit | 01010e72728a979b0a991576d1101d19829ecec5 (patch) | |
tree | e636978754c914767ca9df791c5164c2f2a9be31 /source/adc_task.c | |
parent | 44b9ce104362ecc6b8850afbf97ce8007845c869 (diff) |
Improved CAN, locking and general IRQ performance
Fixes issues with CAN stopping when overwhelmed by data RX\TX.
Keeps can in freezemode until explicitly activated.
CANINTF_TX is now a CAN TX in progress flag.
Runtime asserts are now disabled.
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'source/adc_task.c')
-rw-r--r-- | source/adc_task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/adc_task.c b/source/adc_task.c index 2615943..daf4716 100644 --- a/source/adc_task.c +++ b/source/adc_task.c @@ -270,7 +270,7 @@ int tsc_registers(dspi_transfer_t *spi_transfer) if (rx_buf[0] == APALIS_TK1_K20_WRITE_INST) { switch (rx_buf[1]) { case APALIS_TK1_K20_TSCREG: - return -ENOENT; + return 0; default: return -ENOENT; } @@ -320,7 +320,7 @@ int adc_registers(dspi_transfer_t *spi_transfer) if (rx_buf[0] == APALIS_TK1_K20_WRITE_INST) { switch (rx_buf[1]) { case APALIS_TK1_K20_ADCREG: - return -ENOENT; + return 0; default: return -ENOENT; } |