?? gpio.h
字號:
/* Define GPIO Registers */
#ifndef _GPIO_H_
#define _GPIO_H_
/* Register */
#define GPEN 0x01B00000 /*GPIO Enable Register */
#define GPDIR 0x01B00004 /*GPIO Direction Register */
#define GPVAL 0x01B00008 /*GPIO Value Register */
#define GPDH 0x01B00010 /*GPIO Delta High Register */
#define GPHM 0x01B00014 /*GPIO High Mask Register */
#define GPDL 0x01B00018 /*GPIO Delta Low Register */
#define GPLM 0x01B0001C /*GPIO Low Mask Register */
#define GPGC 0x01B00020 /*GPIO Global Control Register */
#define GPPOL 0x01B00024 /*GPIO Interrupt Polarity Register */
/********************************************************************************/
#define GPIO_0 0
#define GPIO_1 1
#define GPIO_2 2
#define GPIO_3 3
#define GPIO_4 4
#define GPIO_5 5
#define GPIO_6 6
#define GPIO_7 7
#define GPIO_8 8
#define GPIO_9 9
#define GPIO_10 10
#define GPIO_11 11
#define GPIO_12 12
#define GPIO_13 13
#define GPIO_14 14
#define GPIO_15 15
#define OUTPUT 1
#define INPUT 0
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -