XMEGA-A3BU Xplained demo application.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
#include "adc_sensors.h"
#include "date_time.h"
#include "lightsensor.h"
#include "keyboard.h"
#include "ntc_sensor.h"
#include "production_date.h"
#include "timezone.h"
#include "touch_api.h"
#include "cdc.h"
#include "conf_application.h"
Functions | |
void | button_splash (void) |
Show button names on display. More... | |
int | main (void) |
Main function. More... | |
PROGMEM_DECLARE (char const, main_menu_title[]) | |
PROGMEM_DECLARE (char const, main_menu_1[]) | |
PROGMEM_DECLARE (char const, main_menu_2[]) | |
PROGMEM_DECLARE (char const, main_menu_3[]) | |
PROGMEM_DECLARE (char const, main_menu_4[]) | |
PROGMEM_DECLARE (char const, main_menu_5[]) | |
Variables | |
struct gfx_mono_menu | main_menu |
PROGMEM_STRING_T | main_menu_strings [] |
void button_splash | ( | void | ) |
Show button names on display.
References gfx_mono_draw_filled_circle, gfx_mono_draw_filled_rect, gfx_mono_draw_string(), GFX_PIXEL_CLR, GFX_PIXEL_SET, GFX_WHOLE, keyboard_get_key_state(), KEYBOARD_RELEASE, sysfont, and keyboard_event::type.
Referenced by main().
int main | ( | void | ) |
Main function.
Initializes the board and reads out the production date stored in EEPROM and set timezone from EEPROM if it is set. If it is not set it will open the timezone selector to select the local timezone. It then runs the menu system in an infinite while loop.
References adc_sensors_init(), board_init(), button_splash(), cdc_start(), cpu_irq_enable, date_time_application(), FIRST_POSSIBLE_TIMESTAMP, gfx_mono_init, GFX_MONO_MENU_EVENT_EXIT, GFX_MONO_MENU_EVENT_IDLE, gfx_mono_menu_init(), gfx_mono_menu_process_key(), gpio_set_pin_high, gpio_toggle_pin, keyboard_get_key_state(), KEYBOARD_RELEASE, keyboard_event::keycode, lightsensor_application(), NHD_C12832A1Z_BACKLIGHT, ntc_sensor_application(), pmic_init(), production_date_application(), production_date_get_timestamp(), RTC32, rtc_get_time(), rtc_init(), rtc_set_time(), rtc_vbat_system_check(), sysclk_enable_module(), sysclk_init(), SYSCLK_PORT_GEN, SYSCLK_RTC, timezone_init(), touch_init(), keyboard_event::type, and VBAT_STATUS_OK.
PROGMEM_DECLARE | ( | char | const, |
main_menu_title | [] | ||
) |
PROGMEM_DECLARE | ( | char | const, |
main_menu_1 | [] | ||
) |
PROGMEM_DECLARE | ( | char | const, |
main_menu_2 | [] | ||
) |
PROGMEM_DECLARE | ( | char | const, |
main_menu_3 | [] | ||
) |
PROGMEM_DECLARE | ( | char | const, |
main_menu_4 | [] | ||
) |
PROGMEM_DECLARE | ( | char | const, |
main_menu_5 | [] | ||
) |
struct gfx_mono_menu main_menu |
PROGMEM_STRING_T main_menu_strings[] |