Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
portmux.h File Reference

Go to the source code of this file.

Macros

#define AT32_GPIOF_PULLUP   0x00000001 /* (not-OUT) Enable pull-up */
 
#define AT32_GPIOF_OUTPUT   0x00000002 /* (OUT) Enable output driver */
 
#define AT32_GPIOF_HIGH   0x00000004 /* (OUT) Set output high */
 
#define AT32_GPIOF_DEGLITCH   0x00000008 /* (IN) Filter glitches */
 
#define AT32_GPIOF_MULTIDRV   0x00000010 /* Enable multidriver option */
 

Functions

void at32_select_periph (unsigned int port, unsigned int pin, unsigned int periph, unsigned long flags)
 
void at32_select_gpio (unsigned int pin, unsigned long flags)
 
void at32_deselect_pin (unsigned int pin)
 
void at32_reserve_pin (unsigned int port, u32 pin_mask)
 

Macro Definition Documentation

#define AT32_GPIOF_DEGLITCH   0x00000008 /* (IN) Filter glitches */

Definition at line 21 of file portmux.h.

#define AT32_GPIOF_HIGH   0x00000004 /* (OUT) Set output high */

Definition at line 20 of file portmux.h.

#define AT32_GPIOF_MULTIDRV   0x00000010 /* Enable multidriver option */

Definition at line 22 of file portmux.h.

#define AT32_GPIOF_OUTPUT   0x00000002 /* (OUT) Enable output driver */

Definition at line 19 of file portmux.h.

#define AT32_GPIOF_PULLUP   0x00000001 /* (not-OUT) Enable pull-up */

Definition at line 18 of file portmux.h.

Function Documentation

void at32_deselect_pin ( unsigned int  pin)

Definition at line 155 of file pio.c.

void at32_reserve_pin ( unsigned int  port,
u32  pin_mask 
)

Definition at line 171 of file pio.c.

void at32_select_gpio ( unsigned int  pin,
unsigned long  flags 
)

Definition at line 103 of file pio.c.

void at32_select_periph ( unsigned int  port,
unsigned int  pin,
unsigned int  periph,
unsigned long  flags 
)

Definition at line 56 of file pio.c.