From 07cce2f4e910bba661c4d60542a2333cae9cbfda Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 19 May 2017 21:29:39 +0100 Subject: cleanup --- reg/gpio.h | 90 +++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 60 insertions(+), 30 deletions(-) (limited to 'reg/gpio.h') diff --git a/reg/gpio.h b/reg/gpio.h index d4c8574..76d84c5 100644 --- a/reg/gpio.h +++ b/reg/gpio.h @@ -3,39 +3,69 @@ #include -#define GPIOA_PDOR REG_32(0x400FF000) /* Port Data Output Register */ -#define GPIOA_PSOR REG_32(0x400FF004) /* Port Set Output Register */ -#define GPIOA_PCOR REG_32(0x400FF008) /* Port Clear Output Register */ -#define GPIOA_PTOR REG_32(0x400FF00C) /* Port Toggle Output Register */ -#define GPIOA_PDIR REG_32(0x400FF010) /* Port Data Input Register */ -#define GPIOA_PDDR REG_32(0x400FF014) /* Port Data Direction Register */ +// Port Data Output Register +#define GPIOA_PDOR REG_32(0x400FF000) +// Port Set Output Register +#define GPIOA_PSOR REG_32(0x400FF004) +// Port Clear Output Register +#define GPIOA_PCOR REG_32(0x400FF008) +// Port Toggle Output Register +#define GPIOA_PTOR REG_32(0x400FF00C) +// Port Data Input Register +#define GPIOA_PDIR REG_32(0x400FF010) +// Port Data Direction Register +#define GPIOA_PDDR REG_32(0x400FF014) -#define GPIOB_PDOR REG_32(0x400FF040) /* Port Data Output Register */ -#define GPIOB_PSOR REG_32(0x400FF044) /* Port Set Output Register */ -#define GPIOB_PCOR REG_32(0x400FF048) /* Port Clear Output Register */ -#define GPIOB_PTOR REG_32(0x400FF04C) /* Port Toggle Output Register */ -#define GPIOB_PDIR REG_32(0x400FF050) /* Port Data Input Register */ -#define GPIOB_PDDR REG_32(0x400FF054) /* Port Data Direction Register */ +// Port Data Output Register +#define GPIOB_PDOR REG_32(0x400FF040) +// Port Set Output Register +#define GPIOB_PSOR REG_32(0x400FF044) +// Port Clear Output Register +#define GPIOB_PCOR REG_32(0x400FF048) +// Port Toggle Output Register +#define GPIOB_PTOR REG_32(0x400FF04C) +// Port Data Input Register +#define GPIOB_PDIR REG_32(0x400FF050) +// Port Data Direction Register +#define GPIOB_PDDR REG_32(0x400FF054) -#define GPIOC_PDOR REG_32(0x400FF080) /* Port Data Output Register */ -#define GPIOC_PSOR REG_32(0x400FF084) /* Port Set Output Register */ -#define GPIOC_PCOR REG_32(0x400FF088) /* Port Clear Output Register */ -#define GPIOC_PTOR REG_32(0x400FF08C) /* Port Toggle Output Register */ -#define GPIOC_PDIR REG_32(0x400FF090) /* Port Data Input Register */ -#define GPIOC_PDDR REG_32(0x400FF094) /* Port Data Direction Register */ +// Port Data Output Register +#define GPIOC_PDOR REG_32(0x400FF080) +// Port Set Output Register +#define GPIOC_PSOR REG_32(0x400FF084) +// Port Clear Output Register +#define GPIOC_PCOR REG_32(0x400FF088) +// Port Toggle Output Register +#define GPIOC_PTOR REG_32(0x400FF08C) +// Port Data Input Register +#define GPIOC_PDIR REG_32(0x400FF090) +// Port Data Direction Register +#define GPIOC_PDDR REG_32(0x400FF094) -#define GPIOD_PDOR REG_32(0x400FF0C0) /* Port Data Output Register */ -#define GPIOD_PSOR REG_32(0x400FF0C4) /* Port Set Output Register */ -#define GPIOD_PCOR REG_32(0x400FF0C8) /* Port Clear Output Register */ -#define GPIOD_PTOR REG_32(0x400FF0CC) /* Port Toggle Output Register */ -#define GPIOD_PDIR REG_32(0x400FF0D0) /* Port Data Input Register */ -#define GPIOD_PDDR REG_32(0x400FF0D4) /* Port Data Direction Register */ +// Port Data Output Register +#define GPIOD_PDOR REG_32(0x400FF0C0) +// Port Set Output Register +#define GPIOD_PSOR REG_32(0x400FF0C4) +// Port Clear Output Register +#define GPIOD_PCOR REG_32(0x400FF0C8) +// Port Toggle Output Register +#define GPIOD_PTOR REG_32(0x400FF0CC) +// Port Data Input Register +#define GPIOD_PDIR REG_32(0x400FF0D0) +// Port Data Direction Register +#define GPIOD_PDDR REG_32(0x400FF0D4) -#define GPIOE_PDOR REG_32(0x400FF100) /* Port Data Output Register */ -#define GPIOE_PSOR REG_32(0x400FF104) /* Port Set Output Register */ -#define GPIOE_PCOR REG_32(0x400FF108) /* Port Clear Output Register */ -#define GPIOE_PTOR REG_32(0x400FF10C) /* Port Toggle Output Register */ -#define GPIOE_PDIR REG_32(0x400FF110) /* Port Data Input Register */ -#define GPIOE_PDDR REG_32(0x400FF114) /* Port Data Direction Register */ +// Port Data Output Register +#define GPIOE_PDOR REG_32(0x400FF100) +// Port Set Output Register +#define GPIOE_PSOR REG_32(0x400FF104) +// Port Clear Output Register +#define GPIOE_PCOR REG_32(0x400FF108) +// Port Toggle Output Register +#define GPIOE_PTOR REG_32(0x400FF10C) +// Port Data Input Register +#define GPIOE_PDIR REG_32(0x400FF110) +// Port Data Direction Register +#define GPIOE_PDDR REG_32(0x400FF114) #endif /* MK20DX256_REG_GPIO_H */ -- cgit v1.2.3-54-g00ecf