adding HardwarePWM support

This commit is contained in:
hathach committed 2017-03-24 15:57:47 +07:00
1 parent a3afb48e7f
commit 953c55b218
9 files changed
+343 -3

No files matched your search

+5
View File
@@ -122,6 +122,11 @@ static const uint8_t SCK = PIN_SPI_SCK ;
*/
extern uint32_t bootloaderVersion;
static inline bool isPinValid(uint32_t pin)
{
return (pin < PINS_COUNT) && (pin != PIN_SERIAL_RX) && (pin != PIN_SERIAL_TX);
}
#ifdef __cplusplus
}
#endif