Surround all macro parameters with ()

Followup from c72f3d588a
This commit is contained in:
Karl Palsson
2015-10-15 01:03:18 +00:00
parent 8f06818f03
commit 2e25d678ba
10 changed files with 65 additions and 65 deletions

View File

@@ -299,8 +299,8 @@ void gpio_set_output_config(uint32_t gpioport, enum gpio_output_type otype,
}
}
#define PCTL_AF(pin, af) (af << (pin << 2))
#define PCTL_MASK(pin) PCTL_AF(pin, 0xf)
#define PCTL_AF(pin, af) ((af) << ((pin) << 2))
#define PCTL_MASK(pin) PCTL_AF((pin), 0xf)
/**
* \brief Multiplex group of pins to the given alternate function
*