This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: How do I add a serial driver?
Andrew Lunn wrote:
So you need to look at your configuration and work out why your serial
driver package is not active.
eg the top of the AT91 driver has:
cdl_package CYGPKG_IO_SERIAL_ARM_AT91 {
display "Atmel AT91 serial device drivers"
parent CYGPKG_IO_SERIAL_DEVICES
active_if CYGPKG_IO_SERIAL
active_if CYGPKG_HAL_ARM_AT91
cdl_package CYGPKG_IO_SERIAL_ARM_CARTESIO {
display "Cartesio serial device drivers"
parent CYGPKG_IO_SERIAL_DEVICES
active_if CYGPKG_IO_SERIAL
active_if CYGPKG_HAL_ARM_CARTESIO
requires CYGPKG_ERROR
include_dir cyg/io
include_files ; # none _exported_ whatsoever
description "
This option enables the serial device drivers for the
Cartesio."
compile -library=libextras.a cartesio_serial.c
define_proc {
puts $::cdl_system_header "/***** serial driver proc output
start *****/"
puts $::cdl_system_header "#define
CYGDAT_IO_SERIAL_DEVICE_HEADER <pkgconf/io_serial_arm_cartesio.h>"
puts $::cdl_system_header "/***** serial driver proc output
end *****/"
}
We know you have CYGPKG_IO_SERIAL_DEVICES enabled. Does your
configuration have CYGPKG_IO_SERIAL enabled?
Not sure how to tell. It doesn't say one way or the other in configtool.
Does your package still
require CYGPKG_HAL_ARM_AT91 which is not true for your hardware? Have
you made a typo in the name of the replacement?
Don't think so. I've looked it over pretty carefully.
Look at your ecos.ecc file. You can learn a lot from that.
Don't have an ecos.ecc. Do you mean ecos.db?
Andrew
Thanks,
Paul