suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

Add target/architecture/platform feature. #138

Closed suikan4github closed 2 years ago

suikan4github commented 3 years ago

Is your feature request related to a problem? Please describe. At this moment, the Murasaki is dependent on the STM32 Cube HAL. On the other hand, testing at Linux-X86 is definitely essential for the development.

To support it, we need to introduce the target/architecture/platform feature.

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

suikan4github commented 3 years ago

Consideration.

Currently, the target is stm32-hal. And the current target is generic-Linux.

We have to name them carefully. The name is directly connected with the directory structure. Thus, this issue is directly structure modification.

The change of the directory structure causes :

suikan4github commented 3 years ago

The current structure is :

murasaki
  inc
    Thirdparty
  src
    Thirdparty

One of the ideas is :

murasaki
  inc
    stm32
      Thirdparty
    generic-linux
      Thirdparty-test
  src
    stm32
      Thirdparty
    generic-linux
      Thirdparty-test

In this case, the include path of the STM32 Cube IDE project property is :

suikan4github commented 3 years ago

Other ideas is :

murasaki
  inc
    Thirdparty
    stm32
    generic-linux
      Thirdparty-test
  src
    Thirdparty
    stm32
    generic-linux
      Thirdparty-test

In this case, the include path of the STM32 Cube IDE project property is :

Third party includes are done by murasaki.hpp automatically.

suikan4github commented 2 years ago

This is too much. We will not implement.