We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9024fba commit e461608Copy full SHA for e461608
17 files changed
cpu/atmega1281/include/periph_cpu.h
@@ -40,6 +40,7 @@ enum {
40
PORT_E = 4, /**< port E */
41
PORT_F = 5, /**< port F */
42
PORT_G = 6, /**< port G */
43
+ GPIO_EXP_PORT = 7 /**< first GPIO expander port */
44
};
45
46
/**
cpu/atmega1284p/include/periph_cpu.h
@@ -29,19 +29,15 @@
29
extern "C" {
30
#endif
31
32
-/**
33
- * @brief Define a CPU specific GPIO pin generator macro
34
- */
35
-#define GPIO_PIN(x, y) ((x << 4) | y)
36
-
37
38
* @brief Available ports on the ATmega1284p family
39
*/
enum {
PORT_A = 0, /**< port A */
PORT_B = 1, /**< port B */
PORT_C = 2, /**< port C */
- PORT_D = 3 /**< port D */
+ PORT_D = 3, /**< port D */
+ GPIO_EXP_PORT = 4 /**< first GPIO expander port */
47
cpu/atmega128rfa1/include/periph_cpu.h
@@ -32,11 +32,12 @@ extern "C" {
* @{
- PORT_B = 1, /**< port B */
- PORT_D = 3, /**< port D */
- PORT_E = 4, /**< port E */
- PORT_F = 5, /**< port F */
- PORT_G = 6, /**< port G */
+ PORT_B = 1, /**< port B */
+ PORT_E = 4, /**< port E */
+ PORT_F = 5, /**< port F */
+ PORT_G = 6, /**< port G */
/** @} */
cpu/atmega2560/include/periph_cpu.h
@@ -31,17 +31,18 @@ extern "C" {
* @brief Available ports on the ATmega2560 family
- PORT_A = 0, /**< port A */
- PORT_C = 2, /**< port C */
- PORT_H = 7, /**< port H */
- PORT_J = 8, /**< port J */
- PORT_K = 9, /**< port K */
- PORT_L = 10 /**< port L */
+ PORT_A = 0, /**< port A */
+ PORT_C = 2, /**< port C */
+ PORT_H = 7, /**< port H */
+ PORT_J = 8, /**< port J */
+ PORT_K = 9, /**< port K */
+ PORT_L = 10, /**< port L */
+ GPIO_EXP_PORT = 11 /**< first GPIO expander port */
48
cpu/atmega256rfr2/include/periph_cpu.h
cpu/atmega328p/include/periph_cpu.h
@@ -27,18 +27,14 @@
27
28
* @brief Available ports on the ATmega328p family
cpu/atmega32u4/include/periph_cpu.h
@@ -34,7 +34,8 @@ enum {
PORT_D = 3, /**< port D */
- PORT_F = 5 /**< port F */
+ GPIO_EXP_PORT = 6 /**< first GPIO expander port */
cpu/atmega_common/Kconfig
@@ -21,6 +21,7 @@ config CPU_COMMON_ATMEGA
21
select HAS_PERIPH_CPUID
22
select HAS_PERIPH_EEPROM
23
select HAS_PERIPH_GPIO
24
+ select HAS_PERIPH_GPIO_EXP
25
select HAS_PERIPH_GPIO_IRQ
26
select HAS_PERIPH_PM
select HAS_PERIPH_TIMER_PERIODIC
cpu/atmega_common/Makefile.dep
@@ -7,6 +7,9 @@ USEMODULE += atmega_common
7
# peripheral drivers are linked into the final binary
8
USEMODULE += atmega_common_periph
9
10
+# 8 bit GPIO pin mask required
11
+USEMODULE += gpio_mask_8bit
12
+
13
# the atmel port uses stdio_uart by default
14
ifeq (,$(filter stdio_% slipdev_stdio,$(USEMODULE)))
15
USEMODULE += stdio_uart
cpu/atmega_common/Makefile.features
@@ -4,7 +4,7 @@ FEATURES_PROVIDED += atmega_pcint0
4
FEATURES_PROVIDED += cpp
5
FEATURES_PROVIDED += periph_cpuid
6
FEATURES_PROVIDED += periph_eeprom
-FEATURES_PROVIDED += periph_gpio periph_gpio_irq
+FEATURES_PROVIDED += periph_gpio periph_gpio_irq periph_gpio_exp
FEATURES_PROVIDED += periph_pm
FEATURES_PROVIDED += periph_timer_periodic
FEATURES_PROVIDED += periph_wdt
0 commit comments