mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Starts working on the GPIP functionality block.
This commit is contained in:
parent
34075a7674
commit
3d03cce6b1
@ -15,6 +15,16 @@
|
||||
namespace Motorola {
|
||||
namespace MFP68901 {
|
||||
|
||||
class PortHandler {
|
||||
public:
|
||||
/*!
|
||||
Requests the current input on the GPIP port.
|
||||
*/
|
||||
virtual uint8_t get_port_input() {
|
||||
return 0xff;
|
||||
}
|
||||
};
|
||||
|
||||
class MFP68901 {
|
||||
public:
|
||||
uint8_t read(int address);
|
||||
@ -25,6 +35,10 @@ class MFP68901 {
|
||||
|
||||
void set_timer_event_input(int channel, bool value);
|
||||
|
||||
void set_port_handler(PortHandler *);
|
||||
void set_port_input(uint8_t);
|
||||
uint8_t get_port_output();
|
||||
|
||||
private:
|
||||
// MARK: - Timers
|
||||
enum class TimerMode {
|
||||
|
Loading…
Reference in New Issue
Block a user