EPPL  0.1 alpha
 All Files Typedefs Groups Pages
eppl_avr8_reinit.h File Reference

Embedded Port Pins Library - part of internal porting files. More...

Go to the source code of this file.

Macros

#define EPPL_avr8_ReinitIsAtomicAccessReg(reg, port, pinconfigs...)
 Macro that checks if access to register is going to be atomic instruction. More...
 
#define EPPL_avr8_ReinitIsAtomic(port, pinconfigs...)
 Check if access to the selected port is atomic.
 
#define eppl_avr8_ReinitReg(reg, port, pinconfigs...)
 Change configuration of listed pins. More...
 
#define EPPL_avr8_ReinitIsSafe(port, pinconfigs...)
 Check if port reinitialization can be done safely. More...
 
#define eppl_avr8_ReinitOnePort(port, pinconfigs...)
 Single port reinitialization. More...
 
Internal macros for complex pin identifier checking

Macros set to be used with EPPL_GETSUBSET macro. Checks if in list of pins-changes change any register setting is modified and what is the target value.

#define EPPL_avr8_reinit_isPORTSET(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(PORT, EPPL_GRfrom(bit), EPPL_GRto(bit)) && EPPL_avr8_mode_valuePORT(EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isPORTCLR(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(PORT, EPPL_GRfrom(bit), EPPL_GRto(bit)) && !EPPL_avr8_mode_valuePORT(EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isPORTCHANGE(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(PORT, EPPL_GRfrom(bit), EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isPORTUNSAFE(param, bit)   ( (EPPL_PORTNR(bit) == param) && ( !EPPL_avr8_mode_knownPORT(EPPL_GRto(bit)) || EPPL_avr8_mode_modifiedReg(PORT, EPPL_GRfrom(bit), EPPL_GRto(bit)) ) )
 
#define EPPL_avr8_reinit_isDDRSET(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(DDR, EPPL_GRfrom(bit), EPPL_GRto(bit)) && EPPL_avr8_mode_valueDDR(EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isDDRCLR(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(DDR, EPPL_GRfrom(bit), EPPL_GRto(bit)) && !EPPL_avr8_mode_valueDDR(EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isDDRCHANGE(param, bit)   ( (EPPL_PORTNR(bit) == param) && EPPL_avr8_mode_modifiedReg(DDR, EPPL_GRfrom(bit), EPPL_GRto(bit)) )
 
#define EPPL_avr8_reinit_isDDRUNSAFE(param, bit)   ( (EPPL_PORTNR(bit) == param) && ( !EPPL_avr8_mode_knownDDR(EPPL_GRto(bit)) || EPPL_avr8_mode_modifiedReg(DDR, EPPL_GRfrom(bit), EPPL_GRto(bit)) ) )
 

Detailed Description

Embedded Port Pins Library - part of internal porting files.

Author
Radoslaw Koppel <r.koppel@k-el.com>
Date
2013 File that contains macros and functions that allows reinitialization of port pins
See Also
<eppl_avr8_reinit>