mbed LPC1114 emulator pre-alpha version

Dependencies:   BaseV6M mbed F12RFileSystem F32RFileSystem ROMSLOT SDStorage

Fork of emu812 by Norimasa Okamoto

480
TOYOSHIKI TINY BASIC mbed Edition TTB_mbed_LPC1114.bin save as "LPC1114.IMG" .

Committer:
va009039
Date:
Mon Aug 10 22:52:48 2015 +0900
Revision:
1:913dfd59e25a
add files.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 1:913dfd59e25a 1 // EMUInterface.h 2015/8/3
va009039 1:913dfd59e25a 2 #pragma once
va009039 1:913dfd59e25a 3 #include "mbed.h"
va009039 1:913dfd59e25a 4
va009039 1:913dfd59e25a 5 class EMUInterface {
va009039 1:913dfd59e25a 6 protected:
va009039 1:913dfd59e25a 7 virtual void SerialPutc_Callback(int ch, uint8_t c) {}
va009039 1:913dfd59e25a 8 virtual int SerialGetc_Callback(int ch) { return -1; }
va009039 1:913dfd59e25a 9 virtual int SerialReadable_Callback(int ch) { return 0; }
va009039 1:913dfd59e25a 10 virtual void DigitalWrite_Callback(int port, int pin, int value) {}
va009039 1:913dfd59e25a 11 virtual int DigitalRead_Callback(int port, int pin) { return 0; }
va009039 1:913dfd59e25a 12 virtual int I2CWrite_Callback(uint8_t addr, const uint8_t* data, int size) { return 0; }
va009039 1:913dfd59e25a 13 virtual int I2CRead_Callback(uint8_t addr, uint8_t* data, int size) { return 0; }
va009039 1:913dfd59e25a 14 virtual int SPIWrite_Callback(int ch, int value) { return 0; }
va009039 1:913dfd59e25a 15 };
va009039 1:913dfd59e25a 16
va009039 1:913dfd59e25a 17