The bit 2 and 3 in GPIO flag are allocated for the flag OPEN_DRAIN/OPEN_SOURCE. These bits are reused for the flag EXPORT/EXPORT_CHANGEABLE and so creating conflict. Fix this conflict by assigning bit 4 and 5 for the flag EXPORT/EXPORT_CHANGEABLE.
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -22,8 +22,8 @@ · 21 unmodified lines | ||
| 22 | 22 | /* Gpio pin is open source */ |
| 23 | 23 | #define GPIOF_OPEN_SOURCE (1 << 3) |
| 24 | 24 | |
| 25 | −#define GPIOF_EXPORT (1 << 2) | |
| 26 | −#define GPIOF_EXPORT_CHANGEABLE (1 << 3) | |
| 25 | +#define GPIOF_EXPORT (1 << 4) | |
| 26 | +#define GPIOF_EXPORT_CHANGEABLE (1 << 5) | |
| 27 | 27 | #define GPIOF_EXPORT_DIR_FIXED (GPIOF_EXPORT) |
| 28 | 28 | #define GPIOF_EXPORT_DIR_CHANGEABLE (GPIOF_EXPORT | GPIOF_EXPORT_CHANGEABLE) |
| 29 | 29 | |