fix(gpio): fix gpio const zero addr

This commit is contained in:
gaoxu
2024-07-08 15:03:31 +08:00
committed by Gao Xu
parent 549dee4faf
commit 5da216a753
5 changed files with 88 additions and 94 deletions

View File

@@ -28,9 +28,6 @@ extern "C" {
#define GPIO_ID_PIN(n) (GPIO_ID_PIN0+(n))
#define GPIO_PIN_ADDR(i) (GPIO_PIN0_REG + i*4)
#define GPIO_FUNC_IN_HIGH 0x38
#define GPIO_FUNC_IN_LOW 0x3C
#define GPIO_ID_IS_PIN_REGISTER(reg_id) \
((reg_id >= GPIO_ID_PIN0) && (reg_id <= GPIO_ID_PIN(GPIO_PIN_COUNT-1)))