packages/hal/arm/arch/v2_0/src/vectors.S
hal_hardware_init
==> hal_if_init
==*> cyg_hal_plf_comms_init
==**> cyg_hal_plf_serial_init
==***> cyg_hal_plf_serial_init_channel
==****> baud = BAUD_RATE(CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD);
这里CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD就是定义的波特率了
/vobs/ep9312/2.0_redboot/install/include/pkgconf/hal_arm_arm9_ep93xx.h
#define CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD 57600
改为115200即可.
#define CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD 115200
或者直接修改
luther@gliethttp:/vobs/ecos/ecos-2.0$ vim packages/hal/arm/arm9/ep93xx/v2_0/cdl/hal_arm_arm9_ep93xx.cdl
CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD
default_value 115200
阅读(1827) | 评论(0) | 转发(0) |