M471M/R1/S BSP V3.01.000
The Board Support Package for M4521
Modules | Macros
GPIO Exported Constants
Collaboration diagram for GPIO Exported Constants:

Modules

 GPIO Exported Functions
 

Macros

#define GPIO_PIN_MAX   16
 
#define GPIO_MODE_INPUT   0x0UL
 
#define GPIO_MODE_OUTPUT   0x1UL
 
#define GPIO_MODE_OPEN_DRAIN   0x2UL
 
#define GPIO_MODE_QUASI   0x3UL
 
#define GPIO_INT_RISING   0x00010000UL
 
#define GPIO_INT_FALLING   0x00000001UL
 
#define GPIO_INT_BOTH_EDGE   0x00010001UL
 
#define GPIO_INT_HIGH   0x01010000UL
 
#define GPIO_INT_LOW   0x01000001UL
 
#define GPIO_INTTYPE_EDGE   0UL
 
#define GPIO_INTTYPE_LEVEL   1UL
 
#define GPIO_DBCTL_ICLK_ON   0x00000020UL
 
#define GPIO_DBCTL_ICLK_OFF   0x00000000UL
 
#define GPIO_DBCTL_DBCLKSRC_LIRC   0x00000010UL
 
#define GPIO_DBCTL_DBCLKSRC_HCLK   0x00000000UL
 
#define GPIO_DBCTL_DBCLKSEL_1   0x00000000UL
 
#define GPIO_DBCTL_DBCLKSEL_2   0x00000001UL
 
#define GPIO_DBCTL_DBCLKSEL_4   0x00000002UL
 
#define GPIO_DBCTL_DBCLKSEL_8   0x00000003UL
 
#define GPIO_DBCTL_DBCLKSEL_16   0x00000004UL
 
#define GPIO_DBCTL_DBCLKSEL_32   0x00000005UL
 
#define GPIO_DBCTL_DBCLKSEL_64   0x00000006UL
 
#define GPIO_DBCTL_DBCLKSEL_128   0x00000007UL
 
#define GPIO_DBCTL_DBCLKSEL_256   0x00000008UL
 
#define GPIO_DBCTL_DBCLKSEL_512   0x00000009UL
 
#define GPIO_DBCTL_DBCLKSEL_1024   0x0000000AUL
 
#define GPIO_DBCTL_DBCLKSEL_2048   0x0000000BUL
 
#define GPIO_DBCTL_DBCLKSEL_4096   0x0000000CUL
 
#define GPIO_DBCTL_DBCLKSEL_8192   0x0000000DUL
 
#define GPIO_DBCTL_DBCLKSEL_16384   0x0000000EUL
 
#define GPIO_DBCTL_DBCLKSEL_32768   0x0000000FUL
 
#define GPIO_PIN_DATA(port, pin)   (*((volatile uint32_t *)((GPIO_PIN_DATA_BASE+(0x40*(port))) + ((pin)<<2))))
 
#define PA0   GPIO_PIN_DATA(0, 0 )
 
#define PA1   GPIO_PIN_DATA(0, 1 )
 
#define PA2   GPIO_PIN_DATA(0, 2 )
 
#define PA3   GPIO_PIN_DATA(0, 3 )
 
#define PB0   GPIO_PIN_DATA(1, 0 )
 
#define PB1   GPIO_PIN_DATA(1, 1 )
 
#define PB2   GPIO_PIN_DATA(1, 2 )
 
#define PB3   GPIO_PIN_DATA(1, 3 )
 
#define PB4   GPIO_PIN_DATA(1, 4 )
 
#define PB5   GPIO_PIN_DATA(1, 5 )
 
#define PB6   GPIO_PIN_DATA(1, 6 )
 
#define PB7   GPIO_PIN_DATA(1, 7 )
 
#define PB8   GPIO_PIN_DATA(1, 8 )
 
#define PB11   GPIO_PIN_DATA(1, 11)
 
#define PB12   GPIO_PIN_DATA(1, 12)
 
#define PB15   GPIO_PIN_DATA(1, 15)
 
#define PC0   GPIO_PIN_DATA(2, 0 )
 
#define PC1   GPIO_PIN_DATA(2, 1 )
 
#define PC2   GPIO_PIN_DATA(2, 2 )
 
#define PC3   GPIO_PIN_DATA(2, 3 )
 
