/** * @brief Main program. * @param None * @retval None */ int main(void) { /*!< At this stage the microcontroller clocka setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f30x.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f30x.c file */ /* Setup SysTick Timer for 1 msec interrupts */ if (SysTick_Config(SystemCoreClock / 1000)) { /* Capture error */ while (1) {} } AGE_Init(); APP_USART_SendString(USART1, "AGE - Version 0.1"); APP_USART_SendString(USART1, "\r\n"); Delay(1000); APP_USART_SendString(USART1, "Ready.\r\n\r\n"); /* Infinite loop */ while (1) { //only for debug PA_IN = GPIOA->IDR & (GPIO_Pin_0 | GPIO_Pin_1 | GPIO_Pin_6 | GPIO_Pin_7); PC_OUT = GPIOC->ODR & (GPIO_Pin_4 | GPIO_Pin_5); PE_OUT = GPIOE->ODR & 0xFF00; Delay(1000); } }
int main(int argc, char const *argv[]) { AGE_Init("AGE Test", SCREEN_WIDTH, SCREEN_HEIGHT, false); // AGE_FullScreenBorderless(); Initialize(); LoadContent(); AGE_Run(EventHandler, Update, Draw); Unload(); AGE_Close(); return 0; }