Atmel Software Framework

dip204_example.c File Reference
#include "board.h"
#include "compiler.h"
#include "dip204.h"
#include "intc.h"
#include "gpio.h"
#include "pm.h"
#include "delay.h"
#include "spi.h"
#include "conf_clock.h"

Macros

#define GPIO_BACKLIGHT_MINUS   GPIO_PUSH_BUTTON_1
 
#define GPIO_BACKLIGHT_PLUS   GPIO_PUSH_BUTTON_2
 
#define GPIO_CHARSET   GPIO_PUSH_BUTTON_0
 

Functions

void dip204_example_configure_joystick_IT (void)
 function to configure joystick to generate IT upon falling edge More...
 
void dip204_example_configure_push_buttons_IT (void)
 function to configure push button to generate IT upon rising edge More...
 
static void dip204_example_Joy_int_handler (void)
 The joystick interrupt handler. More...
 
static void dip204_example_PB_int_handler (void)
 The Push Buttons interrupt handler. More...
 
int main (void)
 main function : do init and loop (poll if configured so) More...
 

Variables

unsigned short current_char = 0
 
unsigned short display
 

#define GPIO_BACKLIGHT_MINUS   GPIO_PUSH_BUTTON_1

define the push button to decrease back light power

Referenced by dip204_example_configure_push_buttons_IT(), and dip204_example_PB_int_handler().

#define GPIO_BACKLIGHT_PLUS   GPIO_PUSH_BUTTON_2

define the push button to increase back light power

Referenced by dip204_example_configure_push_buttons_IT(), and dip204_example_PB_int_handler().

#define GPIO_CHARSET   GPIO_PUSH_BUTTON_0

define the push button to see available char map on LCD

Referenced by dip204_example_configure_push_buttons_IT(), and dip204_example_PB_int_handler().

void dip204_example_configure_joystick_IT ( void  )

function to configure joystick to generate IT upon falling edge

References dip204_example_Joy_int_handler(), Disable_global_interrupt, Enable_global_interrupt, gpio_enable_pin_interrupt(), GPIO_FALLING_EDGE, and INTC_register_interrupt().

Referenced by main().

void dip204_example_configure_push_buttons_IT ( void  )
static void dip204_example_Joy_int_handler ( void  )
static

unsigned short current_char = 0

current char displayed on the 4th line

Referenced by dip204_example_PB_int_handler(), and main().

unsigned short display

flag set when joystick display starts to signal main function to clear this display

Referenced by app_engine(), dip204_example_Joy_int_handler(), gui_callback(), and main().