用MTK 写法修改增加定义GET_GPIO_VALUE
#define GET_GPIO_VALUE(gpio_num) (readl(GPIO_MODE_BASE + (gpio_num / 16) * 4) & (1 << ((gpio_num % 16) * 2)))
原文地址: https://www.cveoy.top/t/topic/eDx2 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#define GET_GPIO_VALUE(gpio_num) (readl(GPIO_MODE_BASE + (gpio_num / 16) * 4) & (1 << ((gpio_num % 16) * 2)))
原文地址: https://www.cveoy.top/t/topic/eDx2 著作权归作者所有。请勿转载和采集!