#define PC4   GPIO_PIN_DATA(2, 4 )
 
#define PC5   GPIO_PIN_DATA(2, 5 )
 
#define PC6   GPIO_PIN_DATA(2, 6 )
 
#define PC7   GPIO_PIN_DATA(2, 7 )
 
#define PD0   GPIO_PIN_DATA(3, 0 )
 
#define PD1   GPIO_PIN_DATA(3, 1 )
 
#define PD2   GPIO_PIN_DATA(3, 2 )
 
#define PD3   GPIO_PIN_DATA(3, 3 )
 
#define PD7   GPIO_PIN_DATA(3, 7 )
 
#define PD8   GPIO_PIN_DATA(3, 8 )
 
#define PD9   GPIO_PIN_DATA(3, 9 )
 
#define PD12   GPIO_PIN_DATA(3, 12)
 
#define PD13   GPIO_PIN_DATA(3, 13)
 
#define PD14   GPIO_PIN_DATA(3, 14)
 
#define PD15   GPIO_PIN_DATA(3, 15)
 
#define PE0   GPIO_PIN_DATA(4, 0 )
 
#define PE8   GPIO_PIN_DATA(4, 8 )
 
#define PE9   GPIO_PIN_DATA(4, 9 )
 
#define PE10   GPIO_PIN_DATA(4, 10)
 
#define PE11   GPIO_PIN_DATA(4, 11)
 
#define PE12   GPIO_PIN_DATA(4, 12)
 
#define PE13   GPIO_PIN_DATA(4, 13)
 
#define PF0   GPIO_PIN_DATA(5, 0 )
 
#define PF1   GPIO_PIN_DATA(5, 1 )
 
#define PF2   GPIO_PIN_DATA(5, 2 )
 
#define PF3   GPIO_PIN_DATA(5, 3 )
 
#define PF4   GPIO_PIN_DATA(5, 4 )
 
#define PF5   GPIO_PIN_DATA(5, 5 )
 
#define PF6   GPIO_PIN_DATA(5, 6 )
 
#define PF7   GPIO_PIN_DATA(5, 7 )
 

Detailed Description

Macro Definition Documentation

◆ GPIO_DBCTL_DBCLKSEL_1

#define GPIO_DBCTL_DBCLKSEL_1   0x00000000UL

GPIO_DBCTL setting for sampling cycle = 1 clocks

Definition at line 68 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_1024

#define GPIO_DBCTL_DBCLKSEL_1024   0x0000000AUL

GPIO_DBCTL setting for sampling cycle = 1024 clocks

Definition at line 78 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_128

#define GPIO_DBCTL_DBCLKSEL_128   0x00000007UL

GPIO_DBCTL setting for sampling cycle = 128 clocks

Definition at line 75 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_16

#define GPIO_DBCTL_DBCLKSEL_16   0x00000004UL

GPIO_DBCTL setting for sampling cycle = 16 clocks

Definition at line 72 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_16384

#define GPIO_DBCTL_DBCLKSEL_16384   0x0000000EUL

GPIO_DBCTL setting for sampling cycle = 16384 clocks

Definition at line 82 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_2

#define GPIO_DBCTL_DBCLKSEL_2   0x00000001UL

GPIO_DBCTL setting for sampling cycle = 2 clocks

Definition at line 69 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_2048

#define GPIO_DBCTL_DBCLKSEL_2048   0x0000000BUL

GPIO_DBCTL setting for sampling cycle = 2048 clocks

Definition at line 79 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_256

#define GPIO_DBCTL_DBCLKSEL_256   0x00000008UL

GPIO_DBCTL setting for sampling cycle = 256 clocks

Definition at line 76 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_32

#define GPIO_DBCTL_DBCLKSEL_32   0x00000005UL

GPIO_DBCTL setting for sampling cycle = 32 clocks

Definition at line 73 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_32768

#define GPIO_DBCTL_DBCLKSEL_32768   0x0000000FUL

GPIO_DBCTL setting for sampling cycle = 32768 clocks

Definition at line 83 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_4

#define GPIO_DBCTL_DBCLKSEL_4   0x00000002UL

GPIO_DBCTL setting for sampling cycle = 4 clocks

Definition at line 70 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_4096

#define GPIO_DBCTL_DBCLKSEL_4096   0x0000000CUL

GPIO_DBCTL setting for sampling cycle = 4096 clocks

