Home2L - C/C++ API  v1.2-2-ga4fe (2023-04-15)
Smart Tools for a Private Home
Macros
Microcontroller: Pin Assignments

Description

Definitions for pin assignments.

The following constants must (or may) be defined in an MCU-specific way to identify the pin(s) of the respective signal. For each MCU type, the configuration file contains a section defining these.

Some are optional, depending on the MCU and features supported.

New MCUs or features may be added, or the pin assignment of some MCU may be changed by editing source code following this comment.

Collaboration diagram for Microcontroller: Pin Assignments:

Macros

#define ISR_PCINT0
 Interrupt vector: pin change 0.
 
#define ISR_PCINT1
 Interrupt vector: pin change 1.
 
#define ISR_USI_STARTCOND
 Interrupt vector: USI start condition.
 
#define ISR_USI_OVERFLOW
 Interrupt vector: USI overflow.
 
#define P_USI_SCL
 TWI slave SCL ('twi_sl_scl')
 
#define P_USI_SDA
 TWI slave SDA ('twi_sl_sda')
 
#define GPIO_PINS_MAX
 GPIO: Maximum number of pins usable as GPIOs.
 
#define GPIO_TO_PMASK(GMASK)
 GPIO: Map a logical GPIO mask to MCU port A/B mask (see also GPIO_FROM_PMASK).
 
#define GPIO_FROM_PMASK(PMASK)
 GPIO: Map MCU port mask to a logical GPIO mask. More...
 
#define P_TWI_MA_0_SCL
 TWI master: SCL pin.
 
#define P_TWI_MA_0_SDA
 TWI master: SDA pin.
 
#define P_ADC_0
 ADC (0) pin.
 
#define P_ADC_1
 ADC 1 pin.
 
#define P_UART_RX
 UART receive pin.
 
#define P_UART_TX
 UART transmit pin.
 
#define P_UART_DRIVE
 UART driver enable (set to 1 during transmission)
 
#define P_TEMP_ZACWIRE
 Temperature: ZACwire data pin.
 
#define P_SHADES_0_BTN_UP
 Shades (0): button "up" pin.
 
#define P_SHADES_0_BTN_DN
 Shades (0): button "down" pin.
 
#define P_SHADES_0_ACT_UP
 Shades (0): actuator "up" pin.
 
#define P_SHADES_0_ACT_DN
 Shades (0): actuator "down" pin.
 
#define P_SHADES_1_BTN_UP
 Shades 1: button "up" pin.
 
#define P_SHADES_1_BTN_DN
 Shades 1: button "down" pin.
 
#define P_SHADES_1_ACT_UP
 Shades 1: actuator "up" pin.
 
#define P_SHADES_1_ACT_DN
 Shades 1: actuator "down" pin.
 

Macro Definition Documentation

◆ GPIO_FROM_PMASK

#define GPIO_FROM_PMASK (   PMASK)

GPIO: Map MCU port mask to a logical GPIO mask.

These two macros define the mapping betweeen logical GPIO pins to port A and port B bits for all GPIOs enabled by GPIO_PINS_MAX. Unused bits must be masked out, so that GPIO_TO_PMASK(0xffff) identifies all ports used as GPIOs and GPIO_FROM_MASK(0xffff) identifies all logically usable GPIOs, respectively.

Definition at line 539 of file configure.h.