mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-03-20 08:40:57 +03:00
start with USART (now DEBUG-compile is unavialable)
This commit is contained in:
@@ -35,6 +35,8 @@ TRUE_INLINE void gpio_setup(){ // setup some common GPIO
|
||||
void hardware_setup(){
|
||||
// enable all active GPIO clocking
|
||||
RCC->AHBENR |= RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN;
|
||||
RCC->APB1ENR |= RCC_APB2ENR_USART1EN;
|
||||
RCC->APB2ENR |= RCC_APB1ENR_USART2EN;
|
||||
gpio_setup();
|
||||
//gpio_reinit();
|
||||
adc_setup();
|
||||
|
||||
Reference in New Issue
Block a user