summaryrefslogtreecommitdiff
path: root/avr
diff options
context:
space:
mode:
authorLeo C.2024-06-24 11:56:26 +0200
committerLeo C.2024-06-24 11:56:26 +0200
commit49475345ffc5fd27ca937006ef6aa18858bf7c90 (patch)
tree4f9db5b93602156ed8867053fe76074ed9b31656 /avr
parentaea51b6c4c93c56715f50e64d424e1181c6d0242 (diff)
downloadz180-stamp-49475345ffc5fd27ca937006ef6aa18858bf7c90.zip
-Wimplicit-fallthrough=1
Diffstat (limited to 'avr')
-rw-r--r--avr/cmd_boot.c1
-rw-r--r--avr/cmd_gpio.c2
-rw-r--r--avr/env.c1
-rw-r--r--avr/gpio.c1
4 files changed, 5 insertions, 0 deletions
diff --git a/avr/cmd_boot.c b/avr/cmd_boot.c
index fb533c7..bba510f 100644
--- a/avr/cmd_boot.c
+++ b/avr/cmd_boot.c
@@ -379,6 +379,7 @@ command_ret_t do_console(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
case 2:
my_puts_P(PSTR("\n"
"------------------------------------------------\n"));
+ /* FALL TROUGH */
case 1:
state = 0;
switch (toupper(ch)) {
diff --git a/avr/cmd_gpio.c b/avr/cmd_gpio.c
index 549654f..32bd53a 100644
--- a/avr/cmd_gpio.c
+++ b/avr/cmd_gpio.c
@@ -247,6 +247,7 @@ command_ret_t do_gpio(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int arg
switch (toupper(argv[optind][0])) {
case 'H':
level = 1;
+ /* FALL TROUGH */
case 'L':
mode = OUTPUT;
break;
@@ -263,6 +264,7 @@ command_ret_t do_gpio(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int arg
switch (*endp) {
case 'M':
value *= 1000;
+ /* FALL TROUGH */
case 'K':
value *= 1000;
endp++;
diff --git a/avr/env.c b/avr/env.c
index 671d1c4..900f689 100644
--- a/avr/env.c
+++ b/avr/env.c
@@ -63,6 +63,7 @@ char env_get_char(uint_fast16_t index)
switch (env_valid) {
case 2:
off += CONFIG_ENV_SIZE;
+ /* FALL TROUGH */
case 1:
ret = (char) eeprom_read_byte((const uint8_t *)off + index +
offsetof(env_t, data));
diff --git a/avr/gpio.c b/avr/gpio.c
index 73e9c39..6f73cee 100644
--- a/avr/gpio.c
+++ b/avr/gpio.c
@@ -148,6 +148,7 @@ int gpio_config(int pin, gpiomode_t mode)
break;
case OUTPUT:
gpio_timer_off(pinlist[pin].timer);
+ /* FALL TROUGH */
case OUTPUT_TIMER:
ATOMIC_BLOCK(ATOMIC_FORCEON) {
p->ddr |= bit;