(theoretically) got encoders working
Everything up to sending all 8 encoder values should work now (including
the packet format + header information, bootloader (fixed some bugs in
the UART code for that), etc).
diff --git a/bbb_cape/src/cape/uart_byte.c b/bbb_cape/src/cape/uart_byte.c
index 76297e3..6bafdb6 100644
--- a/bbb_cape/src/cape/uart_byte.c
+++ b/bbb_cape/src/cape/uart_byte.c
@@ -4,8 +4,11 @@
#include <STM32F2XX.h>
#define TIMEOUT_TIM TIM7
+#define RCC_APB1ENR_TIMEOUT_TIMEN RCC_APB1ENR_TIM7EN
void uart_byte_configure(void) {
+ RCC->APB1ENR |= RCC_APB1ENR_TIMEOUT_TIMEN;
+
TIMEOUT_TIM->CR1 = TIM_CR1_UDIS;
}