Reduce unused function warnings

This commit is contained in:
Scott Lahteine
2019-08-06 04:46:30 -05:00
parent 1fe195926f
commit fb579212ea
11 changed files with 71 additions and 34 deletions

View File

@ -114,9 +114,12 @@ void HAL_init(void);
inline void HAL_clear_reset_source(void) { MCUSR = 0; }
inline uint8_t HAL_get_reset_source(void) { return MCUSR; }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
extern "C" {
int freeMemory(void);
}
#pragma GCC diagnostic pop
// timers
#define HAL_TIMER_RATE ((F_CPU) / 8) // i.e., 2MHz or 2.5MHz