| Zakładka z wyszukiwarką danych komponentów |
|
AN3128 Arkusz danych(PDF) 94 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3128 Arkusz danych(HTML) 94 Page - STMicroelectronics |
|
94 / 105 page ![]() Getting started with the system AN3128 94/105 Doc ID 16918 Rev 5 5 Getting started with the system 5.1 Example application - main.c An example of a main application is given below. The main function contains an example of the Graphic library initialization/configuration and implements the classic operations: /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "hw_config.h" #include "menu.h" #include "cursor.h" #include "pictures.h" #include <stdio.h> /* Main_Private_Macros -----------------------------------------------------------*/ #ifdef __GNUC__ /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf set to 'Yes') calls __io_putchar() */ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) #endif /* __GNUC__ */ /** * @brief Main program. * @param None * @retval None */ int main(void) { RCC_ClocksTypeDef RCC_Clocks; uint32_t time_out = 0xFFF; /* Setup the microcontroller system. Initialize the Embedded Flash Interface, initialize the PLL and update the SystemFrequency variable. */ SystemInit(); /* Setup SysTick Timer for 10 msec interrupts */ RCC_GetClocksFreq(&RCC_Clocks); if (SysTick_Config(RCC_Clocks.SYSCLK_Frequency / 100)) { /* Capture error */ while (1); } /* Set HW structure parameters */ HWConfig_SetHardwareParams(); /* Set the Vector Table base location at 0x08000000 */ NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0000); /* If the LCD Panel has a resolution of 320x240 this command is not needed, it's set by default */ /* Set_LCD_Resolution( 320, 240 ); */ /* Initialize the LCD */ GL_LCD_Init(); |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |