Remove printfs.

This commit is contained in:
Marco 2022-05-27 02:17:22 +02:00
parent 76e89af042
commit aaf8a9d501

View File

@ -6,24 +6,14 @@
void setPin(volatile uint8_t *port, unsigned int pin)
{
*port |= (1 << 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", (int)port, pin);
}
void togglePin(volatile uint8_t *port, unsigned int pin)
{
*port ^= (1 << pin);
printf("Port %d, Pin %d toggled to ", (int)port, pin);
if ((*port & (1 << pin)) > 0)
printf("on");
else
printf("off");
printf("\n\r");
}