26 lines
254 B
C++
Executable file
26 lines
254 B
C++
Executable file
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <hw+/registers.h>
|
|
|
|
class Port
|
|
{
|
|
public:
|
|
Port(uint16_t pin,uint16_t ddr,uint16_t port);
|
|
|
|
uint8_t DDR();
|
|
void DDR(uint8_t value);
|
|
|
|
|
|
|
|
public:
|
|
volatile BYTE *pin,
|
|
*ddr,
|
|
*port;
|
|
|
|
};
|
|
|
|
|
|
|