fix boot2.s

This commit is contained in:
2025-12-20 19:16:13 +08:00
parent 397033e293
commit 29edad3437
4 changed files with 37 additions and 628 deletions

View File

@@ -9,13 +9,14 @@ void main(void) {
PB_DDR |= (1 << LED_PIN);
PB_CR1 |= (1 << LED_PIN);
/* 9600bps, 8N1, TEN, REN */
UART1_BRR1 = 0x0D;
UART1_BRR2 = 0x00;
UART1_CR2 = 0x0D;
UART1_CR2 = 0x0C;
while(1) {
PB_ODR ^= (1 << LED_PIN);
UART1_DR = *ptr++;
UART1_DR = PB_ODR;
delay_ms(500);
}
}