Reduce unused function warnings
This commit is contained in:
@ -95,24 +95,27 @@ typedef int8_t pin_t;
|
||||
|
||||
inline void HAL_init(void) { }
|
||||
|
||||
/** clear reset reason */
|
||||
// Clear reset reason
|
||||
void HAL_clear_reset_source(void);
|
||||
|
||||
/** reset reason */
|
||||
// Reset reason
|
||||
uint8_t HAL_get_reset_source(void);
|
||||
|
||||
FORCE_INLINE void _delay_ms(const int delay_ms) { delay(delay_ms); }
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
extern "C" {
|
||||
int freeMemory(void);
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
// SPI: Extended functions which take a channel number (hardware SPI only)
|
||||
/** Write single byte to specified SPI channel */
|
||||
// Write single byte to specified SPI channel
|
||||
void spiSend(uint32_t chan, byte b);
|
||||
/** Write buffer to specified SPI channel */
|
||||
// Write buffer to specified SPI channel
|
||||
void spiSend(uint32_t chan, const uint8_t* buf, size_t n);
|
||||
/** Read single byte from specified SPI channel */
|
||||
// Read single byte from specified SPI channel
|
||||
uint8_t spiRec(uint32_t chan);
|
||||
|
||||
// ADC
|
||||
|
Reference in New Issue
Block a user