mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
Add section on mem8,16,32
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user