mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
cpu/nrf51: fix NDEBUG compile problem
This commit is contained in:
parent
bc071044d7
commit
b2356d29c5
@ -121,6 +121,10 @@ uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res)
|
||||
|
||||
void pwm_set(pwm_t dev, uint8_t channel, uint16_t value)
|
||||
{
|
||||
#ifdef NDEBUG
|
||||
(void)dev;
|
||||
(void)channel;
|
||||
#endif
|
||||
assert((dev == 0) && (channel == 0));
|
||||
|
||||
/*
|
||||
@ -192,6 +196,9 @@ void pwm_set(pwm_t dev, uint8_t channel, uint16_t value)
|
||||
|
||||
uint8_t pwm_channels(pwm_t dev)
|
||||
{
|
||||
#ifdef NDEBUG
|
||||
(void)dev;
|
||||
#endif
|
||||
assert(dev == 0);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user