2 ms·
They could've put an ifdef/#ifndef around it and not have an extra file.
by NonEUCitizen 5y ago
They 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.