mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-19 19:16:38 +00:00
Start big refactor of device/CPU pin usage (to allow pin events throughout).
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
+5
-3
@@ -1,10 +1,12 @@
|
||||
#include "stdafx.h"
|
||||
#include "Device.h"
|
||||
|
||||
void EightBit::Device::powerOn() {
|
||||
void EightBit::Device::raisePOWER() {
|
||||
raise(POWER());
|
||||
RaisedPOWER.fire(EventArgs::empty());
|
||||
}
|
||||
|
||||
void EightBit::Device::match(PinLevel& line, int value) {
|
||||
value ? raise(line) : lower(line);
|
||||
void EightBit::Device::lowerPOWER() {
|
||||
lower(POWER());
|
||||
LoweredPOWER.fire(EventArgs::empty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user