Hi all:
        
        I am a newbin of eocs,some days ago, I went to porting ecos for
lpc2468.yes, i use the ea2468 demo
tmplates,I have change the default drvier for my board.And now I have
resolved the most problems.
But I have a problems about serial.
        I find that serila diver for ea2468 have benn implemnted,UART0 and
UART1.The ser_arm_lpc24xx.cdl file contian 4 serial devier.
        frist of all ,i change the gpio to enable UART0~4 pins in the funtions
hal_gpio_init
        second, all implment CYGINT_IO_SERIAL_LPC24XX_UART0~4 in
hal_arm_lpc24xx_ea2468.cdl.(If, i do not do this ,there is only UART0 and
UART1 are supported)
now i compile the code ,and run the below code for serial.The result is :
only UART0 ouput the test_string.
UART1~3 nothing ouput.
        I  tested the DEVTAB,/dev/ser0  /dev/ser1 /dev/ser2 /dev/ser3 is 
implment.
        I can not find out what the problems? who can  tell me the way to fix 
this
?
        Tanks for you help~!!!

for (;;){
    err = cyg_io_lookup( "/dev/ser0", &handle );
        if (err == 0)
         err = cyg_io_write( handle, test_string, &len );
        }
    err = cyg_io_lookup( "/dev/ser1", &handle1 );
        if (err == 0){
                err = cyg_io_write( handle1, test_string, &len )
        }
 err = cyg_io_lookup( "/dev/ser2", &handle1 );
        if (err == 0){
                err = cyg_io_write( handle1, test_string, &len );
        }
    err = cyg_io_lookup( "/dev/ser3", &handle1 );
        if (err == 0){
                err = cyg_io_write( handle1, test_string, &len );
        }

-- 
View this message in context: 
http://www.nabble.com/The-serial-problem-of-lpc24xx-tp25183593p25183593.html
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to