stm32_serDes_protobuf_project/app/app.c
2024-04-08 14:21:04 +03:00

29 lines
446 B
C

#include "app.h"
void delay(uint32_t ms) {
ms *= 16800;
while(ms--) {
__NOP();
}
}
void loop() {
GPIO_ToggleBits(GPIOB, GPIO_Pin_7);
delay(500);
}
void app() {
while(1) {
// printf("Hello, world%.2f\r\n", 2.71);
RCC_ClocksTypeDef clk;
RCC_GetClocksFreq(&clk);
printf("LOAD: %.d\r\n", SysTick->LOAD);
printf("VAL: %.d\r\n", SysTick->VAL);
loop();
};
}