mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
cpu/samd21: skip pwm if not defined in board config
This commit is contained in:
parent
6404bb75cf
commit
6be74db22b
@ -30,6 +30,8 @@
|
||||
#include "periph/gpio.h"
|
||||
#include "periph/pwm.h"
|
||||
|
||||
/* guard file in case no PWM device was specified */
|
||||
#ifdef PWM_NUMOF
|
||||
|
||||
static inline int _num(pwm_t dev)
|
||||
{
|
||||
@ -187,3 +189,5 @@ void pwm_poweroff(pwm_t dev)
|
||||
GCLK_CLKCTRL_ID(_clk_id(dev)));
|
||||
while (GCLK->STATUS.bit.SYNCBUSY) {}
|
||||
}
|
||||
|
||||
#endif /* PWM_NUMOF */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user