Definition at line 80 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_512

#define GPIO_DBCTL_DBCLKSEL_512   0x00000009UL

GPIO_DBCTL setting for sampling cycle = 512 clocks

Definition at line 77 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_64

#define GPIO_DBCTL_DBCLKSEL_64   0x00000006UL

GPIO_DBCTL setting for sampling cycle = 64 clocks

Definition at line 74 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_8

#define GPIO_DBCTL_DBCLKSEL_8   0x00000003UL

GPIO_DBCTL setting for sampling cycle = 8 clocks

Definition at line 71 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSEL_8192

#define GPIO_DBCTL_DBCLKSEL_8192   0x0000000DUL

GPIO_DBCTL setting for sampling cycle = 8192 clocks

Definition at line 81 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSRC_HCLK

#define GPIO_DBCTL_DBCLKSRC_HCLK   0x00000000UL

GPIO_DBCTL setting for de-bounce counter clock source is the HCLK

Definition at line 66 of file gpio.h.

◆ GPIO_DBCTL_DBCLKSRC_LIRC

#define GPIO_DBCTL_DBCLKSRC_LIRC   0x00000010UL

GPIO_DBCTL setting for de-bounce counter clock source is the internal 10 kHz

Definition at line 65 of file gpio.h.

◆ GPIO_DBCTL_ICLK_OFF

#define GPIO_DBCTL_ICLK_OFF   0x00000000UL

GPIO_DBCTL setting for edge detection circuit is active only if IO pin corresponding GPIOx_IEN bit is set to 1

Definition at line 63 of file gpio.h.

◆ GPIO_DBCTL_ICLK_ON

#define GPIO_DBCTL_ICLK_ON   0x00000020UL

GPIO_DBCTL setting for all IO pins edge detection circuit is always active after reset

Definition at line 62 of file gpio.h.

◆ GPIO_INT_BOTH_EDGE

#define GPIO_INT_BOTH_EDGE   0x00010001UL

Interrupt enable by both Rising Edge and Falling Edge

Definition at line 47 of file gpio.h.

◆ GPIO_INT_FALLING

#define GPIO_INT_FALLING   0x00000001UL

Interrupt enable by Input Falling Edge

Definition at line 46 of file gpio.h.

◆ GPIO_INT_HIGH

#define GPIO_INT_HIGH   0x01010000UL

Interrupt enable by Level-High

Definition at line 48 of file gpio.h.

◆ GPIO_INT_LOW

#define GPIO_INT_LOW   0x01000001UL

Interrupt enable by Level-Level

Definition at line 49 of file gpio.h.

◆ GPIO_INT_RISING

#define GPIO_INT_RISING   0x00010000UL

Interrupt enable by Input Rising Edge

Definition at line 45 of file gpio.h.

◆ GPIO_INTTYPE_EDGE

#define GPIO_INTTYPE_EDGE   0UL

GPIO_INTTYPE Setting for Edge Trigger Mode

Definition at line 55 of file gpio.h.

◆ GPIO_INTTYPE_LEVEL

#define GPIO_INTTYPE_LEVEL   1UL

GPIO_INTTYPE Setting for Edge Level Mode

Definition at line 56 of file gpio.h.

◆ GPIO_MODE_INPUT

#define GPIO_MODE_INPUT   0x0UL

Input Mode

Definition at line 36 of file gpio.h.

◆ GPIO_MODE_OPEN_DRAIN

#define GPIO_MODE_OPEN_DRAIN   0x2UL

Open-Drain Mode

Definition at line 38 of file gpio.h.

◆ GPIO_MODE_OUTPUT

#define GPIO_MODE_OUTPUT   0x1UL

Output Mode

Definition at line 37 of file gpio.h.

◆ GPIO_MODE_QUASI

#define GPIO_MODE_QUASI   0x3UL

Quasi-bidirectional Mode

Definition at line 39 of file gpio.h.

◆ GPIO_PIN_DATA

#define GPIO_PIN_DATA (   port,
  pin 
)    (*((volatile uint32_t *)((GPIO_PIN_DATA_BASE+(0x40*(port))) + ((pin)<<2))))

Definition at line 100 of file gpio.h.

◆ GPIO_PIN_MAX

#define GPIO_PIN_MAX   16

Specify Maximum Pins of Each GPIO Port

Definition at line 30 of file gpio.h.

