lcd controller ili9488 example.
Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | SYS_TICK_FREQ 1000 |
System tick frequency in Hz. More... | |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
static void | configure_systick (void) |
Configure system tick to generate an interrupt every 1ms. More... | |
int | main (void) |
Application entry point for smc_lcd example. More... | |
void | SysTick_Handler (void) |
Handler for System Tick interrupt. More... | |
void | wait (volatile uint32_t ul_ms) |
Wait for some time in ms. More... | |
Variables | |
struct ili9488_opt_t | g_ili9488_display_opt |
volatile uint32_t | g_ul_tick_count |
Tick Counter in unit of ms. More... | |
#define SYS_TICK_FREQ 1000 |
System tick frequency in Hz.
Referenced by configure_systick().
|
static |
Configure UART console.
References uart_rs232_options::baudrate, stdio_serial_init(), and sysclk_enable_peripheral_clock().
Referenced by main().
|
static |
Configure system tick to generate an interrupt every 1ms.
References SYS_TICK_FREQ, and sysclk_get_cpu_hz().
Referenced by main().
int main | ( | void | ) |
Application entry point for smc_lcd example.
References ili9488_opt_t::background_color, board_init(), COLOR_BLACK, COLOR_BLUE, COLOR_CONVERT, COLOR_GREEN, COLOR_RED, COLOR_VIOLET, COLOR_WHITE, configure_console(), configure_systick(), ili9488_opt_t::foreground_color, g_ili9488_display_opt, ili9488_draw_circle(), ili9488_draw_filled_rectangle(), ili9488_draw_line(), ili9488_draw_string(), ili9488_init(), ILI9488_LCD_HEIGHT, ILI9488_LCD_WIDTH, ili9488_set_foreground_color(), sysclk_init(), ili9488_opt_t::ul_height, ili9488_opt_t::ul_width, and wait().
void SysTick_Handler | ( | void | ) |
Handler for System Tick interrupt.
Process System Tick Event. Increment the ul_ms_ticks counter.
References g_ul_tick_count.
void wait | ( | volatile uint32_t | ul_ms | ) |
struct ili9488_opt_t g_ili9488_display_opt |
Referenced by main().
volatile uint32_t g_ul_tick_count |
Tick Counter in unit of ms.
Referenced by get_tick_count(), SysTick_Handler(), and wait().