This repository has been archived on 2024-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-11-14 16:25:09 -05:00

22 lines
448 B
C++
Executable File

#include "bsp.h"
#include "prepherials.h"
#include <stdio.h>
extern "C" {
int __io_putchar(int ch) { return usart1.send((uint8_t *) &ch, 1); }
}
int main() {
system_init();
setup_prepherials();
pa.init(USART1_TX_Pin, AF, 7);
pa.init(USART1_RX_Pin, AF, 7);
usart1.init(int(1e6));
pb.init(LED_BLUE_PIN);
while (1) {
pb.toggle(LED_BLUE_PIN);
printf("hello world!\n");
delay.ms(500, true);
}
}