start with USART (now DEBUG-compile is unavialable)

This commit is contained in:
Edward Emelianov
2026-03-11 23:40:39 +03:00
parent 3802f7d2cb
commit b44fd9e91f
11 changed files with 332 additions and 5 deletions

View File

@@ -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();