diff options
author | jaseg <git@jaseg.net> | 2020-01-27 21:58:22 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-01-27 21:58:22 +0100 |
commit | f4a6ea896f711f68e898e69e21d74118a44465f2 (patch) | |
tree | 48a8b14c2c452333cbc8fb9595d20ddad5c5348f /gm_platform/fw/main.c | |
parent | 966f104597275b29f41c06c4574d1bbe9ecde401 (diff) | |
download | master-thesis-f4a6ea896f711f68e898e69e21d74118a44465f2.tar.gz master-thesis-f4a6ea896f711f68e898e69e21d74118a44465f2.tar.bz2 master-thesis-f4a6ea896f711f68e898e69e21d74118a44465f2.zip |
serial basically working
Diffstat (limited to 'gm_platform/fw/main.c')
-rw-r--r-- | gm_platform/fw/main.c | 4 |
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; |