Microchip® Advanced Software Framework

ili9488_example.c File Reference

lcd controller ili9488 example.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

#include "asf.h"
#include "stdio_serial.h"
#include "conf_board.h"
#include "conf_clock.h"

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 void configure_console ( void  )
static
static void configure_systick ( void  )
static

Configure system tick to generate an interrupt every 1ms.

References SYS_TICK_FREQ, and sysclk_get_cpu_hz().

Referenced by main().

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)

Wait for some time in ms.

References g_ul_tick_count.

Referenced by main().

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 SysTick_Handler(), and wait().