Corrected the definitions for the pullup and pulldown input modes (#51)

in "defs.h" per the github issue #15 posted by Sylvain Munaut.
This commit is contained in:
R. Timothy Edwards 2022-04-07 10:46:02 -04:00 committed by GitHub
parent 07012ce2aa
commit ab85f607e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -216,15 +216,15 @@ extern uint32_t flashio_worker_end;
// Useful GPIO mode values // Useful GPIO mode values
#define GPIO_MODE_MGMT_STD_INPUT_NOPULL 0x0403 #define GPIO_MODE_MGMT_STD_INPUT_NOPULL 0x0403
#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0803 #define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0801
#define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c03 #define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c01
#define GPIO_MODE_MGMT_STD_OUTPUT 0x1809 #define GPIO_MODE_MGMT_STD_OUTPUT 0x1809
#define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 0x1801 #define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 0x1801
#define GPIO_MODE_MGMT_STD_ANALOG 0x000b #define GPIO_MODE_MGMT_STD_ANALOG 0x000b
#define GPIO_MODE_USER_STD_INPUT_NOPULL 0x0402 #define GPIO_MODE_USER_STD_INPUT_NOPULL 0x0402
#define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0802 #define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0800
#define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c02 #define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c00
#define GPIO_MODE_USER_STD_OUTPUT 0x1808 #define GPIO_MODE_USER_STD_OUTPUT 0x1808
#define GPIO_MODE_USER_STD_BIDIRECTIONAL 0x1800 #define GPIO_MODE_USER_STD_BIDIRECTIONAL 0x1800
#define GPIO_MODE_USER_STD_OUT_MONITORED 0x1802 #define GPIO_MODE_USER_STD_OUT_MONITORED 0x1802