grbl-LPC-CoreXY/grbl-lpc/avr/io.h

15 lines
332 B
C
Raw Permalink Normal View History

2017-01-04 19:43:06 +01:00
#pragma once
#include <stdint.h>
struct DummyReg {
operator uint8_t() {return 0;}
uint8_t operator=(uint8_t x) {return x;}
uint8_t operator&=(uint8_t x) {return *this = *this & x;}
uint8_t operator|=(uint8_t x) {return *this = *this | x;}
};
2017-01-17 20:46:12 +01:00
extern DummyReg NotUsed;
extern DummyReg PCICR;
extern DummyReg PCIE1;
2017-01-04 19:43:06 +01:00