summaryrefslogtreecommitdiff
path: root/gm_platform/fw/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gm_platform/fw/main.c')
-rw-r--r--gm_platform/fw/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm_platform/fw/main.c b/gm_platform/fw/main.c
index 3020a42..5741d7c 100644
--- a/gm_platform/fw/main.c
+++ b/gm_platform/fw/main.c
@@ -30,7 +30,7 @@ volatile union {
struct {
unsigned int usb, ocxo, error, _nc1, _nc2, _nc3, pps, sd_card;
};
- unsigned int arr[0];
+ unsigned int arr[8];
} leds;
int main(void) {
@@ -47,7 +47,7 @@ int main(void) {
NVIC_SetPriority(SysTick_IRQn, 3<<5);
/* Turn on lots of neat things */
- RCC->AHBENR |= RCC_AHBENR_DMAEN | RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_FLITFEN;
+ RCC->AHBENR |= RCC_AHBENR_DMAEN | RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_FLITFEN | RCC_AHBENR_CRCEN;
RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN | RCC_APB2ENR_ADCEN | RCC_APB2ENR_SPI1EN | RCC_APB2ENR_DBGMCUEN |\
RCC_APB2ENR_TIM1EN | RCC_APB2ENR_TIM16EN | RCC_APB2ENR_USART1EN;
RCC->APB1ENR |= RCC_APB1ENR_TIM3EN;