physical-computation / Warp-firmware

Firmware for the Cambridge Physical Computation Laboratory's Warp Embedded Multi-Sensor Platform.
http://physcomp.eng.cam.ac.uk
BSD 3-Clause "New" or "Revised" License
5 stars 198 forks source link

Addition of byteUtilities.c to remove duplication of code in dev* sensor .c files #92

Closed JamesTimothyMeech closed 3 years ago

JamesTimothyMeech commented 4 years ago

In the dev sensor .c files there are a number of bit shift code segments that are repeated multiple times in a given sensor driver. Some code segments are duplicated in multiple dev sensor .c files. The byteUtilities.c consolidates these code segments into functions to remove the duplication of code seen in the dev* sensor .c files

phillipstanleymarbell commented 3 years ago

Closing as the foundation has changed significantly and this will need to be reworked.