Remove printfs.
This commit is contained in:
parent
76e89af042
commit
aaf8a9d501
10
src/pins.c
10
src/pins.c
@ -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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user