This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000761] eCos support for MPC5xxx MCUs


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000761

--- Comment #54 from Ilija Kocho <ilijak@siva.com.mk> 2012-08-08 08:51:55 BST ---
Hello Stefan

(In reply to comment #49)
> Created an attachment (id=1869)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1869) [details]
> device drivers for MPC5xxx family

Recently I was asked to convert MPC5xxx FlecCAN driver to a generic one  (ref.
Comment #39). I spent some time on that and submitted a collection of patches
(ref. Comment #42).
What remains is to join and test it with MPC5xxx HAL (and adding eventual
changes being made to original MPC5xxx code in meantime).
Integration of generic FlexCAN driver with MPC5xxx HAL should be easy, it's
only necessary to provide device base address and interrupt number and
priorities to the driver. This is typically done by means of var_io.h (or
plf_io.h if they are platform specific). In order to isolate these device
related data in a separate file you can create a file var_io_devs.h which shall
be included in var_io.h. Then in var_io_devs.h you can put all similar
definitions for other devices as well: Ethernet, SPI, serial, etc. You can look
Kinetis var_io_devs.h for example.

- Ethernet driver (devs/eth/freescale/enet) is already prepared as generic so
it should be relatively easy to join it with MPC5xxx HAL. Here we wouldn't need
additional driver packages like for FlexCAN because interrupt organization is
same.

- ESCI: Here you have 2 parts HAL (diagnostic) and devs (interrupt driven). The
interrupt driven is designed as generic, similar to Ethernet.

- In addition you may also consider the DSPI driver /devs/spi/freescale/dspi
(that will also need eDMA library hal/misc/freescale/edma).

Ilija

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]