summaryrefslogtreecommitdiff
path: root/ports/litex/mphalport.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2020-12-24litex: ensure we don't re-enable interrups during ISRSean Cross
During an interrupt handler, interrupts are implicitly disabled. They will be re-enabled when the interrupt handler returns. Due to some changes that were made, varous calls will re-enable interrupts after they're finished. Examples of this include calling `CALLBACK_CRITICAL_END` and getting the number of ticks with `port_get_raw_ticks()`. This patch prevents this from happening by doing two things: 1. Use standard calls in `port_get_raw_ticks()` to disable and re-enable interrupts, preventing nesting issues, and 2. Increase the nesting count inside `isr()`, reflecting the implicit call that is made by hardware when an interrupt is handled This helps to address #3841. Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-15supervisor: factor out, Handle USB via background callbackJeff Epler
2020-04-27Merge remote-tracking branch 'adafruit/master' into lower_powerScott Shawcroft
2020-04-24Add USB include for LiteXScott Shawcroft
2020-04-24Remove empty #if and add missing includes.Scott Shawcroft
2020-04-21Add back fake us delay.Scott Shawcroft
2020-04-17Update TinyUSB and add interrupt hooks.Scott Shawcroft
2020-04-16litex: mphalport: add fake mp_hal_delay_usSean Cross
Add a mp_hal_delay_us, which is required by some of the modules, that simply calls mp_hal_delay_ms / 1000. Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-31Update LiteX APIs for new tickScott Shawcroft
2020-03-31ports: litex: add port and fomu boardSean Cross
This adds support for Litex, along with support for the Fomu FPGA board. Signed-off-by: Sean Cross <sean@xobs.io>