КБ
Size: a a a
КБ
ds
КБ
s
#define MAXMILLIS 4294967295
uint32_t timeobnv = 0;
uint32_t timelapsed = 0;
while (1)
{
uint32_t currtime = HAL_GetTick();
if(currtime > timeobnv) timelapsed = (currtime - timeobnv);
else timelapsed = (MAXMILLIS - timeobnv + currtime);
if(timelapsed > 1000)
{
timeobnv = currtime;
HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_14);
}
}ds
ds
ds
ds
G[