From a4dec49e0f9aed0676b23d1b4a06ea678aed42ac Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 26 Nov 2015 19:40:57 +0200 Subject: [PATCH] Add section on mem8,16,32 --- Hardware-API.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Hardware-API.md b/Hardware-API.md index 33799a0..bf3b41f 100644 --- a/Hardware-API.md +++ b/Hardware-API.md @@ -82,6 +82,10 @@ dir(machine) one can easily see what's supported on the board. +## Physical memory access + +Provided by `mem8` (NOHEAP), `mem16` (NOHEAP), `mem32` (HEAP) virtual arrays. Mind that only `mem8` and `mem16` guarantee no heap access. For systems with virtual memory, these functions access hardware-defined physical address space (which includes memory-mapped I/O devices, etc.), not virtual memory map of a current process. + ## IRQs An interrupt request (IRQ) is an asynchronous and pre-emptive action triggered by a peripheral. Peripherals that support interrupts provide the `irq` method which returns an irq object. This can be used to execute a function when an IRQ is triggered, or wake up the device, or both.