mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Add Arduino host sample.
Tested on Arduino Uno (ATMega328P)
Sketch uses 9950 bytes (30%) of program storage space. Maximum is 32256 bytes.
Global variables use 1254 bytes (61%) of dynamic memory, leaving 794 bytes for local variables. Maximum is 2048 bytes.
This commit is contained in:
parent
047c9e3853
commit
6d12ce5a80
8 changed files with 968 additions and 0 deletions
10
emulator-arduino/common/uvm32_common_custom.h
Normal file
10
emulator-arduino/common/uvm32_common_custom.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Definitions needed by both host and target
|
||||
|
||||
// CSRs for exposed host functions
|
||||
#define IOREQ_PRINT 0x13A
|
||||
#define IOREQ_PRINTLN 0x13B
|
||||
#define IOREQ_PRINTD 0x13C
|
||||
#define IOREQ_PRINTX 0x13D
|
||||
#define IOREQ_MILLIS 0x13F
|
||||
#define IOREQ_PRINTC 0x140
|
||||
|
||||
5
emulator-arduino/common/uvm32_sys.h
Normal file
5
emulator-arduino/common/uvm32_sys.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// System provided IOREQs
|
||||
#define IOREQ_HALT 0x138
|
||||
#define IOREQ_YIELD 0x139
|
||||
|
||||
#include "uvm32_common_custom.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue