📄 landzo
字号:
/******************** (C) COPYRIGHT 2011 野火嵌入式开发工作室 ********************
* 文件名 :gpio_cfg.h
* 描述 :gpio的端口定义头文件
*
* 实验平台 :野火kinetis开发板
* 库版本 :
* 嵌入系统 :
*
* 作者 :野火嵌入式开发工作室
* 淘宝店 :http://firestm32.taobao.com
* 技术支持论坛 :http://www.ourdev.cn/bbs/bbs_list.jsp?bbs_id=1008
**********************************************************************************/
#ifndef __GPIO_CFG_H__
#define __GPIO_CFG_H__
//定义PTA的端口 ——by 野火
#define PTA0_OUT PTA_BASE_PTR->PDORs.PDOR0
#define PTA1_OUT PTA_BASE_PTR->PDORs.PDOR1
#define PTA2_OUT PTA_BASE_PTR->PDORs.PDOR2
#define PTA3_OUT PTA_BASE_PTR->PDORs.PDOR3
#define PTA4_OUT PTA_BASE_PTR->PDORs.PDOR4
#define PTA5_OUT PTA_BASE_PTR->PDORs.PDOR5
#define PTA6_OUT PTA_BASE_PTR->PDORs.PDOR6
#define PTA7_OUT PTA_BASE_PTR->PDORs.PDOR7
#define PTA8_OUT PTA_BASE_PTR->PDORs.PDOR8
#define PTA9_OUT PTA_BASE_PTR->PDORs.PDOR9
#define PTA10_OUT PTA_BASE_PTR->PDORs.PDOR10
#define PTA11_OUT PTA_BASE_PTR->PDORs.PDOR11
#define PTA12_OUT PTA_BASE_PTR->PDORs.PDOR12
#define PTA13_OUT PTA_BASE_PTR->PDORs.PDOR13
#define PTA14_OUT PTA_BASE_PTR->PDORs.PDOR14
#define PTA15_OUT PTA_BASE_PTR->PDORs.PDOR15
#define PTA16_OUT PTA_BASE_PTR->PDORs.PDOR16
#define PTA17_OUT PTA_BASE_PTR->PDORs.PDOR17
#define PTA18_OUT PTA_BASE_PTR->PDORs.PDOR18
#define PTA19_OUT PTA_BASE_PTR->PDORs.PDOR19
#define PTA20_OUT PTA_BASE_PTR->PDORs.PDOR20
#define PTA21_OUT PTA_BASE_PTR->PDORs.PDOR21
#define PTA22_OUT PTA_BASE_PTR->PDORs.PDOR22
#define PTA23_OUT PTA_BASE_PTR->PDORs.PDOR23
#define PTA24_OUT PTA_BASE_PTR->PDORs.PDOR24
#define PTA25_OUT PTA_BASE_PTR->PDORs.PDOR25
#define PTA26_OUT PTA_BASE_PTR->PDORs.PDOR26
#define PTA27_OUT PTA_BASE_PTR->PDORs.PDOR27
#define PTA28_OUT PTA_BASE_PTR->PDORs.PDOR28
#define PTA29_OUT PTA_BASE_PTR->PDORs.PDOR29
#define PTA30_OUT PTA_BASE_PTR->PDORs.PDOR30
#define PTA31_OUT PTA_BASE_PTR->PDORs.PDOR31
//定义PTB的端口 ——by 野火
#define PTB0_OUT PTB_BASE_PTR->PDORs.PDOR0
#define PTB1_OUT PTB_BASE_PTR->PDORs.PDOR1
#define PTB2_OUT PTB_BASE_PTR->PDORs.PDOR2
#define PTB3_OUT PTB_BASE_PTR->PDORs.PDOR3
#define PTB4_OUT PTB_BASE_PTR->PDORs.PDOR4
#define PTB5_OUT PTB_BASE_PTR->PDORs.PDOR5
#define PTB6_OUT PTB_BASE_PTR->PDORs.PDOR6
#define PTB7_OUT PTB_BASE_PTR->PDORs.PDOR7
#define PTB8_OUT PTB_BASE_PTR->PDORs.PDOR8
#define PTB9_OUT PTB_BASE_PTR->PDORs.PDOR9
#define PTB10_OUT PTB_BASE_PTR->PDORs.PDOR10
#define PTB11_OUT PTB_BASE_PTR->PDORs.PDOR11
#define PTB12_OUT PTB_BASE_PTR->PDORs.PDOR12
#define PTB13_OUT PTB_BASE_PTR->PDORs.PDOR13
#define PTB14_OUT PTB_BASE_PTR->PDORs.PDOR14
#define PTB15_OUT PTB_BASE_PTR->PDORs.PDOR15
#define PTB16_OUT PTB_BASE_PTR->PDORs.PDOR16
#define PTB17_OUT PTB_BASE_PTR->PDORs.PDOR17
#define PTB18_OUT PTB_BASE_PTR->PDORs.PDOR18
#define PTB19_OUT PTB_BASE_PTR->PDORs.PDOR19
#define PTB20_OUT PTB_BASE_PTR->PDORs.PDOR20
#define PTB21_OUT PTB_BASE_PTR->PDORs.PDOR21
#define PTB22_OUT PTB_BASE_PTR->PDORs.PDOR22
#define PTB23_OUT PTB_BASE_PTR->PDORs.PDOR23
#define PTB24_OUT PTB_BASE_PTR->PDORs.PDOR24
#define PTB25_OUT PTB_BASE_PTR->PDORs.PDOR25
#define PTB26_OUT PTB_BASE_PTR->PDORs.PDOR26
#define PTB27_OUT PTB_BASE_PTR->PDORs.PDOR27
#define PTB28_OUT PTB_BASE_PTR->PDORs.PDOR28
#define PTB29_OUT PTB_BASE_PTR->PDORs.PDOR29
#define PTB30_OUT PTB_BASE_PTR->PDORs.PDOR30
#define PTB31_OUT PTB_BASE_PTR->PDORs.PDOR31
//定义PTC的端口 ——by 野火
#define PTC0_OUT PTC_BASE_PTR->PDORs.PDOR0
#define PTC1_OUT PTC_BASE_PTR->PDORs.PDOR1
#define PTC2_OUT PTC_BASE_PTR->PDORs.PDOR2
#define PTC3_OUT PTC_BASE_PTR->PDORs.PDOR3
#define PTC4_OUT PTC_BASE_PTR->PDORs.PDOR4
#define PTC5_OUT PTC_BASE_PTR->PDORs.PDOR5
#define PTC6_OUT PTC_BASE_PTR->PDORs.PDOR6
#define PTC7_OUT PTC_BASE_PTR->PDORs.PDOR7
#define PTC8_OUT PTC_BASE_PTR->PDORs.PDOR8
#define PTC9_OUT PTC_BASE_PTR->PDORs.PDOR9
#define PTC10_OUT PTC_BASE_PTR->PDORs.PDOR10
#define PTC11_OUT PTC_BASE_PTR->PDORs.PDOR11
#define PTC12_OUT PTC_BASE_PTR->PDORs.PDOR12
#define PTC13_OUT PTC_BASE_PTR->PDORs.PDOR13
#define PTC14_OUT PTC_BASE_PTR->PDORs.PDOR14
#define PTC15_OUT PTC_BASE_PTR->PDORs.PDOR15
#define PTC16_OUT PTC_BASE_PTR->PDORs.PDOR16
#define PTC17_OUT PTC_BASE_PTR->PDORs.PDOR17
#define PTC18_OUT PTC_BASE_PTR->PDORs.PDOR18
#define PTC19_OUT PTC_BASE_PTR->PDORs.PDOR19
#define PTC20_OUT PTC_BASE_PTR->PDORs.PDOR20
#define PTC21_OUT PTC_BASE_PTR->PDORs.PDOR21
#define PTC22_OUT PTC_BASE_PTR->PDORs.PDOR22
#define PTC23_OUT PTC_BASE_PTR->PDORs.PDOR23
#define PTC24_OUT PTC_BASE_PTR->PDORs.PDOR24
#define PTC25_OUT PTC_BASE_PTR->PDORs.PDOR25
#define PTC26_OUT PTC_BASE_PTR->PDORs.PDOR26
#define PTC27_OUT PTC_BASE_PTR->PDORs.PDOR27
#define PTC28_OUT PTC_BASE_PTR->PDORs.PDOR28
#define PTC29_OUT PTC_BASE_PTR->PDORs.PDOR29
#define PTC30_OUT PTC_BASE_PTR->PDORs.PDOR30
#define PTC31_OUT PTC_BASE_PTR->PDORs.PDOR31
//定义PTD的端口 ——by 野火
#define PTD0_OUT PTD_BASE_PTR->PDORs.PDOR0
#define PTD1_OUT PTD_BASE_PTR->PDORs.PDOR1
#define PTD2_OUT PTD_BASE_PTR->PDORs.PDOR2
#define PTD3_OUT PTD_BASE_PTR->PDORs.PDOR3
#define PTD4_OUT PTD_BASE_PTR->PDORs.PDOR4
#define PTD5_OUT PTD_BASE_PTR->PDORs.PDOR5
#define PTD6_OUT PTD_BASE_PTR->PDORs.PDOR6
#define PTD7_OUT PTD_BASE_PTR->PDORs.PDOR7
#define PTD8_OUT PTD_BASE_PTR->PDORs.PDOR8
#define PTD9_OUT PTD_BASE_PTR->PDORs.PDOR9
#define PTD10_OUT PTD_BASE_PTR->PDORs.PDOR10
#define PTD11_OUT PTD_BASE_PTR->PDORs.PDOR11
#define PTD12_OUT PTD_BASE_PTR->PDORs.PDOR12
#define PTD13_OUT PTD_BASE_PTR->PDORs.PDOR13
#define PTD14_OUT PTD_BASE_PTR->PDORs.PDOR14
#define PTD15_OUT PTD_BASE_PTR->PDORs.PDOR15
#define PTD16_OUT PTD_BASE_PTR->PDORs.PDOR16
#define PTD17_OUT PTD_BASE_PTR->PDORs.PDOR17
#define PTD18_OUT PTD_BASE_PTR->PDORs.PDOR18
#define PTD19_OUT PTD_BASE_PTR->PDORs.PDOR19
#define PTD20_OUT PTD_BASE_PTR->PDORs.PDOR20
#define PTD21_OUT PTD_BASE_PTR->PDORs.PDOR21
#define PTD22_OUT PTD_BASE_PTR->PDORs.PDOR22
#define PTD23_OUT PTD_BASE_PTR->PDORs.PDOR23
#define PTD24_OUT PTD_BASE_PTR->PDORs.PDOR24
#define PTD25_OUT PTD_BASE_PTR->PDORs.PDOR25
#define PTD26_OUT PTD_BASE_PTR->PDORs.PDOR26
#define PTD27_OUT PTD_BASE_PTR->PDORs.PDOR27
#define PTD28_OUT PTD_BASE_PTR->PDORs.PDOR28
#define PTD29_OUT PTD_BASE_PTR->PDORs.PDOR29
#define PTD30_OUT PTD_BASE_PTR->PDORs.PDOR30
#define PTD31_OUT PTD_BASE_PTR->PDORs.PDOR31
//定义PTE的端口 ——by 野火
#define PTE0_OUT PTE_BASE_PTR->PDORs.PDOR0
#define PTE1_OUT PTE_BASE_PTR->PDORs.PDOR1
#define PTE2_OUT PTE_BASE_PTR->PDORs.PDOR2
#define PTE3_OUT PTE_BASE_PTR->PDORs.PDOR3
#define PTE4_OUT PTE_BASE_PTR->PDORs.PDOR4
#define PTE5_OUT PTE_BASE_PTR->PDORs.PDOR5
#define PTE6_OUT PTE_BASE_PTR->PDORs.PDOR6
#define PTE7_OUT PTE_BASE_PTR->PDORs.PDOR7
#define PTE8_OUT PTE_BASE_PTR->PDORs.PDOR8
#define PTE9_OUT PTE_BASE_PTR->PDORs.PDOR9
#define PTE10_OUT PTE_BASE_PTR->PDORs.PDOR10
#define PTE11_OUT PTE_BASE_PTR->PDORs.PDOR11
#define PTE12_OUT PTE_BASE_PTR->PDORs.PDOR12
#define PTE13_OUT PTE_BASE_PTR->PDORs.PDOR13
#define PTE14_OUT PTE_BASE_PTR->PDORs.PDOR14
#define PTE15_OUT PTE_BASE_PTR->PDORs.PDOR15
#define PTE16_OUT PTE_BASE_PTR->PDORs.PDOR16
#define PTE17_OUT PTE_BASE_PTR->PDORs.PDOR17
#define PTE18_OUT PTE_BASE_PTR->PDORs.PDOR18
#define PTE19_OUT PTE_BASE_PTR->PDORs.PDOR19
#define PTE20_OUT PTE_BASE_PTR->PDORs.PDOR20
#define PTE21_OUT PTE_BASE_PTR->PDORs.PDOR21
#define PTE22_OUT PTE_BASE_PTR->PDORs.PDOR22
#define PTE23_OUT PTE_BASE_PTR->PDORs.PDOR23
#define PTE24_OUT PTE_BASE_PTR->PDORs.PDOR24
#define PTE25_OUT PTE_BASE_PTR->PDORs.PDOR25
#define PTE26_OUT PTE_BASE_PTR->PDORs.PDOR26
#define PTE27_OUT PTE_BASE_PTR->PDORs.PDOR27
#define PTE28_OUT PTE_BASE_PTR->PDORs.PDOR28
#define PTE29_OUT PTE_BASE_PTR->PDORs.PDOR29
#define PTE30_OUT PTE_BASE_PTR->PDORs.PDOR30
#define PTE31_OUT PTE_BASE_PTR->PDORs.PDOR31
//定义PTA的输出输入方向 ——by 野火
#define DDRA0 PTA_BASE_PTR->DDRs.DDR0
#define DDRA1 PTA_BASE_PTR->DDRs.DDR1
#define DDRA2 PTA_BASE_PTR->DDRs.DDR2
#define DDRA3 PTA_BASE_PTR->DDRs.DDR3
#define DDRA4 PTA_BASE_PTR->DDRs.DDR4
#define DDRA5 PTA_BASE_PTR->DDRs.DDR5
#define DDRA6 PTA_BASE_PTR->DDRs.DDR6
#define DDRA7 PTA_BASE_PTR->DDRs.DDR7
#define DDRA8 PTA_BASE_PTR->DDRs.DDR8
#define DDRA9 PTA_BASE_PTR->DDRs.DDR9
#define DDRA10 PTA_BASE_PTR->DDRs.DDR10
#define DDRA11 PTA_BASE_PTR->DDRs.DDR11
#define DDRA12 PTA_BASE_PTR->DDRs.DDR12
#define DDRA13 PTA_BASE_PTR->DDRs.DDR13
#define DDRA14 PTA_BASE_PTR->DDRs.DDR14
#define DDRA15 PTA_BASE_PTR->DDRs.DDR15
#define DDRA16 PTA_BASE_PTR->DDRs.DDR16
#define DDRA17 PTA_BASE_PTR->DDRs.DDR17
#define DDRA18 PTA_BASE_PTR->DDRs.DDR18
#define DDRA19 PTA_BASE_PTR->DDRs.DDR19
#define DDRA20 PTA_BASE_PTR->DDRs.DDR20
#define DDRA21 PTA_BASE_PTR->DDRs.DDR21
#define DDRA22 PTA_BASE_PTR->DDRs.DDR22
#define DDRA23 PTA_BASE_PTR->DDRs.DDR23
#define DDRA24 PTA_BASE_PTR->DDRs.DDR24
#define DDRA25 PTA_BASE_PTR->DDRs.DDR25
#define DDRA26 PTA_BASE_PTR->DDRs.DDR26
#define DDRA27 PTA_BASE_PTR->DDRs.DDR27
#define DDRA28 PTA_BASE_PTR->DDRs.DDR28
#define DDRA29 PTA_BASE_PTR->DDRs.DDR29
#define DDRA30 PTA_BASE_PTR->DDRs.DDR30
#define DDRA31 PTA_BASE_PTR->DDRs.DDR31
//定义PTB的输出输入方向 ——by 野火
#define DDRB0 PTB_BASE_PTR->DDRs.DDR0
#define DDRB1 PTB_BASE_PTR->DDRs.DDR1
#define DDRB2 PTB_BASE_PTR->DDRs.DDR2
#define DDRB3 PTB_BASE_PTR->DDRs.DDR3
#define DDRB4 PTB_BASE_PTR->DDRs.DDR4
#define DDRB5 PTB_BASE_PTR->DDRs.DDR5
#define DDRB6 PTB_BASE_PTR->DDRs.DDR6
#define DDRB7 PTB_BASE_PTR->DDRs.DDR7
#define DDRB8 PTB_BASE_PTR->DDRs.DDR8
#define DDRB9 PTB_BASE_PTR->DDRs.DDR9
#define DDRB10 PTB_BASE_PTR->DDRs.DDR10
#define DDRB11 PTB_BASE_PTR->DDRs.DDR11
#define DDRB12 PTB_BASE_PTR->DDRs.DDR12
#define DDRB13 PTB_BASE_PTR->DDRs.DDR13
#define DDRB14 PTB_BASE_PTR->DDRs.DDR14
#define DDRB15 PTB_BASE_PTR->DDRs.DDR15
#define DDRB16 PTB_BASE_PTR->DDRs.DDR16
#define DDRB17 PTB_BASE_PTR->DDRs.DDR17
#define DDRB18 PTB_BASE_PTR->DDRs.DDR18
#define DDRB19 PTB_BASE_PTR->DDRs.DDR19
#define DDRB20 PTB_BASE_PTR->DDRs.DDR20
#define DDRB21 PTB_BASE_PTR->DDRs.DDR21
#define DDRB22 PTB_BASE_PTR->DDRs.DDR22
#define DDRB23 PTB_BASE_PTR->DDRs.DDR23
#define DDRB24 PTB_BASE_PTR->DDRs.DDR24
#define DDRB25 PTB_BASE_PTR->DDRs.DDR25
#define DDRB26 PTB_BASE_PTR->DDRs.DDR26
#define DDRB27 PTB_BASE_PTR->DDRs.DDR27
#define DDRB28 PTB_BASE_PTR->DDRs.DDR28
#define DDRB29 PTB_BASE_PTR->DDRs.DDR29
#define DDRB30 PTB_BASE_PTR->DDRs.DDR30
#define DDRB31 PTB_BASE_PTR->DDRs.DDR31
//定义PTC的输出输入方向 ——by 野火
#define DDRC0 PTC_BASE_PTR->DDRs.DDR0
#define DDRC1 PTC_BASE_PTR->DDRs.DDR1
#define DDRC2 PTC_BASE_PTR->DDRs.DDR2
#define DDRC3 PTC_BASE_PTR->DDRs.DDR3
#define DDRC4 PTC_BASE_PTR->DDRs.DDR4
#define DDRC5 PTC_BASE_PTR->DDRs.DDR5
#define DDRC6 PTC_BASE_PTR->DDRs.DDR6
#define DDRC7 PTC_BASE_PTR->DDRs.DDR7
#define DDRC8 PTC_BASE_PTR->DDRs.DDR8
#define DDRC9 PTC_BASE_PTR->DDRs.DDR9
#define DDRC10 PTC_BASE_PTR->DDRs.DDR10
#define DDRC11 PTC_BASE_PTR->DDRs.DDR11
#define DDRC12 PTC_BASE_PTR->DDRs.DDR12
#define DDRC13 PTC_BASE_PTR->DDRs.DDR13
#define DDRC14 PTC_BASE_PTR->DDRs.DDR14
#define DDRC15 PTC_BASE_PTR->DDRs.DDR15
#define DDRC16 PTC_BASE_PTR->DDRs.DDR16
#define DDRC17 PTC_BASE_PTR->DDRs.DDR17
#define DDRC18 PTC_BASE_PTR->DDRs.DDR18
#define DDRC19 PTC_BASE_PTR->DDRs.DDR19
#define DDRC20 PTC_BASE_PTR->DDRs.DDR20
#define DDRC21 PTC_BASE_PTR->DDRs.DDR21
#define DDRC22 PTC_BASE_PTR->DDRs.DDR22
#define DDRC23 PTC_BASE_PTR->DDRs.DDR23
#define DDRC24 PTC_BASE_PTR->DDRs.DDR24
#define DDRC25 PTC_BASE_PTR->DDRs.DDR25
#define DDRC26 PTC_BASE_PTR->DDRs.DDR26
#define DDRC27 PTC_BASE_PTR->DDRs.DDR27
#define DDRC28 PTC_BASE_PTR->DDRs.DDR28
#define DDRC29 PTC_BASE_PTR->DDRs.DDR29
#define DDRC30 PTC_BASE_PTR->DDRs.DDR30
#define DDRC31 PTC_BASE_PTR->DDRs.DDR31
//定义PTD的输出输入方向 ——by 野火
#define DDRD0 PTD_BASE_PTR->DDRs.DDR0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -