mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems
MIT License
12 stars 11 forks source link

Need API to get clock rate (don't use #define) #158

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

We can't use #if or #defined symbols in portable code.

The clockrate display on STM32 is an example. It needs to become a gCatena method (gCatena.getSystemClockRate() for example). Don't forget to change the sample applications to use this.