36 lines
646 B
C
36 lines
646 B
C
#include "lv_port_disp.h"
|
|
#include "lv_port_tick.h"
|
|
#include "lv_demos.h"
|
|
#include "bsp_lcd_ili9341.h"
|
|
#include "debug.h"
|
|
|
|
/*********************************************************************
|
|
* @fn main
|
|
*
|
|
* @brief Main program.
|
|
*
|
|
* @return none
|
|
*/
|
|
int main(void)
|
|
{
|
|
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
|
SystemCoreClockUpdate();
|
|
Delay_Init();
|
|
USART_Printf_Init(115200);
|
|
|
|
printf("SystemClk: %d\r\n", SystemCoreClock);
|
|
printf("ChipID: %08x\r\n", DBGMCU_GetCHIPID());
|
|
|
|
bsp_lcd_init();
|
|
|
|
lv_init();
|
|
lv_port_disp_init();
|
|
lv_create_tick();
|
|
|
|
lv_demo_benchmark();
|
|
|
|
while (1) {
|
|
lv_task_handler();
|
|
}
|
|
}
|