diff --git a/src/pins.c b/src/pins.c index 69cae33..aac042a 100644 --- a/src/pins.c +++ b/src/pins.c @@ -1,23 +1,24 @@ #include +#include #include "pins.h" void setPin(volatile uint8_t *port, unsigned int pin) { *port |= (1 << pin); - printf("Port %d, Pin %d set\n\r", port, pin); + printf("Port %d, Pin %d set\n\r", (int)port, pin); } void unsetPin(volatile uint8_t *port, unsigned int pin) { *port &= ~(1 << pin); - printf("Port %d, Pin %d unset\n\r", port, pin); + printf("Port %d, Pin %d unset\n\r", (int)port, pin); } void togglePin(volatile uint8_t *port, unsigned int pin) { *port ^= (1 << pin); - printf("Port %d, Pin %d toggled to ", port, pin); + printf("Port %d, Pin %d toggled to ", (int)port, pin); if ((*port & (1 << pin)) > 0) printf("on");