mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
arch/xtensa/esp32: Add missing macros to iomux
This commit is contained in:
parent
2280b33eea
commit
b8ef8daef9
1 changed files with 4 additions and 0 deletions
|
|
@ -42,9 +42,13 @@
|
|||
#define FUN_PU (BIT(8))
|
||||
#define FUN_IE (BIT(9))
|
||||
#define FUN_DRV 0x3
|
||||
#define FUN_DRV_V 0x3
|
||||
#define FUN_DRV_S 10
|
||||
#define FUN_DRV_M ((FUN_DRV_V) << (FUN_DRV_S))
|
||||
#define MCU_SEL 0x7
|
||||
#define MCU_SEL_V 0x7
|
||||
#define MCU_SEL_S 12
|
||||
#define MCU_SEL_M ((MCU_SEL_V) << (MCU_SEL_S))
|
||||
|
||||
#define PIN_INPUT_ENABLE(PIN_NAME) SET_PERI_REG_MASK(PIN_NAME,FUN_IE)
|
||||
#define PIN_INPUT_DISABLE(PIN_NAME) CLEAR_PERI_REG_MASK(PIN_NAME,FUN_IE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue