Advice on filesystem organisation
Posted: Thu Oct 05, 2017 11:14 am
I am working to bring up a board with a variety of components, LORA, UWB, IMU etc.. so I am writing drivers and would like to follow the existing structure for doing so.
I understand the architecture, I'd say most of my components will be complex drivers making use of existing peripheral drivers and then some abstraction for them as they may be replaced.
I am trying to relate the architectural figures to the files themselves: Complex Drivers, Device Drivers, Low Level Drivers
Looking at the directories I see:
os/ex/ -- has some devices from particular vendors
/hal/lib/peripherals -- some common devices, I'm thinking this is the top abstraction layer?
/various/devices_lib -- appears to be low level interface to specific device models?
I could just put all my own work in a folder of it's on but the would just make for spaghetti in linking.
Any advice would be appreciated as the hierarchy isn't really self evident to me in the folder structure.
Alex
I understand the architecture, I'd say most of my components will be complex drivers making use of existing peripheral drivers and then some abstraction for them as they may be replaced.
I am trying to relate the architectural figures to the files themselves: Complex Drivers, Device Drivers, Low Level Drivers
Looking at the directories I see:
os/ex/ -- has some devices from particular vendors
/hal/lib/peripherals -- some common devices, I'm thinking this is the top abstraction layer?
/various/devices_lib -- appears to be low level interface to specific device models?
I could just put all my own work in a folder of it's on but the would just make for spaghetti in linking.
Any advice would be appreciated as the hierarchy isn't really self evident to me in the folder structure.
Alex