summaryrefslogtreecommitdiff
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-12-13 16:11:20 -0800
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-18 22:01:03 +0200
commit755b01439bab486d3ccb3c6eddccd10aae045f23 (patch)
tree61b867c8369f8c49f523c4d9866a9814e83c64b4 /unix/mpconfigport.h
parentacaccb37ecae4e29c1e3e6fcd67c4b59bf39dfbd (diff)
unix: machine_mem improvements
This basically introduces the MICROPY_MACHINE_MEM_GET_READ_ADDR and MICROPY_MACHINE_MEM_GET_WRITE_ADDR macros. If one of them is not defined, then a default identity function is provided.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index e2016317d..a20f1c509 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -108,6 +108,8 @@
#define MICROPY_PY_USELECT (1)
#endif
#define MICROPY_PY_MACHINE (1)
+#define MICROPY_MACHINE_MEM_GET_READ_ADDR mod_machine_mem_get_addr
+#define MICROPY_MACHINE_MEM_GET_WRITE_ADDR mod_machine_mem_get_addr
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
// names in exception messages (may require more RAM).