This repository was archived by the owner on Jul 6, 2019. It is now read-only.
This repository was archived by the owner on Jul 6, 2019. It is now read-only.
hal: scalability of targets, peripheral code reuse #213
Closed
Description
How is it with scalability and peripheral code reuse? Has there been any discussion (or any design document) this two topics?
Why am I asking:
- Scalability - support for MCU families
- Peripheral implementation reuse - different MCUs but contain the same peripheral. Like in mbed there's KLXX target https://github.com/mbedmicro/mbed/tree/master/libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KLXX (most of peripherals are identical, besides spi and uart).
I have the board FRDM-K20D50M (the only one with K20 chip, but there's K20DX128) which I would like to use and possibly add a support to zinc.
The current folder is named K20, some files are target specific (as noted in the layout probably for MK20DX32) like isr.rs and layout.ld. The peripheral code could be reused - watchdog, uart and others (eventhough I see definitions of how many uarts peripherals is available there which would need to change).
Regards,
0xc0170
Metadata
Metadata
Assignees
Labels
No labels