void startupInit(void) { /* * NOTE! * As different MCU is used (F1 and F4) then different clocks must be inited! * * For example: * - stm32f1xx works on 72Mhz Sys clock and use "#define SYSCLK_FREQ_72MHz 72000000"; * - stm32f4xx work on 168MHz Sys clock and use a lot of manual settings in PLLs. * * Both initialization located in "system_stm32fyxx.c", where "y" mean model f1 or f4; */ SystemInit(); // init clocks and another s... initSysTickTimer(); init_GPIO_RCC(); // initRand(); initLCD(); /* initialize a ILI9341 chip */ setRotation(1); // horizontal loadDefaultPalette(); initRaycasterPointers(); drawBootLogo(); // Init SD and SPI_2 after all inited sd_spi_init(); // init SPI_2 or SPI_3 for SD card }
void Object::defaultInitialisation() { // default layers addNewBitmapLayer(); addNewVectorLayer(); // default palette loadDefaultPalette(); }
void Object::defaultInitialisation() { // default layers addNewBitmapLayer(); addNewVectorLayer(); addNewCameraLayer();//TODO Add Camera Layer at beginning for Quick Preview // default palette loadDefaultPalette(); }