32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/*UVOS*/
|
|
|
|
/* This file is part of UsbLedController.
|
|
*
|
|
* TelemetrySystem is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License (LGPL) version 3 as published by
|
|
* the Free Software Foundation.
|
|
*
|
|
* TelemetrySystem is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with TelemetrySystem. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef WRITEPIN_H
|
|
#define WRITEPIN_H
|
|
#include <avr/io.h>
|
|
#include <stdbool.h>
|
|
|
|
void writePin(volatile unsigned char * const port, const unsigned char pin, const bool state);
|
|
|
|
void setBit( volatile unsigned char * const reg, const unsigned char bit, const bool value );
|
|
|
|
void setDirection( volatile unsigned char * const portDirReg, const unsigned char pin, const bool makeOutput );
|
|
|
|
bool readPin( volatile const unsigned char * const inPort, const unsigned char pin);
|
|
|
|
#endif
|