fix boot2.s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user