Skip navigation.
Home
The QNX Community Portal

View topic - Change pin multiplexing in a given BSP

Change pin multiplexing in a given BSP

For discussion of realtime and/or embedded programming.

Change pin multiplexing in a given BSP

Postby Ericxx » Wed Dec 22, 2010 4:42 am

Hello everyone,

I am now using gumstix overo fire(omap3530) as the development target. The 6.5.0 BSP package source has been successfully built and loaded into target. Given the data sheet of overo fire, the TX pin of UART3 is shared with the console port. As such, the UART3 is working only as a receiver while TX does not work.

I have checked the /startup/boards/omap3530/init_pinmux.c, only has UART2 settings though. Alternatively, what should i change for UART2 to make it work as a normal UART instead of Bluetooth(current default setting)?

Code: Select all
/* Bit definitions for the PADCONF registers */
#define MUXMODE0_MODE0  (0)
#define MUXMODE0_MODE1  (1)
#define MUXMODE0_MODE2  (2)
#define MUXMODE0_MODE3  (3)
#define MUXMODE0_MODE4  (4)
#define MUXMODE0_MODE7  (7)                /* Safe Mode */
#define MUXMODE1_MODE0  (MUXMODE0_MODE0<<16)
#define MUXMODE1_MODE1  (MUXMODE0_MODE1<<16)
#define MUXMODE1_MODE2  (MUXMODE0_MODE2<<16)
#define MUXMODE1_MODE3  (MUXMODE0_MODE3<<16)
#define MUXMODE1_MODE4  (MUXMODE0_MODE4<<16)
#define MUXMODE1_MODE7  (MUXMODE0_MODE7<<16)    /* Safe Mode */
#define PULLUDENABLE0   (1<<3)
#define PULLTYPE0_UP    (1<<4)
#define INPUTENABLE0    (1<<8)
#define PULLUDENABLE1   (1<<19)
#define PULLTYPE1_UP    (1<<20)
#define INPUTENABLE1    (1<<24)
#define CONTROL_PADCONF_UART2_CTS_RTS   0x48002174   /* MODE0 = UART2,  MODE1 = MCBSP3_DX_DR    */
#define CONTROL_PADCONF_UART2_TX_RX      0x48002178   /* MODE0 = UART2,  MODE1 = MCBSP3_CLKX_FSX    */

   /** Setup UART2 Pins to SAFE Mode **/
   /***********************************/
   out32(CONTROL_PADCONF_UART2_CTS_RTS, MUXMODE1_MODE7 | MUXMODE0_MODE7);
   out32(CONTROL_PADCONF_UART2_TX_RX, MUXMODE1_MODE7 | MUXMODE0_MODE7);

   /** Setup MCBSP3 Pins for UART2 (BT Control) **/
   /**********************************************/
   out32(CONTROL_PADCONF_MCBSP3_DX_DR, MUXMODE1_MODE1 | INPUTENABLE0 | PULLTYPE0_UP | PULLUDENABLE0 | MUXMODE0_MODE1);
   out32(CONTROL_PADCONF_MCBSP3_CLKX_FSX, INPUTENABLE1 | PULLUDENABLE1 | MUXMODE1_MODE1 | MUXMODE0_MODE1);


Thank you,
Eric
Ericxx
Senior Member
 
Posts: 158
Joined: Mon Jun 09, 2008 1:38 pm

Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 1 guest