![ST AN3311 Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/st/an3311/an3311_instruction_1355862033.webp)
AN3311
Getting started with the system
Doc ID 18209 Rev 1
33/58
In order to use the In-home display application project, it is necessary to:
●
Include all the firmware delivered in the In-home display package containing the
FreeRTOS core files. See
●
Create the desired menu application functions in the file menu.c
●
Put inside “picture.c” the HEX dump of the pictures to be used with the application GUI
●
Implement a main function as described in the following section.
7.2
Example application - main.c
An example of a main application is given below. The main function contains an example of
the In-home display application initialization/configuration and implements the classic
operations:
/* Standard includes. */
#include <stdio.h>
/* Scheduler includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
/* Library includes. */
#include "stm32f10x.h"
#include "stm32f10x_it.h"
#include "STM3210c_eval_lcd.h"
#include "LcdHal.h" //SB
/* Demo app includes. */
#include "flash.h"
#include "partest.h"
#include "common.h"
#include "micro_clocks_irqs.h"
#include "micro.h"
#include "menu.h"
#include "graphicObject.h"
#include "cursor.h"
#include "stm32d-eval_io_expander.h"
#include "LcdHal.h"
#include "TscHal.h"
#include "pictures.h"
#include "stm32f10x.h"
#include "stm32f10x_rcc.h"
#include "misc.h"
#include "SmartPlugObj.h"
#include "CoordinatorObj.h"
#include "COORDINATOR_Layer.h"
#include "ZSP_Layer.h"
#ifdef USE_STM3210E_EVAL
#include "stm3210e_eval_lcd.h"
#elif USE_STM3210C_EVAL
#include "stm3210c_eval_lcd.h"
#include "touchscreen.h"
#endif
/* Private define ------------------------------------------------------------*/