Embedded Port Pins Library - porting file. More...
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "port/avr8/eppl_avr8_internals.h"
#include "port/avr8/eppl_avr8_init.h"
#include "port/avr8/eppl_avr8_reinit.h"
#include "port/avr8/eppl_avr8_mapin.h"
#include "port/avr8/eppl_avr8_mapout.h"
Go to the source code of this file.
Macros | |
#define | EPPL_avr8_PORTSIZE 8L |
#define | EPPL_avr8_PORTCNT 12 |
#define | EPPL_mode_outPP (EPPL_mode_flag | EPPL_mode_out | (0x00 << 2)) |
Output Push-Pull mode. More... | |
#define | EPPL_mode_outOC (EPPL_mode_flag | EPPL_mode_out | (0x01 << 2)) |
Output Open-Collector mode. More... | |
#define | EPPL_mode_outOE (EPPL_mode_flag | EPPL_mode_out | (0x02 << 2)) |
Output Open-Emiter mode. More... | |
#define | EPPL_mode_outPU (EPPL_mode_flag | EPPL_mode_out | (0x03 << 2)) |
Output Pull-Up mode. More... | |
#define | EPPL_mode_inHZ (EPPL_mode_flag | EPPL_outSet_0) |
Input Hi-Z. More... | |
#define | EPPL_mode_inPU (EPPL_mode_flag | EPPL_outSet_1) |
Input Pull-UP. More... | |
#define | EPPL_outSet_0 (EPPL_outSet_flag | 0) |
Set output to low value. More... | |
#define | EPPL_outSet_1 (EPPL_outSet_flag | 1) |
Set output to high value. More... | |
#define | EPPL_configBits 6 |
#define | EPPL_avr8_CONFSIZE (1U<<(EPPL_configBits)) |
#define | eppl_avr8_LockableBlockBegin(lock) |
Macro that is used at the beginning of unsafe code. More... | |
#define | eppl_avr8_LockableBlockEnd(locked) |
Macro that is used at the end of unsafe code. More... | |
Internal values | |
Special values used by target module. Try not to use inside application. | |
#define | EPPL_mode_mask (0x0f << 2) |
#define | EPPL_mode_flag (0x08 << 2) |
#define | EPPL_outSet_mask 0x03 |
#define | EPPL_outSet_value 0x01 |
#define | EPPL_outSet_flag 0x02 |
#define | EPPL_mode_out (0x04 << 2) |
Internal value that points that we have OUT mode. More... | |
Short-cuts for output mode and value set | |
Short form output of the mode settings. The idea is to write for example EPPL_mode_outPP_0 that means the same as: (EPPL_mode_outPP | EPPL_outSet_0). | |
#define | EPPL_mode_outPP_0 (EPPL_mode_outPP | EPPL_outSet_0) |
#define | EPPL_mode_outPP_1 (EPPL_mode_outPP | EPPL_outSet_1) |
#define | EPPL_mode_outOC_0 (EPPL_mode_outOC | EPPL_outSet_0) |
#define | EPPL_mode_outOC_1 (EPPL_mode_outOC | EPPL_outSet_1) |
#define | EPPL_mode_outOE_0 (EPPL_mode_outOE | EPPL_outSet_0) |
#define | EPPL_mode_outOE_1 (EPPL_mode_outOE | EPPL_outSet_1) |
#define | EPPL_mode_outPU_0 (EPPL_mode_outPU | EPPL_outSet_0) |
#define | EPPL_mode_outPU_1 (EPPL_mode_outPU | EPPL_outSet_1) |
Embedded Port Pins Library - porting file.