# GPIO Multiplexing

**URL:** <https://forums.digi.com/t/gpio-multiplexing/5271>\
**Category:** NET+OS\
**Created:** [February 22, 2009, 7:27pm UTC](https://forums.digi.com/t/gpio-multiplexing/5271 "2009-02-22T19:27:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonpdesai](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@simonpdesai](https://forums.digi.com/u/simonpdesai)\
**Post date:** [February 22, 2009, 7:27pm UTC](https://forums.digi.com/t/gpio-multiplexing/5271/1 "2009-02-22T19:27:17Z")

</div>

I am having trouble figuring out how gpio.h maps to the GPIO pins in the hardware references documentation. There is no documentation that I have found that shows how gpio.h primary path, alternate paths, etc., maps to the modes described in the hardware reference.

I keep getting conflicts using gpio.h. For example, I am trying to use timer9 as an extended function PWM output, and use the quadrature decoder. However I get the following error message:

Compiling ./devices/ns9xxx/ns9215/gpio/gpio.c  
./devices/ns9xxx/ns9215/gpio/gpio.c:1152:6: error: #error GPIO pin 13 has been configured for more than one function.  
./devices/ns9xxx/ns9215/gpio/gpio.c:1153:6: error: #error (BSP\_GPIO\_MUX\_QDC == BSP\_GPIO\_MUX\_USE\_PRIMARY\_PATH) and (BSP\_GPIO\_MUX\_TIMER\_9\_OUTPUT == BSP\_GPIO\_MUX\_USE\_PRIMARY\_PATH) cannot both be true in gpio.h.  
./devices/ns9xxx/ns9215/gpio/gpio.c:1168:1: warning: “PIN\_13\_CONFIG” redefined

But pin 13 is not used for timer 9.  
#define BSP\_GPIO\_MUX\_TIMER\_9\_OUTPUT BSP\_GPIO\_MUX\_USE\_PRIMARY\_PATH

#define BSP\_GPIO\_MUX\_QDC BSP\_GPIO\_MUX\_USE\_PRIMARY\_PATH

I thought that GPIO pins 94 and 95 would be the primary quadrature pins, and timer9 would be on GPIO pin 93.

I am using the ConnectCore Wi-9P 9215 with NetOS 7.4.

Thanks,  
–Simon Desai

DRIVE Robotics Inc.  
100 Aurora Ln,  
Los Gatos, California, 95032  
+1 408-859-4500
