Add section on mem8,16,32

Paul Sokolovsky 2015-11-26 19:40:57 +02:00
parent 579b55172a
commit a4dec49e0f
1 changed files with 4 additions and 0 deletions

@ -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.