#include "board.h"
#include "string.h"
#include "retarget.h"
Go to the source code of this file.
| #define COORD_GET_NUM (10) |
| #define TSC2046_CONVERSION_BITS 12 |
| #define TSC2046_COORD_MAX (0xFFF) |
| #define TSC2046_DELTA_VARIANCE (0x50) |
| #define TSC_12BIT (0x00 << 3) |
| #define TSC_8BIT (0x01 << 3) |
| #define TSC_CHANNEL_X (0x05 << 4) /* differential */ |
| #define TSC_CHANNEL_Y (0x01 << 4) /* differential */ |
| #define TSC_CHANNEL_Z1 (0x03 << 4) /* differential */ |
| #define TSC_CHANNEL_Z2 (0x04 << 4) /* differential */ |
| #define TSC_DFR_MODE (0x00 << 2) /* Differential Reference Mode */ |
| #define TSC_SER_MODE (0x01 << 2) /* Single-Ended Reference Mode */ |
| #define TSC_START (0x01 << 7) |
| static Status Board_Audio_CodecInit |
( |
int |
micIn | ) |
|
|
static |
| static void Board_LED_Init |
( |
| ) |
|
|
static |
| static int16_t calibrateTSC2046 |
( |
int16_t |
Coord, |
|
|
int16_t |
MinVal, |
|
|
int16_t |
MaxVal, |
|
|
int16_t |
TrueSize |
|
) |
| |
|
static |
| static void delay |
( |
uint32_t |
i | ) |
|
|
static |
| static void delayMs |
( |
uint32_t |
ms | ) |
|
|
static |
| static Status evalTSC2046Coord |
( |
uint8_t |
command, |
|
|
uint16_t * |
coord |
|
) |
| |
|
static |
| static void initSSD1289 |
( |
void |
| ) |
|
|
static |
| static void lcdPinConfig |
( |
void |
| ) |
|
|
static |
| static void readWriteTSC2046 |
( |
uint8_t |
command, |
|
|
uint16_t * |
data |
|
) |
| |
|
static |
| static void writeLCDReg |
( |
uint16_t |
addr, |
|
|
uint16_t |
data |
|
) |
| |
|
static |
| const uint32_t ExtRateIn = 0 |
Clock rate on the CLKIN pin This value is defined externally to the chip layer and contains the value in Hz for the CLKIN pin for the board. If this pin isn't used, this rate can be 0.
Definition at line 132 of file board.c.
| const uint8_t ledbits[] = {1, 5, 6, 8} |
|
static |
| const uint8_t ledports[] = {4, 7, 7, 7} |
|
static |
Initial value:= {
3758, 149, 3914, 163, 240, 320, 1
}
Local variables
Definition at line 100 of file board.c.