LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
i2c.c File Reference
#include "board.h"
#include "chip.h"

Go to the source code of this file.

Macros

#define I2CDEV_UDA1380_ADDR   (0x34 >> 1)
 
#define I2CDEV_STMPE811_ADDR   (0x82 >> 1)
 
#define I2CDEV_S_ADDR   (0x90 >> 1)
 
#define BUFFER_SIZE   0xFF
 
#define C_GLCD_H_SIZE   240
 
#define C_GLCD_V_SIZE   320
 

Functions

static void print_menu (void)
 
static void Buffer_Init (uint8_t *buffer, uint8_t type)
 
static void App_I2C_Polling_Master (void)
 
static void App_I2C_Interrupt_Master (void)
 
static void App_I2C_Polling_Slave (void)
 
static void App_I2C_Interrupt_Slave (void)
 
static void App_I2C_TouchScreen (void)
 
void I2C1_IRQHandler (void)
 I2C Interrupt Handler.
 
int main (void)
 Main program body.
 

Variables

static char menu []
 
static char menu1 [] = "\n\r \t - Press x to exit this mode!\n\r"
 
static char menu2 [] = "\n\rI2C demo terminated!"
 
static char menu3 [] = "\t - Press c to continue...\n\r"
 
static volatile bool complete
 
static volatile bool isMasterMode = true