English
Language : 

AN3311 Datasheet, PDF (33/58 Pages) STMicroelectronics – This application note describes
AN3311
Getting started with the system
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 Figure 10
● 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 ------------------------------------------------------------*/
Doc ID 18209 Rev 1
33/58