2024-03-28 17:51:39 +03:00
|
|
|
#include "app.h"
|
|
|
|
|
2024-04-30 13:10:11 +03:00
|
|
|
void app() {
|
2024-03-28 17:51:39 +03:00
|
|
|
|
2024-05-02 17:19:55 +03:00
|
|
|
init_LWIP();
|
2024-05-13 15:02:23 +03:00
|
|
|
static uint32_t loop_cnt = 0;
|
|
|
|
printf("FLASH->ACR: %d\r\n", FLASH->ACR);
|
|
|
|
printf("RCC->CFGR: %d\r\n", RCC->CFGR);
|
|
|
|
printf("RCC->CR): %d\r\n", RCC->CR);
|
|
|
|
printf("RCC->PLLCFGR: %d\r\n", RCC->PLLCFGR);
|
|
|
|
printf("RCC->APB1ENR: %d\r\n", RCC->APB1ENR);
|
2024-03-28 17:51:39 +03:00
|
|
|
while(1) {
|
2024-05-04 17:20:57 +03:00
|
|
|
process_LWIP();
|
2024-05-13 15:02:23 +03:00
|
|
|
// if(loop_cnt == 10000) {
|
|
|
|
// GPIO_ToggleBits(GPIOB, GPIO_Pin_14);
|
|
|
|
// loop_cnt = 0;
|
|
|
|
// }
|
|
|
|
// loop_cnt++;
|
|
|
|
GPIO_ToggleBits(GPIOB, GPIO_Pin_14);
|
|
|
|
delay(1000);
|
2024-03-28 17:51:39 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|