1. 首先打开工程CC3200SDK_1.1.0exampleadcewarm,以ADC例程为例,修改串口引脚复用,先看下引脚图
2. 修改引脚复用代码
void PinMuxConfig(void)
{
MAP_PRCMPeripheralClkEnable(PRCM_UARTA1,PRCM_RUN_MODE_CLK);
MAP_PinTypeUART(PIN_58, PIN_MODE_6);
MAP_PinTypeUART(PIN_59, PIN_MODE_6);
}
3. 修改串口配置
void InitTerm()
{
MAP_UARTConfigSetExpClk(UARTA1_BASE,MAP_PRCMPeripheralClockGet(PRCM_UARTA1),
UART_BAUD_RATE, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
}
4. 修改打印函数
void Message(const char *str)
{
#ifndef NOTERM
if(str != NULL)
{
while(*str!='