pez-globo / pufferfish-software

All software for the Pufferfish ventilator.
Apache License 2.0
0 stars 1 forks source link

Reorganize firmware's HAL file namespace scheme and file & class names #308

Closed ethanjli closed 3 years ago

ethanjli commented 3 years ago

Our firmware follows a convention that the folder path for each file should match its namespace structure. For example, the classes in Pufferfish/Driver/BreathingCircuit/Alarms.h are all in the Pufferfish::Driver::BreathingCircuit namespace. However, the files in Pufferfish/HAL predate this convention. They should all be updated to follow this convention, and class names should be updated to remove redundant words. For example, with the files related to AnalogInput:

Finally, we should delete the Pufferfish/HAL/HAL.h file, as half of it is redundant with Pufferfish/HAL/STM32/HAL.h, and the remaining includes (which are #includes of interface files) should all be specified individually in any dependent files on an as-needed basis.

@rohanpurohit Since this is purely a renaming task and it'll give exposure to all of the HAL classes, this could be a good first task for Raavi to do together with you (I'm not sure Raavi has accepted the invitation I sent her to our Github team, she needs to do it from her email before we can assign her issues; once she does, can you add her as an assignee?), as a "hello world" of making some changes, building and testing in STM32Cube IDE, and using our Github Actions infrastructure.