#include <gpio/portmux_gpio.h>


Go to the source code of this file.
Defines | |
| #define | PORTMUX_USART_RX (1 << 0) |
| Enable USART RX pin. | |
| #define | PORTMUX_USART_TX (1 << 1) |
| Enable USART TX pin. | |
| #define | PORTMUX_TWI_ALERT (1 << 0) |
| Enable SMBus Alert. | |
| #define | PORTMUX_USBB_ID (1 << 0) |
| Enable USBB ID pin. | |
| #define | PORTMUX_USBB_VBOF (1 << 1) |
| Enable USBB VBOF pin. | |
Functions | |
| static unsigned int | portmux_gpio_version (void) |
| Return the version of the GPIO module on this chip. | |
| static void | portmux_enable_usart (unsigned int id, unsigned long flags, unsigned long drive_strength) |
| Configure the portmux to enable a given USART. | |
| static void | portmux_enable_usbb (unsigned long flags) |
| Configure the portmux to enable the USBB controller. | |
| static void | portmux_enable_spi (unsigned int id, unsigned long drive_strength) |
| Configure the portmux to enable a given SPI controller. | |
Definition in file portmux.h.
| #define PORTMUX_USBB_ID (1 << 0) |
| #define PORTMUX_USBB_VBOF (1 << 1) |
Enable USBB VBOF pin.
Definition at line 162 of file portmux.h.
Referenced by portmux_enable_usbb().
| static void portmux_enable_spi | ( | unsigned int | id, | |
| unsigned long | drive_strength | |||
| ) | [inline, static] |
Configure the portmux to enable a given SPI controller.
| id | The ID of the SPI controller to be configured. | |
| drive_strength | The required drive strength of the SPI pins. |
Definition at line 283 of file portmux.h.
References is_constant.
| static void portmux_enable_usart | ( | unsigned int | id, | |
| unsigned long | flags, | |||
| unsigned long | drive_strength | |||
| ) | [inline, static] |
Configure the portmux to enable a given USART.
| id | The USART ID to configure. | |
| flags | Flags indicating which pins to set up:
| |
| drive_strength | The required drive strength of the USART pins. |
Definition at line 125 of file portmux.h.
References is_constant.
| static void portmux_enable_usbb | ( | unsigned long | flags | ) | [inline, static] |
Configure the portmux to enable the USBB controller.
| flags | Flags indicating which USBB pins to set up. |
Definition at line 171 of file portmux.h.
References portmux_select_peripheral(), PORTMUX_USBB_ID, and PORTMUX_USBB_VBOF.

| static unsigned int portmux_gpio_version | ( | void | ) | [inline, static] |
Return the version of the GPIO module on this chip.
Definition at line 55 of file portmux.h.
References PORTMUX_GPIO_VER.
Referenced by portmux_select_gpio(), and portmux_select_peripheral().
1.5.8