32 lines
560 B
C
32 lines
560 B
C
#include "BoardCfg.h"
|
|
|
|
/**
|
|
* @brief 系统初始化
|
|
*
|
|
*/
|
|
void BoardInit(void)
|
|
{
|
|
#if (SPI_FLASH)
|
|
SPI_FlashInit();
|
|
#endif
|
|
#if (LCD_RGB)
|
|
RGBLCDInit();
|
|
MemoryInit();
|
|
#endif
|
|
#if (LVGL_V8)
|
|
extern void lv_init();
|
|
extern void lv_port_disp_init();
|
|
extern void XPY2046Init();
|
|
XPY2046Init();
|
|
lv_init();
|
|
|
|
lv_port_disp_init();
|
|
lv_port_indev_init();
|
|
// lv_demo_benchmark();
|
|
lv_demo_widgets();
|
|
// lv_demo_stress();
|
|
// lv_demo_music();
|
|
#endif
|
|
GPIO_Init(GPIOB, PIN12, 1, 0, 0);
|
|
GPIO_SetBit(GPIOB, PIN12);
|
|
} |