SAM architecture specific IOPORT service implementation header file.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
#include <sysclk.h>
Macros | |
#define | IOPORT_CREATE_PIN(port, pin) ((port) * 32 + (pin)) |
Create IOPORT pin number. More... | |
#define | IOPORT_GPIOA 0 |
#define | IOPORT_GPIOB 1 |
#define | IOPORT_GPIOC 2 |
#define | IOPORT_GPIOD 3 |
#define | IOPORT_GPIOE 4 |
#define | IOPORT_GPIOF 5 |
IOPORT Mode bit definitions | |
#define | IOPORT_MODE_MUX_MASK (7 << 0) |
#define | IOPORT_MODE_MUX_BIT0 (1 << 0) |
#define | IOPORT_MODE_MUX_BIT1 (1 << 1) |
#define | IOPORT_MODE_MUX_A (0 << 0) |
#define | IOPORT_MODE_MUX_B (1 << 0) |
#define | IOPORT_MODE_MUX_C (2 << 0) |
#define | IOPORT_MODE_MUX_D (3 << 0) |
#define | IOPORT_MODE_MUX_BIT2 (1 << 2) |
#define | IOPORT_MODE_MUX_E (4 << 0) |
#define | IOPORT_MODE_MUX_F (5 << 0) |
#define | IOPORT_MODE_MUX_G (6 << 0) |
#define | IOPORT_MODE_MUX_H (7 << 0) |
#define | IOPORT_MODE_PULLUP (1 << 3) |
#define | IOPORT_MODE_PULLDOWN (1 << 4) |
#define | IOPORT_MODE_GLITCH_FILTER (1 << 6) |
#define | IOPORT_MODE_DRIVE_STRENGTH (1 << 7) |
Typedefs | |
typedef uint32_t | ioport_mode_t |
typedef uint32_t | ioport_pin_t |
typedef uint32_t | ioport_port_mask_t |
typedef uint32_t | ioport_port_t |
#define IOPORT_GPIOA 0 |
Referenced by GPIO_0_Handler(), GPIO_1_Handler(), GPIO_2_Handler(), and GPIO_3_Handler().
#define IOPORT_GPIOB 1 |
Referenced by GPIO_4_Handler(), GPIO_5_Handler(), GPIO_6_Handler(), and GPIO_7_Handler().
#define IOPORT_GPIOC 2 |
Referenced by GPIO_10_Handler(), GPIO_11_Handler(), GPIO_8_Handler(), and GPIO_9_Handler().
#define IOPORT_GPIOD 3 |
#define IOPORT_GPIOE 4 |
#define IOPORT_GPIOF 5 |
typedef uint32_t ioport_mode_t |
typedef uint32_t ioport_pin_t |
typedef uint32_t ioport_port_mask_t |
typedef uint32_t ioport_port_t |
|
static |
References arch_ioport_disable_port(), arch_ioport_pin_to_mask(), and arch_ioport_pin_to_port_id().
Referenced by ioport_disable_pin().
|
static |
References arch_ioport_port_to_base().
Referenced by arch_ioport_disable_pin(), and ioport_disable_port().
|
static |
References arch_ioport_enable_port(), arch_ioport_pin_to_mask(), and arch_ioport_pin_to_port_id().
Referenced by ioport_enable_pin().
|
static |
References arch_ioport_port_to_base().
Referenced by arch_ioport_enable_pin(), and ioport_enable_port().
|
static |
References arch_ioport_pin_to_base(), and arch_ioport_pin_to_mask().
Referenced by ioport_get_pin_level().
|
static |
References arch_ioport_port_to_base().
Referenced by ioport_get_port_level().
|
static |
References sysclk_enable_peripheral_clock().
Referenced by ioport_init().
|
static |
References arch_ioport_pin_to_port_id(), and arch_ioport_port_to_base().
Referenced by arch_ioport_get_pin_level(), arch_ioport_set_pin_dir(), arch_ioport_set_pin_level(), and arch_ioport_toggle_pin_level().
|
static |
|
static |
|
static |
|
static |
References arch_ioport_pin_to_base(), arch_ioport_pin_to_mask(), IOPORT_DIR_INPUT, and IOPORT_DIR_OUTPUT.
Referenced by ioport_set_pin_dir().
|
static |
References arch_ioport_pin_to_base(), and arch_ioport_pin_to_mask().
Referenced by ioport_set_pin_level().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_pin_to_port_id(), and arch_ioport_set_port_mode().
Referenced by ioport_reset_pin_mode(), and ioport_set_pin_mode().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_pin_to_port_id(), and arch_ioport_set_port_sense_mode().
Referenced by ioport_set_pin_sense_mode().
|
static |
References arch_ioport_port_to_base(), IOPORT_DIR_INPUT, and IOPORT_DIR_OUTPUT.
Referenced by ioport_set_port_dir().
|
static |
References arch_ioport_port_to_base().
Referenced by ioport_set_port_level().
|
static |
References arch_ioport_port_to_base(), IOPORT_MODE_DRIVE_STRENGTH, IOPORT_MODE_GLITCH_FILTER, IOPORT_MODE_MUX_BIT0, IOPORT_MODE_MUX_BIT1, IOPORT_MODE_MUX_BIT2, IOPORT_MODE_PULLDOWN, and IOPORT_MODE_PULLUP.
Referenced by arch_ioport_set_pin_mode(), ioport_reset_port_mode(), and ioport_set_port_mode().
|
static |
References arch_ioport_port_to_base().
Referenced by arch_ioport_set_pin_sense_mode(), and ioport_set_port_sense_mode().
|
static |
References arch_ioport_pin_to_base(), and arch_ioport_pin_to_mask().
Referenced by ioport_toggle_pin_level().
|
static |
References arch_ioport_port_to_base().
Referenced by ioport_toggle_port_level().