XMEGA architecture specific IOPORT service implementation header file.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | IOPORT_BASE_ADDRESS 0x600 |
#define | IOPORT_CREATE_PIN(port, pin) ((IOPORT_ ## port) * 8 + (pin)) |
Create IOPORT pin number. More... | |
#define | IOPORT_PORT_OFFSET 0x20 |
IOPORT port numbers | |
#define | IOPORT_PORTA 0 |
#define | IOPORT_PORTB 1 |
#define | IOPORT_PORTC 2 |
#define | IOPORT_PORTD 3 |
#define | IOPORT_PORTE 4 |
#define | IOPORT_PORTR 15 |
IOPORT Mode bit definitions | |
#define | IOPORT_MODE_TOTEM (0x00 << 3) |
#define | IOPORT_MODE_BUSKEEPER (0x01 << 3) |
#define | IOPORT_MODE_PULLDOWN (0x02 << 3) |
#define | IOPORT_MODE_PULLUP (0x03 << 3) |
#define | IOPORT_MODE_WIREDOR (0x04 << 3) |
#define | IOPORT_MODE_WIREDAND (0x05 << 3) |
#define | IOPORT_MODE_WIREDORPULL (0x06 << 3) |
#define | IOPORT_MODE_WIREDANDPULL (0x07 << 3) |
#define | IOPORT_MODE_INVERT_PIN (0x01 << 6) |
#define | IOPORT_MODE_SLEW_RATE_LIMIT (0x01 << 7) |
Typedefs | |
typedef uint8_t | ioport_mode_t |
typedef uint8_t | ioport_pin_t |
typedef uint8_t | ioport_port_mask_t |
typedef uint8_t | ioport_port_t |
#define IOPORT_BASE_ADDRESS 0x600 |
Referenced by arch_ioport_port_to_base().
#define IOPORT_PORT_OFFSET 0x20 |
Referenced by arch_ioport_port_to_base().
#define IOPORT_PORTA 0 |
#define IOPORT_PORTB 1 |
#define IOPORT_PORTC 2 |
#define IOPORT_PORTD 3 |
#define IOPORT_PORTE 4 |
#define IOPORT_PORTR 15 |
typedef uint8_t ioport_mode_t |
typedef uint8_t ioport_pin_t |
typedef uint8_t ioport_port_mask_t |
typedef uint8_t ioport_port_t |
|
static |
References arch_ioport_pin_to_base(), arch_ioport_pin_to_index(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_disable_pin().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_port_to_base(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_disable_port().
|
static |
References arch_ioport_pin_to_base(), arch_ioport_pin_to_index(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_enable_pin().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_port_to_base(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_enable_port().
|
static |
References arch_ioport_pin_to_base(), and arch_ioport_pin_to_mask().
Referenced by ioport_get_pin_level(), ioport_get_value(), ioport_pin_is_high(), and ioport_pin_is_low().
|
static |
References arch_ioport_port_to_base().
Referenced by ioport_get_port_level().
|
static |
Referenced by ioport_init().
|
static |
References arch_ioport_pin_to_port_id(), and arch_ioport_port_to_base().
Referenced by arch_ioport_disable_pin(), arch_ioport_enable_pin(), arch_ioport_get_pin_level(), arch_ioport_set_pin_dir(), arch_ioport_set_pin_level(), arch_ioport_set_pin_mode(), arch_ioport_set_pin_sense_mode(), arch_ioport_toggle_pin_level(), ioport_configure_pin(), and ioport_pin_to_port().
|
static |
|
static |
|
static |
Referenced by arch_ioport_pin_to_base(), and ioport_pin_to_port_id().
|
static |
References IOPORT_BASE_ADDRESS, and IOPORT_PORT_OFFSET.
Referenced by arch_ioport_disable_port(), arch_ioport_enable_port(), arch_ioport_get_port_level(), arch_ioport_pin_to_base(), arch_ioport_set_port_dir(), arch_ioport_set_port_level(), arch_ioport_set_port_mode(), arch_ioport_set_port_sense_mode(), arch_ioport_toggle_port_level(), ioport_configure_group(), and ioport_id_pin_to_port().
|
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_high(), ioport_set_pin_level(), ioport_set_pin_low(), ioport_set_value(), ssd1306_hard_reset(), and ssd1306_write_data().
|
static |
References arch_ioport_pin_to_base(), arch_ioport_pin_to_index(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_reset_pin_mode(), and ioport_set_pin_mode().
|
static |
References arch_ioport_pin_to_base(), arch_ioport_pin_to_index(), cpu_irq_restore(), and cpu_irq_save().
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_group_high(), ioport_set_group_low(), and ioport_set_port_level().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_port_to_base(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_reset_port_mode(), and ioport_set_port_mode().
|
static |
References arch_ioport_pin_to_mask(), arch_ioport_port_to_base(), cpu_irq_restore(), and cpu_irq_save().
Referenced by ioport_set_port_sense_mode().
|
static |
References arch_ioport_pin_to_base(), and arch_ioport_pin_to_mask().
Referenced by ioport_toggle_pin(), and ioport_toggle_pin_level().
|
static |
References arch_ioport_port_to_base().
Referenced by ioport_tgl_group(), and ioport_toggle_port_level().