increase digitalWrite() value parameter width to 16 bit

- this useful for the 16 bit parallel TFT lib
This commit is contained in:
stevstrong 2017-05-14 16:31:11 +02:00
parent fbd6927d56
commit b8afde026a
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ static inline afio_exti_port gpio_exti_port(const gpio_dev *dev) {
* @param pin Pin on to set or reset
* @param val If true, set the pin. If false, reset the pin.
*/
static inline void gpio_write_pin(uint8_t pin, uint8 val) {
static inline void gpio_write_pin(uint8_t pin, uint16 val) {
if (val) {
(PIN_MAP[pin].gpio_device)->regs->BSRRL = BIT(pin&0x0F);
} else {

View File

@ -94,7 +94,7 @@ uint32 digitalRead(uint8 pin)
HIGH : LOW;
}
void digitalWrite(uint8 pin, uint8 val)
void digitalWrite(uint8 pin, uint16 val)
{
if (pin >= BOARD_NR_GPIO_PINS) {
return;