◆ PA0

#define PA0   GPIO_PIN_DATA(0, 0 )

Specify PA.0 Pin Data Input/Output

Definition at line 101 of file gpio.h.

◆ PA1

#define PA1   GPIO_PIN_DATA(0, 1 )

Specify PA.1 Pin Data Input/Output

Definition at line 102 of file gpio.h.

◆ PA2

#define PA2   GPIO_PIN_DATA(0, 2 )

Specify PA.2 Pin Data Input/Output

Definition at line 103 of file gpio.h.

◆ PA3

#define PA3   GPIO_PIN_DATA(0, 3 )

Specify PA.3 Pin Data Input/Output

Definition at line 104 of file gpio.h.

◆ PB0

#define PB0   GPIO_PIN_DATA(1, 0 )

Specify PB.0 Pin Data Input/Output

Definition at line 105 of file gpio.h.

◆ PB1

#define PB1   GPIO_PIN_DATA(1, 1 )

Specify PB.1 Pin Data Input/Output

Definition at line 106 of file gpio.h.

◆ PB11

#define PB11   GPIO_PIN_DATA(1, 11)

Specify PB.11 Pin Data Input/Output

Definition at line 114 of file gpio.h.

◆ PB12

#define PB12   GPIO_PIN_DATA(1, 12)

Specify PB.12 Pin Data Input/Output

Definition at line 115 of file gpio.h.

◆ PB15

#define PB15   GPIO_PIN_DATA(1, 15)

Specify PB.15 Pin Data Input/Output

Definition at line 116 of file gpio.h.

◆ PB2

#define PB2   GPIO_PIN_DATA(1, 2 )

Specify PB.2 Pin Data Input/Output

Definition at line 107 of file gpio.h.

◆ PB3

#define PB3   GPIO_PIN_DATA(1, 3 )

Specify PB.3 Pin Data Input/Output

Definition at line 108 of file gpio.h.

◆ PB4

#define PB4   GPIO_PIN_DATA(1, 4 )

Specify PB.4 Pin Data Input/Output

Definition at line 109 of file gpio.h.

◆ PB5

#define PB5   GPIO_PIN_DATA(1, 5 )

Specify PB.5 Pin Data Input/Output

Definition at line 110 of file gpio.h.

◆ PB6

#define PB6   GPIO_PIN_DATA(1, 6 )

Specify PB.6 Pin Data Input/Output

Definition at line 111 of file gpio.h.

◆ PB7

#define PB7   GPIO_PIN_DATA(1, 7 )

Specify PB.7 Pin Data Input/Output

Definition at line 112 of file gpio.h.

◆ PB8

#define PB8   GPIO_PIN_DATA(1, 8 )

Specify PB.8 Pin Data Input/Output

Definition at line 113 of file gpio.h.

◆ PC0

#define PC0   GPIO_PIN_DATA(2, 0 )

Specify PC.0 Pin Data Input/Output

Definition at line 117 of file gpio.h.

◆ PC1

#define PC1   GPIO_PIN_DATA(2, 1 )

Specify PC.1 Pin Data Input/Output

Definition at line 118 of file gpio.h.

◆ PC2

#define PC2   GPIO_PIN_DATA(2, 2 )

Specify PC.2 Pin Data Input/Output

Definition at line 119 of file gpio.h.

◆ PC3

#define PC3   GPIO_PIN_DATA(2, 3 )

Specify PC.3 Pin Data Input/Output

Definition at line 120 of file gpio.h.

◆ PC4

#define PC4   GPIO_PIN_DATA(2, 4 )

Specify PC.4 Pin Data Input/Output

Definition at line 121 of file gpio.h.

◆ PC5

#define PC5   GPIO_PIN_DATA(2, 5 )

Specify PC.5 Pin Data Input/Output

Definition at line 122 of file gpio.h.

◆ PC6

#define PC6   GPIO_PIN_DATA(2, 6 )

Specify PC.6 Pin Data Input/Output

Definition at line 123 of file gpio.h.

◆ PC7

#define PC7   GPIO_PIN_DATA(2, 7 )

Specify PC.7 Pin Data Input/Output

Definition at line 124 of file gpio.h.

◆ PD0

#define PD0   GPIO_PIN_DATA(3, 0 )

Specify PD.0 Pin Data Input/Output

Definition at line 125 of file gpio.h.

