// // Created by cfif on 22.09.2025. // #include "Clock.h" #include "Systick.h" #include "GpioPin.h" void DefaultISR(void) { asm("nop"); } int main(void) { bool bExitFlag = true; uint32_t u32SystickCnt = 0U; uint32_t u32PreviousCnt = 0U; Bsp_CLOCK_Init(); Bsp_Systick_Init(); tGpioPin LED_G = vInitGpioPinPull(GPIO_D, PORT_PIN_2, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_HIGH, GPIO_PUSH_PULL, PORT_PULL_DOWN); tGpioPin ShutOffFront_EN = vInitGpioPinPull(GPIO_A, PORT_PIN_20, GPIO_OUT, GPIO_PIN_NOREVERSE, GPIO_HIGH, GPIO_PUSH_PULL, PORT_PULL_UP); bool isLED = false; while (bExitFlag) { u32SystickCnt = Bsp_Systick_GetSystick(); if (((u32SystickCnt % 1000U) == 0U) && (u32SystickCnt != u32PreviousCnt)) { u32PreviousCnt = u32SystickCnt; if (isLED) { isLED = false; GpioPinSet(&LED_G, 1); GpioPinSet(&ShutOffFront_EN, 1); } else { isLED = true; GpioPinSet(&LED_G, 0); GpioPinSet(&ShutOffFront_EN, 0); } } } return 0; }