Skip to content
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
@0xc0170

Description

@0xc0170

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:

  1. Scalability - support for MCU families
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions