TI OMAP3530/AM3715 WINCE 6.0平台调试口修改
TI OMAP3530/Am3715 WINCE6.0 平台原始的调试口是UART3,由于生产需要,要改为UART1,步骤如下:
1、修改调试口定义:在EVM_OMAP3530\SRC\BSP_COMMON\BSPCFG\bspcfg.c 里修改debugUartCfg定义,由OMAP_DEVICE_UART3改为OMAP_DEVICE_UART1;
static const DEBUG_UART_CFG debugUartCfg={
OMAP_DEVICE_UART1, //zsz_UPDATE @ 2014.07.11
// OMAP_DEVICE_UART3,
BSP_UART_LCR,
BSP_UART_DSIUDLL,
BSP_UART_DSIUDLH
} ;
2、在eboot增加UART1的PAD初始化:在EVM_OMAP3530\SRC\bootloader\eboot\main.c 里修改ebootPinMux_37XX,增加UART1_PADS:
static const PAD_INFO ebootPinMux_37XX[] = {
DSS_PADS
UART1_PADS //add UART1_PADS for enabling serial debugger output UART change to UART1
GPIO_PADS_37XX_MLO
USBOTG_PADS
END_OF_PAD_ARRAY
};
3、在OAL增加UART1的PAD初始化:在EVM_OMAP3530\SRC\oal\oallib\init.c 里修改OEMInit函数,将
ConfigurePadArray(BSPGetDevicePadInfo(OMAP_DEVICE_UART3));
改为:
ConfigurePadArray(BSPGetDevicePadInfo(OMAP_DEVICE_UART1));
TI OMAP3530/AM3715 WINCE 6.0 平台调试口修改,布布扣,bubuko.com
TI OMAP3530/AM3715 WINCE 6.0 平台调试口修改
原文:http://www.cnblogs.com/Shangzhi/p/3845144.html