|
SAM4SD32 (SAM4S-EK2)
|
SAM architecture specific IOPORT service implementation header file. More...
#include <sysclk.h>Go to the source code of this file.
Macros | |
| #define | IOPORT_BASE_ADDRESS (uintptr_t)PIOA |
| #define | IOPORT_CREATE_PIN(port, pin) |
| Create IOPORT pin number. | |
| #define | IOPORT_PIO_OFFSET ((uintptr_t)PIOB - (uintptr_t)PIOA) |
| #define | IOPORT_PIOA 0 |
| #define | IOPORT_PIOB 1 |
| #define | IOPORT_PIOC 2 |
| #define | IOPORT_PIOD 3 |
| #define | IOPORT_PIOE 4 |
| #define | IOPORT_PIOF 5 |
IOPORT Mode bit definitions | |
| #define | IOPORT_MODE_DEBOUNCE ( 1 << 7) |
| #define | IOPORT_MODE_GLITCH_FILTER ( 1 << 6) |
| #define | IOPORT_MODE_MUX_A ( 0 << 0) |
| #define | IOPORT_MODE_MUX_B ( 1 << 0) |
| #define | IOPORT_MODE_MUX_BIT0 ( 1 << 0) |
| #define | IOPORT_MODE_MUX_BIT1 ( 1 << 1) |
| #define | IOPORT_MODE_MUX_C ( 2 << 0) |
| #define | IOPORT_MODE_MUX_D ( 3 << 0) |
| #define | IOPORT_MODE_MUX_MASK (0x7 << 0) |
| #define | IOPORT_MODE_OPEN_DRAIN ( 1 << 5) |
| #define | IOPORT_MODE_PULLDOWN ( 1 << 4) |
| #define | IOPORT_MODE_PULLUP ( 1 << 3) |
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 |
SAM architecture specific IOPORT service implementation header file.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
\cond ASF_LICENSE
Definition in file ioport_pio.h.
| #define IOPORT_BASE_ADDRESS (uintptr_t)PIOA |
Definition at line 42 of file ioport_pio.h.
Referenced by arch_ioport_port_to_base().
Definition at line 43 of file ioport_pio.h.
Referenced by arch_ioport_port_to_base().
| #define IOPORT_PIOA 0 |
Definition at line 45 of file ioport_pio.h.
| #define IOPORT_PIOB 1 |
Definition at line 46 of file ioport_pio.h.
| #define IOPORT_PIOC 2 |
Definition at line 47 of file ioport_pio.h.
Referenced by arch_ioport_port_to_base().
| #define IOPORT_PIOD 3 |
Definition at line 48 of file ioport_pio.h.
Referenced by arch_ioport_port_to_base().
| #define IOPORT_PIOE 4 |
Definition at line 49 of file ioport_pio.h.
| #define IOPORT_PIOF 5 |
Definition at line 50 of file ioport_pio.h.
| typedef uint32_t ioport_mode_t |
Definition at line 92 of file ioport_pio.h.
| typedef uint32_t ioport_pin_t |
Definition at line 93 of file ioport_pio.h.
| typedef uint32_t ioport_port_mask_t |
Definition at line 95 of file ioport_pio.h.
| typedef uint32_t ioport_port_t |
Definition at line 94 of file ioport_pio.h.
|
static |
Definition at line 171 of file ioport_pio.h.
References arch_ioport_disable_port(), arch_ioport_pin_to_mask(), and arch_ioport_pin_to_port_id().
Referenced by ioport_disable_pin().
|
static |
Definition at line 159 of file ioport_pio.h.
References arch_ioport_port_to_base(), and Pio::PIO_PDR.
Referenced by arch_ioport_disable_pin(), and ioport_disable_port().
|
static |
Definition at line 165 of file ioport_pio.h.
References arch_ioport_enable_port(), arch_ioport_pin_to_mask(), and arch_ioport_pin_to_port_id().
Referenced by ioport_enable_pin().
|
static |
Definition at line 153 of file ioport_pio.h.
References arch_ioport_port_to_base(), and Pio::PIO_PER.
Referenced by arch_ioport_enable_pin(), and ioport_enable_port().
|
static |
Definition at line 302 of file ioport_pio.h.
References arch_ioport_pin_to_base(), arch_ioport_pin_to_mask(), and Pio::PIO_PDSR.
Referenced by ioport_get_pin_level().
|
static |
Definition at line 307 of file ioport_pio.h.
References arch_ioport_port_to_base(), and Pio::PIO_PDSR.
Referenced by ioport_get_port_level().
|
static |
Definition at line 131 of file ioport_pio.h.
References ID_PIOA, ID_PIOB, and ID_PIOC.
Referenced by ioport_init().
|
static |
Definition at line 121 of file ioport_pio.h.
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 |
Definition at line 126 of file ioport_pio.h.
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(), and ioport_pin_to_mask().
|
static |
Definition at line 97 of file ioport_pio.h.
Referenced by arch_ioport_disable_pin(), arch_ioport_enable_pin(), arch_ioport_pin_to_base(), arch_ioport_set_pin_mode(), arch_ioport_set_pin_sense_mode(), and ioport_pin_to_port_id().
|
static |
Definition at line 102 of file ioport_pio.h.
References IOPORT_BASE_ADDRESS, IOPORT_PIO_OFFSET, IOPORT_PIOC, IOPORT_PIOD, and PIOC.
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(), and arch_ioport_toggle_port_level().
|
static |
Definition at line 264 of file ioport_pio.h.
References arch_ioport_pin_to_base(), arch_ioport_pin_to_mask(), IOPORT_DIR_INPUT, IOPORT_DIR_OUTPUT, Pio::PIO_ODR, Pio::PIO_OER, and Pio::PIO_OWER.
Referenced by ioport_set_pin_dir().
|
static |
Definition at line 278 of file ioport_pio.h.
References arch_ioport_pin_to_base(), arch_ioport_pin_to_mask(), Pio::PIO_CODR, and Pio::PIO_SODR.
Referenced by ioport_set_pin_level().
|
static |
Definition at line 243 of file ioport_pio.h.
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 |
Definition at line 366 of file ioport_pio.h.
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 |
Definition at line 250 of file ioport_pio.h.
References arch_ioport_port_to_base(), IOPORT_DIR_INPUT, IOPORT_DIR_OUTPUT, Pio::PIO_ODR, Pio::PIO_OER, and Pio::PIO_OWER.
Referenced by ioport_set_port_dir().
|
static |
Definition at line 290 of file ioport_pio.h.
References arch_ioport_port_to_base(), Pio::PIO_CODR, and Pio::PIO_SODR.
Referenced by ioport_set_port_level().
|
static |
Definition at line 177 of file ioport_pio.h.
References arch_ioport_port_to_base(), IOPORT_MODE_DEBOUNCE, IOPORT_MODE_GLITCH_FILTER, IOPORT_MODE_MUX_BIT0, IOPORT_MODE_MUX_BIT1, IOPORT_MODE_OPEN_DRAIN, IOPORT_MODE_PULLDOWN, IOPORT_MODE_PULLUP, Pio::PIO_ABCDSR, Pio::PIO_IFDR, Pio::PIO_IFER, Pio::PIO_IFSCDR, Pio::PIO_IFSCER, Pio::PIO_MDDR, Pio::PIO_MDER, Pio::PIO_PPDDR, Pio::PIO_PPDER, Pio::PIO_PUDR, and Pio::PIO_PUER.
Referenced by arch_ioport_set_pin_mode(), ioport_reset_port_mode(), and ioport_set_port_mode().
|
static |
Definition at line 331 of file ioport_pio.h.
References arch_ioport_port_to_base(), IOPORT_SENSE_FALLING, IOPORT_SENSE_LEVEL_HIGH, IOPORT_SENSE_LEVEL_LOW, IOPORT_SENSE_RISING, Pio::PIO_AIMDR, Pio::PIO_AIMER, Pio::PIO_ESR, Pio::PIO_FELLSR, Pio::PIO_LSR, and Pio::PIO_REHLSR.
Referenced by arch_ioport_set_pin_sense_mode(), and ioport_set_port_sense_mode().
|
static |
Definition at line 313 of file ioport_pio.h.
References arch_ioport_pin_to_base(), arch_ioport_pin_to_mask(), Pio::PIO_CODR, Pio::PIO_PDSR, and Pio::PIO_SODR.
Referenced by ioport_toggle_pin_level().
|
static |
Definition at line 325 of file ioport_pio.h.
References arch_ioport_port_to_base(), and Pio::PIO_ODSR.
Referenced by ioport_toggle_port_level().