SAM L21 GPIO configuration and utility functions.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BM7X_MODE_PIN (EXT1_PIN_3) |
#define | BM7X_RESET_PIN (EXT1_PIN_4) |
#define | BM7X_RX_IND_PIN (EXT1_PIN_10) |
#define | BMXX_TX_IND_EIC_LINE 4 |
#define | BMXX_TX_IND_EIC_MUX MUX_PB04A_EIC_EXTINT4 |
#define | BMXX_TX_IND_EIC_PIN PIN_PB04A_EIC_EXTINT4 |
#define | BMXX_TX_IND_PIN EXT1_PIN_9 |
#define | IOPORT_PIN_LEVEL_HIGH (true) |
#define | IOPORT_PIN_LEVEL_LOW (false) |
Functions | |
static void | ble_configure_control_pin (void) |
static void | ble_configure_reset_pin_dir_input (void) |
static void | ble_configure_reset_pin_dir_output (void) |
static bool | bm7x_mode_pin_level (void) |
static void | bm7x_mode_pin_set_high (void) |
static void | bm7x_mode_pin_set_low (void) |
static bool | bm7x_reset_pin_level (void) |
static void | bm7x_reset_pin_set_high (void) |
static void | bm7x_reset_pin_set_low (void) |
static bool | bm7x_wakeup_pin_level (void) |
static void | bm7x_wakeup_pin_set_high (void) |
static void | bm7x_wakeup_pin_set_low (void) |
static void | bm_host_wakeup_config (void) |
static void | bm_host_wakeup_handler (void) |
static bool | host_wakeup_pin_level (void) |
void | platform_host_wake_interrupt_handler (void) |
#define BM7X_MODE_PIN (EXT1_PIN_3) |
Referenced by ble_configure_control_pin(), bm7x_mode_pin_level(), bm7x_mode_pin_set_high(), and bm7x_mode_pin_set_low().
#define BM7X_RESET_PIN (EXT1_PIN_4) |
#define BM7X_RX_IND_PIN (EXT1_PIN_10) |
#define BMXX_TX_IND_EIC_LINE 4 |
Referenced by bm_host_wakeup_config().
#define BMXX_TX_IND_EIC_MUX MUX_PB04A_EIC_EXTINT4 |
Referenced by bm_host_wakeup_config().
#define BMXX_TX_IND_EIC_PIN PIN_PB04A_EIC_EXTINT4 |
Referenced by bm_host_wakeup_config().
#define BMXX_TX_IND_PIN EXT1_PIN_9 |
Referenced by host_wakeup_pin_level().
#define IOPORT_PIN_LEVEL_HIGH (true) |
Referenced by bm7x_mode_pin_set_high(), bm7x_reset_pin_set_high(), and bm7x_wakeup_pin_set_high().
#define IOPORT_PIN_LEVEL_LOW (false) |
Referenced by bm7x_mode_pin_set_low(), bm7x_reset_pin_set_low(), and bm7x_wakeup_pin_set_low().
|
inlinestatic |
References BM7X_MODE_PIN, BM7X_RESET_PIN, BM7X_RX_IND_PIN, delay_init(), port_config::direction, port_config::input_pull, port_get_config_defaults(), PORT_PIN_DIR_OUTPUT, PORT_PIN_PULL_DOWN, and port_pin_set_config().
Referenced by platform_init().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References BM7X_MODE_PIN, and port_pin_get_output_level().
|
inlinestatic |
References BM7X_MODE_PIN, IOPORT_PIN_LEVEL_HIGH, and port_pin_set_output_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BM7X_MODE_PIN, IOPORT_PIN_LEVEL_LOW, and port_pin_set_output_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BM7X_RESET_PIN, and port_pin_get_output_level().
|
inlinestatic |
References BM7X_RESET_PIN, IOPORT_PIN_LEVEL_HIGH, and port_pin_set_output_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BM7X_RESET_PIN, IOPORT_PIN_LEVEL_LOW, and port_pin_set_output_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BM7X_RX_IND_PIN, and port_pin_get_output_level().
Referenced by platform_wakeup_pin_status().
|
inlinestatic |
References BM7X_RX_IND_PIN, IOPORT_PIN_LEVEL_HIGH, and port_pin_set_output_level().
Referenced by platform_gpio_set(), and platform_send_sync().
|
inlinestatic |
References BM7X_RX_IND_PIN, IOPORT_PIN_LEVEL_LOW, and port_pin_set_output_level().
Referenced by platform_gpio_set(), and platform_send_sync().
|
inlinestatic |
References bm_host_wakeup_handler(), BMXX_TX_IND_EIC_LINE, BMXX_TX_IND_EIC_MUX, BMXX_TX_IND_EIC_PIN, extint_chan_conf::detection_criteria, EXTINT_CALLBACK_TYPE_DETECT, extint_chan_enable_callback(), extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_FALLING, EXTINT_PULL_UP, extint_register_callback(), extint_chan_conf::filter_input_signal, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, and extint_chan_conf::gpio_pin_pull.
Referenced by platform_init().
|
inlinestatic |
References platform_host_wake_interrupt_handler().
Referenced by bm_host_wakeup_config().
|
inlinestatic |
References BMXX_TX_IND_PIN, and port_pin_get_input_level().
void platform_host_wake_interrupt_handler | ( | void | ) |
Referenced by bm_host_wakeup_handler().