stm32_serDes_protobuf_project/app/app.c

25 lines
286 B
C
Raw Normal View History

2024-03-28 17:51:39 +03:00
#include "app.h"
2024-04-02 12:47:04 +03:00
2024-03-28 17:51:39 +03:00
void delay(uint32_t ms) {
2024-04-02 12:47:04 +03:00
ms *= 16800;
2024-03-28 17:51:39 +03:00
while(ms--) {
__NOP();
}
}
void loop() {
2024-04-02 12:47:04 +03:00
GPIO_ToggleBits(GPIOB, GPIO_Pin_7);
delay(500);
2024-03-28 17:51:39 +03:00
}
void app() {
while(1) {
2024-04-02 13:56:52 +03:00
printf("Hello, world%.6f\r\n", 5.432);
2024-03-28 17:51:39 +03:00
loop();
};
}