◆ PD1

#define PD1   GPIO_PIN_DATA(3, 1 )

Specify PD.1 Pin Data Input/Output

Definition at line 126 of file gpio.h.

◆ PD12

#define PD12   GPIO_PIN_DATA(3, 12)

Specify PD.12 Pin Data Input/Output

Definition at line 132 of file gpio.h.

◆ PD13

#define PD13   GPIO_PIN_DATA(3, 13)

Specify PD.13 Pin Data Input/Output

Definition at line 133 of file gpio.h.

◆ PD14

#define PD14   GPIO_PIN_DATA(3, 14)

Specify PD.14 Pin Data Input/Output

Definition at line 134 of file gpio.h.

◆ PD15

#define PD15   GPIO_PIN_DATA(3, 15)

Specify PD.15 Pin Data Input/Output

Definition at line 135 of file gpio.h.

◆ PD2

#define PD2   GPIO_PIN_DATA(3, 2 )

Specify PD.2 Pin Data Input/Output

Definition at line 127 of file gpio.h.

◆ PD3

#define PD3   GPIO_PIN_DATA(3, 3 )

Specify PD.3 Pin Data Input/Output

Definition at line 128 of file gpio.h.

◆ PD7

#define PD7   GPIO_PIN_DATA(3, 7 )

Specify PD.7 Pin Data Input/Output

Definition at line 129 of file gpio.h.

◆ PD8

#define PD8   GPIO_PIN_DATA(3, 8 )

Specify PD.8 Pin Data Input/Output

Definition at line 130 of file gpio.h.

◆ PD9

#define PD9   GPIO_PIN_DATA(3, 9 )

Specify PD.9 Pin Data Input/Output

Definition at line 131 of file gpio.h.

◆ PE0

#define PE0   GPIO_PIN_DATA(4, 0 )

Specify PE.0 Pin Data Input/Output

Definition at line 136 of file gpio.h.

◆ PE10

#define PE10   GPIO_PIN_DATA(4, 10)

Specify PE.10 Pin Data Input/Output

Definition at line 139 of file gpio.h.

◆ PE11

#define PE11   GPIO_PIN_DATA(4, 11)

Specify PE.11 Pin Data Input/Output

Definition at line 140 of file gpio.h.

◆ PE12

#define PE12   GPIO_PIN_DATA(4, 12)

Specify PE.12 Pin Data Input/Output

Definition at line 141 of file gpio.h.

◆ PE13

#define PE13   GPIO_PIN_DATA(4, 13)

Specify PE.13 Pin Data Input/Output

Definition at line 142 of file gpio.h.

◆ PE8

#define PE8   GPIO_PIN_DATA(4, 8 )

Specify PE.8 Pin Data Input/Output

Definition at line 137 of file gpio.h.

◆ PE9

#define PE9   GPIO_PIN_DATA(4, 9 )

Specify PE.9 Pin Data Input/Output

Definition at line 138 of file gpio.h.

◆ PF0

#define PF0   GPIO_PIN_DATA(5, 0 )

Specify PF.0 Pin Data Input/Output

Definition at line 143 of file gpio.h.

◆ PF1

#define PF1   GPIO_PIN_DATA(5, 1 )

Specify PF.1 Pin Data Input/Output

Definition at line 144 of file gpio.h.

◆ PF2

#define PF2   GPIO_PIN_DATA(5, 2 )

Specify PF.2 Pin Data Input/Output

Definition at line 145 of file gpio.h.

◆ PF3

#define PF3   GPIO_PIN_DATA(5, 3 )

Specify PF.3 Pin Data Input/Output

Definition at line 146 of file gpio.h.

◆ PF4

#define PF4   GPIO_PIN_DATA(5, 4 )

Specify PF.4 Pin Data Input/Output

Definition at line 147 of file gpio.h.

◆ PF5

#define PF5   GPIO_PIN_DATA(5, 5 )

Specify PF.5 Pin Data Input/Output

Definition at line 148 of file gpio.h.

◆ PF6

#define PF6   GPIO_PIN_DATA(5, 6 )

Specify PF.6 Pin Data Input/Output

Definition at line 149 of file gpio.h.

◆ PF7

#define PF7   GPIO_PIN_DATA(5, 7 )

Specify PF.7 Pin Data Input/Output

Definition at line 150 of file gpio.h.