Hello all, I have a few questions on using multiple peripherals that have IO in the same port. In this case, I am using PE3/AIN0 as an ADC input, and PE4/PE5 as CAN0RX/TX. My problem is CAN is intially working well, but when I perform a measurement with the ADC, CAN will stop working. The ADC code is in a separate function, and the ADC is configured and enabled well after the CAN is receiving messages.
1. When you use CAN0 and ADC0 pins in GPIO_E, do you need to set up SysCtlPeripheralEnable, GPIOPinConfigure, and GPIOPinType for CAN0 and ADC0 at the same time? Or can you set up GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_3) at a later time, immediately before SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0) is invoked, and well after CAN0 is fully enabled and working?
2. Is there a GPIOPinConfigure definition for the ADC input pins, or is the ADC pin configure assumed when GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_3) is invoked? I looked in pin_map.h, and couldn't find one (maybe I missed it though).
Thanks for all your help!