Lots of development of new features. Radio input, motor output, PID control

loops, boot-time initialisation, option to run without attached UART.

And.. it flies!
This commit is contained in:
2012-08-30 12:42:38 +00:00
parent 2890007195
commit 3f12132231
18 changed files with 727 additions and 23 deletions

3
uart.c
View File

@@ -38,6 +38,8 @@ volatile bool tx_running;
void __attribute__((interrupt("IRQ"))) uart_interrupt_handler(void);
#ifdef USE_UART
void init_uart(void)
{
UREG(FDR) = 0x10; /* DivAddVal = 0, MulVal = 1 */
@@ -205,3 +207,4 @@ bool getch(char *c) {
uart_rxread = (uart_rxread + 1) % UART_RXBUFSIZE;
return TRUE;
}
#endif