linux: add 'GPIOI' for linux process (#5926)

Signed-off-by: Alan.Ma from BigTreeTech tech@biqu3d.com
This commit is contained in:
BIGTREETECH
2022-12-12 09:07:58 +08:00
committed by GitHub
parent 03006f5ca3
commit 516fdae2b7
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
#include <stdint.h> // uint32_t
#include "autoconf.h" // CONFIG_CLOCK_FREQ
#define MAX_GPIO_LINES 256
#define MAX_GPIO_LINES 288
#define GPIO(PORT, NUM) ((PORT) * MAX_GPIO_LINES + (NUM))
#define GPIO2PORT(PIN) ((PIN) / MAX_GPIO_LINES)
#define GPIO2PIN(PIN) ((PIN) % MAX_GPIO_LINES)