CPU specific definitions for internal peripheral handling. More...
CPU specific definitions for internal peripheral handling.
Definition in file periph_cpu.h.
 Include dependency graph for periph_cpu.h:
 Include dependency graph for periph_cpu.h: This graph shows which files directly or indirectly include this file:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| Macros | |
| #define | CPUID_LEN (4U) | 
| Length of the CPU_ID in octets. | |
| #define | PM_NUM_MODES (1U) | 
| Power mode configuration. | |
| #define | PROVIDES_PM_LAYERED_OFF | 
| We provide our own pm_off() function for the native CPU. | |
| #define | PERIPH_TIMER_PROVIDES_SET | 
| Prevent shared timer functions from being used. | |
| #define | EEPROM_SIZE (1024U) /* 1kB */ | 
| EEPROM configuration. | |
| GPIO Configuration | |
| #define | GPIO_PORT_SHIFT (24) | 
| The offset between Port and Pin. | |
| #define | GPIO_PIN(port, pin) | 
| Define a custom GPIO_PIN macro for native. | |
| #define | HAVE_GPIO_MODE_T | 
| Macro indicating whether GPIO modes are available on the native CPU. | |
| #define | GPIOHANDLE_REQUEST_PULL_DOWN (0xFF) | 
| Pull-down. | |
| #define | GPIOHANDLE_REQUEST_PULL_UP (0xFF) | 
| Pull-up. | |
| #define | HAVE_GPIO_FLANK_T | 
| A macro indicating whether the native CPU supports GPIO edge behavior. | |
| enum | gpio_mode_t { GPIO_IN = GPIOHANDLE_REQUEST_INPUT , GPIO_IN_PD = GPIOHANDLE_REQUEST_INPUT | GPIOHANDLE_REQUEST_PULL_DOWN , GPIO_IN_PU = GPIOHANDLE_REQUEST_INPUT | GPIOHANDLE_REQUEST_PULL_UP , GPIO_OUT = GPIOHANDLE_REQUEST_OUTPUT , GPIO_OD = GPIOHANDLE_REQUEST_OPEN_DRAIN , GPIO_OD_PU = GPIOHANDLE_REQUEST_OPEN_DRAIN | GPIOHANDLE_REQUEST_PULL_UP } | 
| Available pin modes.  More... | |
| enum | gpio_flank_t { GPIO_FALLING = GPIOEVENT_EVENT_FALLING_EDGE , GPIO_RISING = GPIOEVENT_EVENT_RISING_EDGE , GPIO_BOTH = GPIO_FALLING | GPIO_RISING } | 
| An enum for the type of flank that emit interrupts.  More... | |
| SPI Configuration | |
| #define | PERIPH_SPI_NEEDS_TRANSFER_BYTE | 
| Use the common transfer_byteSPI function. | |
| #define | PERIPH_SPI_NEEDS_TRANSFER_REG | 
| Use the common transfer_regSPI function. | |
| #define | PERIPH_SPI_NEEDS_TRANSFER_REGS | 
| Use the common transfer_regsSPI function. | |