Where should parts go?
joel.sherrill at OARcorp.com
Wed Mar 12 13:31:05 UTC 2003
Ralf Corsepius wrote:
> Am Mit, 2003-03-12 um 04.47 schrieb David Dudley:
> > This Atmel AVR chip has subsystems on the chip (parallel, serial, timer,
> > network, ...)
> > Should the drivers for the subsystems be in libbsp, or libchip?
> Well, it depends ...
> libchip is supposed to take drivers which are independent of a cpu, eg.
> drivers for external cards or similar.
> libbsp would be appropriate for drivers whose HW is specific to a BSP,
> eg. for proprietary HW of a BSP.
> For On-CPU drivers I'd recommend libcpu/<cpu>/<cpu-variant> (cf. the
> Hitachi SH).
Ralf is 100% correct here. The goal is to place code logically where
it can be reused across the most BSPs.
More information about the users