apps/display-demo/app_slideshow.c File Reference

Display demo slideshow. More...

#include <assert.h>
#include <board.h>
#include <interrupt.h>
#include <led.h>
#include <mainloop.h>
#include <string.h>
#include <timer.h>
#include <fs/tsfs.h>
#include <gfx/gfx.h>
#include <gfx/win.h>
#include "app_desktop.h"
#include "app_slideshow.h"
#include <workqueue.h>
#include "file_loader.h"

Go to the source code of this file.

Data Structures

struct  slide_context
 Context for the slideshow application. More...

Defines

Color scheme

#define COLOR_BACKGROUND   GFX_COLOR(0, 0, 0)
 Color to initally fill display with.
Slideshow timing configuration

#define SECONDS_PER_SLIDE   4
 Number of seconds to wait before loading the next slide.
#define SECONDS_PER_PAUSE   16
 Number of seconds to wait before loading the next slide, when the user previously selected the previous slide.
#define TIMER_CLOCK_RATE   (0xffff / 4)
 Minimum timer clock rate to use.
Slideshow image size

#define SLIDE_SIZE_X   320
 Width of slideshow images.
#define SLIDE_SIZE_Y   240
 Height of slideshow images.
Slideshow filename prefix

#define SLIDE_PREFIX_PICS   "s_"
 Filename prefix for picture slideshow.
#define SLIDE_PREFIX_AVR   "avr"
 Filename prefix for AVR presentation slideshow.
#define SLIDE_PREFIX_UC3   "uc3"
 Filename prefix for UC3 presentation slideshow.
#define SLIDE_PREFIX_XMEGA   "xmega"
 Filename prefix for AVR XMEGA presentation slideshow.
#define SLIDE_PREFIX_DX   "dispxpl"
 Filename prefix for Display Xplained presentation slideshow.

Functions

static void slide_get_next_file (bool increment)
 Find index of next slideshow file to load.
static void slide_show_file (void)
 Start loading current file to screen.
static void slide_timer_callback (struct timer *timer)
 Timer alarm callback for automatic loading.
static bool slide_window_handler (struct win_window *win, enum win_event_type type, void const *data)
 Event handler for the application windows.
static void slide_worker (struct workqueue_task *task)
 Application task worker.
static void slide_launch_helper (struct workqueue_task *task, char *file_prefix)
 Common slideshow launcher.
void app_slideshow_pics_launch (struct workqueue_task *task)
 Launch picture slideshow.
void app_slideshow_avr_launch (struct workqueue_task *task)
 Launch 8-bit AVR presentation slideshow.
void app_slideshow_uc3_launch (struct workqueue_task *task)
 Launch UC3 presentation slideshow.
void app_slideshow_xmega_launch (struct workqueue_task *task)
 Launch AVR XMEGA presentation slideshow.
void app_slideshow_dx_launch (struct workqueue_task *task)
 Launch Display Xplain presentation slideshow.

Variables

struct tsfs myfs
 Filesystem control struct, needed when searching for files.
static struct slide_contextslide_context
 Pointer to slideshow application context.

Detailed Description

Display demo slideshow.

Copyright (C) 2010 Atmel Corporation. All rights reserved.

Definition in file app_slideshow.c.

Generated on Thu Apr 29 14:09:58 2010 for display-demo by  doxygen 1.6.3