stm32_serDes_protobuf_project/app/app.c

27 lines
455 B
C
Raw Normal View History

2024-03-28 17:51:39 +03:00
#include "app.h"
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-24 15:06:06 +03:00
// GPIO_ToggleBits(GPIOB, GPIO_Pin_7);
2024-04-02 12:47:04 +03:00
2024-04-24 15:06:06 +03:00
// delay(500);
2024-03-28 17:51:39 +03:00
}
void app() {
while(1) {
2024-04-08 14:21:04 +03:00
// printf("Hello, world%.2f\r\n", 2.71);
RCC_ClocksTypeDef clk;
RCC_GetClocksFreq(&clk);
2024-04-10 19:45:21 +03:00
printf("Status: %.d\r\n", getRegister());
// printf("VAL: %.d\r\n", SysTick->VAL);
2024-03-28 17:51:39 +03:00
loop();
};
}