Robot Control Library
pinmux.h File Reference

Go to the source code of this file.

Macros

Configurable pins shared between Robotics Cape and BeagleBone Blue
#define DSM_HEADER_PIN   30
 P9.11, normally DSM UART4. More...
 
#define GPS_HEADER_PIN_3   2
 P9_22, normally GPS UART2 RX. More...
 
#define GPS_HEADER_PIN_4   3
 P9_21, normally GPS UART2 TX. More...
 
#define UART1_HEADER_PIN_3   14
 P9_26, normally UART1 RX. More...
 
#define UART1_HEADER_PIN_4   15
 P9_24, normally UART1 TX. More...
 
#define SPI_HEADER_PIN_3   112
 P9_30, normally SPI1 MOSI. More...
 
#define SPI_HEADER_PIN_4   111
 P9_29, normally SPI1 MISO. More...
 
#define SPI_HEADER_PIN_5   110
 P9_31, normally SPI1 SCLK. More...
 
Configurable pins for Robotics Cape only
#define CAPE_SPI_PIN_6_SS1   113
 P9_28, normally SPI mode. More...
 
#define CAPE_SPI_PIN_6_SS2   49
 P9_23, normally GPIO mode. More...
 
Configurable pins for BeagleBone Blue only
#define BLUE_SPI_PIN_6_SS1   29
 gpio 0_29 pin H18 More...
 
#define BLUE_SPI_PIN_6_SS2   7
 gpio 0_7 pin C18 More...
 
#define BLUE_GP0_PIN_3   57
 gpio 1_25 pin U16 More...
 
#define BLUE_GP0_PIN_4   49
 gpio 1_17 pin P9.23 More...
 
#define BLUE_GP0_PIN_5   116
 gpio 3_20 pin D13 More...
 
#define BLUE_GP0_PIN_6   113
 gpio 3_17 pin P9_28 More...
 
#define BLUE_GP1_PIN_3   98
 gpio 3_2 pin J15 More...
 
#define BLUE_GP1_PIN_4   97
 gpio 3_1 pin H17 More...
 

Typedefs

typedef enum rc_pinmux_mode_t rc_pinmux_mode_t
 

Enumerations

enum  rc_pinmux_mode_t {
  PINMUX_GPIO,
  PINMUX_GPIO_PU,
  PINMUX_GPIO_PD,
  PINMUX_PWM,
  PINMUX_SPI,
  PINMUX_UART,
  PINMUX_CAN
}
 

Functions

int rc_pinmux_set (int pin, rc_pinmux_mode_t mode)
 sets once of the pins defined in this header to a particular mode More...
 
int rc_pinmux_set_default (void)
 puts everything back to standard More...