Board specific definition for low power example.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | CLOCK_LIST_MENU |
#define | EFC EFC0 |
#define | MAX_CLOCK_FAST_RC_ITEM '8' |
#define | MAX_CLOCK_PLL_ITEM 'g' |
#define | MIN_CLOCK_FAST_RC_ITEM '1' |
#define | MIN_CLOCK_PLL_ITEM 'a' |
#define | STRING_ACTIVE |
Hint message for active mode. More... | |
#define | STRING_BACKUP |
Hint message for backup mode. More... | |
#define | STRING_SLEEP |
Hint message for sleep mode. More... | |
#define | STRING_WAIT |
Hint message for wait mode. More... | |
#define | WAKEUP_BACKUP_INPUT_ID (1u << 15) |
Wakeup pin for backup mode: Touchscreen controller IRQ pin. More... | |
#define | WAKEUP_WAIT_INPUT_ID (1u << 15) |
Wakeup pin for wait mode: Touchscreen controller IRQ pin. More... | |
#define | PIN_PUSHBUTTON_WAKEUP_PIO PIN_PUSHBUTTON_1_PIO |
Push button definitions for sleep mode and active mode. More... | |
#define | PIN_PUSHBUTTON_WAKEUP_MASK PIN_PUSHBUTTON_1_MASK |
#define | PIN_PUSHBUTTON_WAKEUP_ID PIN_PUSHBUTTON_1_ID |
#define | PIN_PUSHBUTTON_WAKEUP_ATTR PIN_PUSHBUTTON_1_ATTR |
Functions | |
void | init_specific_board (void) |
Initialize SAM3N_EK board for low power test. More... | |
Variables | |
uint32_t | g_fastrc_clock_list [][3] |
Clock list from fast RC. More... | |
uint32_t | g_pll_clock_list [][4] |
Clock list from PLL. More... | |
#define CLOCK_LIST_MENU |
Referenced by user_change_clock().
#define EFC EFC0 |
Referenced by display_menu_core(), and test_core().
#define MAX_CLOCK_FAST_RC_ITEM '8' |
Referenced by user_change_clock().
#define MAX_CLOCK_PLL_ITEM 'g' |
Referenced by user_change_clock().
#define MIN_CLOCK_FAST_RC_ITEM '1' |
Referenced by user_change_clock().
#define MIN_CLOCK_PLL_ITEM 'a' |
Referenced by user_change_clock().
#define PIN_PUSHBUTTON_WAKEUP_ATTR PIN_PUSHBUTTON_1_ATTR |
Referenced by configure_button().
#define PIN_PUSHBUTTON_WAKEUP_ID PIN_PUSHBUTTON_1_ID |
Referenced by button_handler(), and configure_button().
#define PIN_PUSHBUTTON_WAKEUP_MASK PIN_PUSHBUTTON_1_MASK |
Referenced by button_handler(), and configure_button().
#define PIN_PUSHBUTTON_WAKEUP_PIO PIN_PUSHBUTTON_1_PIO |
Push button definitions for sleep mode and active mode.
Referenced by configure_button().
#define STRING_ACTIVE |
Hint message for active mode.
Referenced by test_active_mode().
#define STRING_BACKUP |
Hint message for backup mode.
#define STRING_SLEEP |
Hint message for sleep mode.
Referenced by test_sleep_mode().
#define STRING_WAIT |
Hint message for wait mode.
Referenced by test_wait_mode().
#define WAKEUP_BACKUP_INPUT_ID (1u << 15) |
Wakeup pin for backup mode: Touchscreen controller IRQ pin.
#define WAKEUP_WAIT_INPUT_ID (1u << 15) |
Wakeup pin for wait mode: Touchscreen controller IRQ pin.
void init_specific_board | ( | void | ) |
Initialize SAM3N_EK board for low power test.
References ADC_CHANNEL_4, adc_enable_channel(), IRQ_PRIOR_PIO, pio_handler_set_priority(), pio_pull_up(), PIO_PULLUP, pio_set_input(), pmc_disable_udpck(), and pmc_enable_periph_clk().
Referenced by init_chip().
uint32_t g_fastrc_clock_list[][3] |
Clock list from fast RC.
Referenced by user_change_clock().
uint32_t g_pll_clock_list[][4] |
Clock list from PLL.
Referenced by user_change_clock().