LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
example_emWin.c File Reference
#include "lpc43xx_dualcore_config.h"
#include "ipc_example.h"
#include "ipc_msg.h"
#include "GUI.h"
#include "DIALOG.h"

Go to the source code of this file.

Macros

#define ID_FRAMEWIN_0   (GUI_ID_USER + 0x0A)
 
#define ID_TEXT_0   (GUI_ID_USER + 0x0B)
 
#define ID_BUTTON_0   (GUI_ID_USER + 0x0C)
 
#define ID_BUTTON_1   (GUI_ID_USER + 0x0D)
 
#define ID_BUTTON_2   (GUI_ID_USER + 0x0E)
 
#define ID_TEXT_1   (GUI_ID_USER + 0x10)
 
#define ID_TEXT_2   (GUI_ID_USER + 0x11)
 
#define ID_TEXT_3   (GUI_ID_USER + 0x12)
 
#define ID_TEXT_4   (GUI_ID_USER + 0x13)
 
#define ID_TEXT_5   (GUI_ID_USER + 0x14)
 
#define ID_EDIT_0   (GUI_ID_USER + 0x15)
 
#define ID_EDIT_1   (GUI_ID_USER + 0x16)
 
#define TSC_CHECK_DELAY   (20)
 
#define GUI_BUF_ADDR   0x28050000
 GUI buffers required for emwin library.
 
#define GUI_NUMBYTES   ((1024 * 1024) * 2)
 
#define GUI_BLOCKSIZE   (0x128)
 
#define GUI_BUF   LOCATE_AT(GUI_BUF_ADDR)
 

Functions

static char * ipaddr_ntoa_r (uint32_t addr, char *buf, int buflen)
 
static void lcd_update_values (WM_HWIN hWin_up)
 
static void lcd_update_remoteip (uint32_t new_remote_ip)
 
static void lcd_update_hostip (uint32_t host_ip)
 
void SysTick_Enable (uint32_t period)
 System Tick enable function.
 
void EMWIN_Init (void)
 emWin dual core example initialisation function
 
void emwin_tasks (void)
 emWin dual core example task
 

Variables

static volatile uint32_t host_ip_addr
 
static volatile uint32_t remote_ip_addr
 
static volatile int start = 0
 
static volatile short counter = 0
 
static WM_HWIN hWin
 
volatile int tsc_init_done = 0
 Touch screen initialisation done flag.
 
GUI_BUF U32 GUI_Memory [GUI_NUMBYTES/sizeof(U32)]
 
U32 GUI_Memory_Size = GUI_NUMBYTES
 
U32 GUI_Block_Size = GUI_BLOCKSIZE
 

Detailed Description

emWin Example application source code This file provides functions using emWin library.

Definition in file example_emWin.c.