mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-08-28 17:29:31 +00:00
* New BIOS interface * New linux framebuffer version * Unified linuxfb and SDL with Teensy * Abstracted VM RAM * Fixed disk image corruption due to bad cache handling * Variable CPU speed support
26 lines
367 B
C++
26 lines
367 B
C++
#ifndef __PARALLELSRAM_H
|
|
#define __PARALLELSRAM_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
class ParallelSRAM {
|
|
public:
|
|
ParallelSRAM();
|
|
~ParallelSRAM();
|
|
|
|
void SetPins();
|
|
|
|
uint8_t read(uint32_t addr);
|
|
void write(uint32_t addr, uint8_t v);
|
|
|
|
protected:
|
|
uint8_t getInput();
|
|
void setOutput(uint8_t v);
|
|
void setAddress(uint32_t addr);
|
|
|
|
private:
|
|
bool isInput;
|
|
};
|
|
|
|
#endif
|