Board-specific example configuration.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
I/O port config for board buttons | |
#define | BUTTON_IOPORT PORTF |
I/O port config for all board LEDs | |
#define | LED_IOPORT PORTE |
Functions | |
static void | write_board_led_mask (uint8_t mask) |
Board-specific application configuration | |
#define | GAMEMODE_SENSE_PIN IOPORT_CREATE_PIN(PORTA, 0) |
Game mode configuration jumper sense pin ID. More... | |
#define | GAMEMODE_GROUND_PIN IOPORT_CREATE_PIN(PORTA, 1) |
Game mode configuration jumper ground pin ID. More... | |
#define | SOUNDMODE_SENSE_PIN IOPORT_CREATE_PIN(PORTA, 2) |
Sound mode configuration jumper sense pin ID. More... | |
#define | SOUNDMODE_GROUND_PIN IOPORT_CREATE_PIN(PORTA, 3) |
Sound mode configuration jumper ground pin ID. More... | |
#define | SOUND_TIMER_MODULE TCC0 |
Timer module to use for triggering DAC conversions. More... | |
#define | SOUND_TIMER_EVENT EVSYS_CHMUX_TCC0_OVF_gc |
Timer overflow event source for event system channel MUX. More... | |
#define | DEBOUNCE_TIMER_MODULE TCC1 |
Timer module to use for debouncing of push buttons. More... | |
#define | TIMEOUT_TIMER_MODULE TCD0 |
Timer module to use for detecting timeout. More... | |
static uint8_t | get_board_button_mask (void) |
Get bitmask with current board button status. More... | |
#define BUTTON_IOPORT PORTF |
Referenced by get_board_button_mask().
#define DEBOUNCE_TIMER_MODULE TCC1 |
Timer module to use for debouncing of push buttons.
Referenced by play_game(), record_buttons(), and start_debounce_timer().
#define GAMEMODE_GROUND_PIN IOPORT_CREATE_PIN(PORTA, 1) |
#define GAMEMODE_SENSE_PIN IOPORT_CREATE_PIN(PORTA, 0) |
#define LED_IOPORT PORTE |
Referenced by write_board_led_mask().
#define SOUND_TIMER_EVENT EVSYS_CHMUX_TCC0_OVF_gc |
Timer overflow event source for event system channel MUX.
Referenced by sound_init().
#define SOUND_TIMER_MODULE TCC0 |
Timer module to use for triggering DAC conversions.
Referenced by sound_init(), sound_start_timer(), and sound_stop_timer().
#define SOUNDMODE_GROUND_PIN IOPORT_CREATE_PIN(PORTA, 3) |
#define SOUNDMODE_SENSE_PIN IOPORT_CREATE_PIN(PORTA, 2) |
#define TIMEOUT_TIMER_MODULE TCD0 |
Timer module to use for detecting timeout.
Referenced by init_save_timer(), start_save_timer(), and timeout_callback().
|
inlinestatic |
Get bitmask with current board button status.
References BUTTON_IOPORT.
Referenced by main().
|
inlinestatic |
References LED_IOPORT.
Referenced by main(), and play_game().