isetpin.c

This commit is contained in:
7u83 2024-05-04 20:00:58 +02:00
parent 9f086db4a9
commit 3c0c81df2e

11
setpin.c Normal file
View File

@ -0,0 +1,11 @@
#include "mctools.h"
void setpin(uint8_t port, uint8_t pin, uint8_t val)
{
if (val)
setpin_hi(port,pin);
else
setpin_lo(port,pin);
}