sw: wip commit -- dfu state machine works, spi broken

Need to fix SPI and SB_WARMBOOT, but the DFU state machine now works.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2019-03-28 11:13:25 +08:00
parent 6595eb1ef1
commit 0a4c73a63a
10 changed files with 127 additions and 175 deletions

View File

@ -3,6 +3,7 @@
#include <generated/csr.h>
#include <hw/flags.h>
#ifdef CSR_UART_BASE
/*
* Buffer sizes must be a power of 2 so that modulos can be computed
* with logical AND.
@ -108,3 +109,7 @@ void uart_sync(void)
{
while(tx_consume != tx_produce);
}
#else /* !CSR_UART_BASE */
void uart_init(void) {}
void uart_isr(void) {}
#endif