3 ms·
As an example, most if not all STM32's have CRC32 hardware as well, so by pulling it out one can use such a hardware implementation.
by magicalhippo 5y ago
As an example, most if not all STM32's have CRC32 hardware as well, so by pulling it out one can use such a hardware implementation.
- NonEUCitizen 5y agoThey could've put an ifdef/#ifndef around it and not have an extra file.
- SteveMoody73 5y agoYou could do that but if you want to support a lot of different microcontrollers which may all have different implementations, separating the code into a different file makes more sense. Even if you add ifdef statements for every supported controller in there and the file becomes a mess of conditional code, you still have a clean implementation of the file system.