#include "board.h"
#include "gpio.h"
#include "spi.h"
#include "pm.h"
#include "print_funcs.h"
#include "usart.h"
#include "et024006dhu.h"
#include "qt60168.h"
#include "conf_qt60168.h"
Macros | |
#define | COS0 1 |
#define | COS30 0.87 |
#define | COS60 0.5 |
#define | COS90 0 |
#define | DEMO_SIZE_X ET024006_WIDTH |
#define | DEMO_SIZE_Y 160 |
#define | DEMO_START_X 0 |
#define | DEMO_START_Y 38 |
#define | DEMO_WHEEL_RADIUS 60 |
#define | DEMO_WHEEL_SIZE_X 20 |
#define | DEMO_WHEEL_SIZE_Y 20 |
#define | DEMO_WHEEL_START_X ET024006_WIDTH/2 - DEMO_WHEEL_SIZE_X/2 |
#define | DEMO_WHEEL_START_Y ET024006_HEIGHT/2 - DEMO_WHEEL_SIZE_Y/2 |
#define | SIN0 0 |
#define | SIN30 0.5 |
#define | SIN60 0.87 |
#define | SIN90 1 |
Enumerations | |
enum | demo_color_t { DEMO_COLOR_ALL =0, DEMO_COLOR_BLUE, DEMO_COLOR_RED, DEMO_COLOR_GREEN, DEMO_COLOR_MAX } |
enum | demo_display_t { DEMO_DISPLAY_BOXES =0, DEMO_DISPLAY_WHEEL, DEMO_DISPLAY_MAX } |
Functions | |
int | main (void) |
Main function. More... | |
static void | qt60168_resources_init (void) |
Initializes QT60168 resources: GPIO and SPI. More... | |
#define COS0 1 |
Referenced by main().
#define COS30 0.87 |
Referenced by main().
#define COS60 0.5 |
Referenced by main().
#define COS90 0 |
Referenced by main().
#define DEMO_SIZE_X ET024006_WIDTH |
Referenced by main().
#define DEMO_SIZE_Y 160 |
Referenced by main().
#define DEMO_START_X 0 |
Referenced by main().
#define DEMO_START_Y 38 |
Referenced by main().
#define DEMO_WHEEL_RADIUS 60 |
Referenced by main().
#define DEMO_WHEEL_SIZE_X 20 |
Referenced by main().
#define DEMO_WHEEL_SIZE_Y 20 |
Referenced by main().
#define DEMO_WHEEL_START_X ET024006_WIDTH/2 - DEMO_WHEEL_SIZE_X/2 |
Referenced by main().
#define DEMO_WHEEL_START_Y ET024006_HEIGHT/2 - DEMO_WHEEL_SIZE_Y/2 |
Referenced by main().
#define SIN0 0 |
Referenced by main().
#define SIN30 0.5 |
Referenced by main().
#define SIN60 0.87 |
Referenced by main().
#define SIN90 1 |
Referenced by main().
enum demo_color_t |
enum demo_display_t |
int main | ( | void | ) |
Main function.
References BLACK, BLUE, COS0, COS30, COS60, COS90, DEMO_COLOR_ALL, DEMO_COLOR_BLUE, DEMO_COLOR_GREEN, DEMO_COLOR_MAX, DEMO_COLOR_RED, DEMO_DISPLAY_BOXES, DEMO_DISPLAY_MAX, DEMO_DISPLAY_WHEEL, DEMO_SIZE_X, DEMO_SIZE_Y, DEMO_START_X, DEMO_START_Y, DEMO_WHEEL_RADIUS, DEMO_WHEEL_SIZE_X, DEMO_WHEEL_SIZE_Y, DEMO_WHEEL_START_X, DEMO_WHEEL_START_Y, et024006_DrawFilledRect(), et024006_DrawLine(), ET024006_HEIGHT, et024006_Init(), et024006_PrintString(), ET024006_WIDTH, FONT6x8, FONT8x8, FOSC0, gpio_set_gpio_pin(), gpio_tgl_gpio_pin(), GREEN, i, init_dbg_rs232(), LED1_GPIO, LED2_GPIO, LED3_GPIO, pm_switch_to_osc0(), qt60168_init(), qt60168_is_key_pressed(), qt60168_resources_init(), RED, SIN0, SIN30, SIN60, SIN90, touch_states, and WHITE.
|
static |
Initializes QT60168 resources: GPIO and SPI.
References FOSC0, gpio_enable_module(), QT60168_SPI_BITS, QT60168_SPI_MASTER_SPEED, spi_options_t::reg, spi_enable(), spi_initMaster(), spi_selectionMode(), and spi_setupChipReg().
Referenced by main().