mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Eliminate compiler warning about 'BIT' macro
Add parentheses to comply with compiler suggestion
This commit is contained in:
parent
5a40bb8746
commit
50d7e4e41c
@ -643,9 +643,9 @@ static inline bool gpio_ll_is_digital_io_hold(gpio_dev_t *hw, uint32_t gpio_num)
|
|||||||
case 1: mask = BIT(1); break;
|
case 1: mask = BIT(1); break;
|
||||||
case 3: mask = BIT(0); break;
|
case 3: mask = BIT(0); break;
|
||||||
case 5: mask = BIT(8); break;
|
case 5: mask = BIT(8); break;
|
||||||
case 6 ... 11 : mask = BIT(gpio_num - 4); break;
|
case 6 ... 11 : mask = BIT((gpio_num - 4)); break;
|
||||||
case 16 ... 19:
|
case 16 ... 19:
|
||||||
case 21 ... 23: mask = BIT(gpio_num - 7); break;
|
case 21 ... 23: mask = BIT((gpio_num - 7)); break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
installation_notes.txt
Normal file
10
installation_notes.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz
|
||||||
|
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-x86_64-linux-gnu.tar.gz
|
||||||
|
https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz
|
||||||
|
|
||||||
|
downloaded into:
|
||||||
|
|
||||||
|
/home/kevin/.espressif/dist/xtensa...
|
||||||
|
/home/kevin/.espressif/dist/riscv32...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user