Skip to content
Snippets Groups Projects
Select Git revision
  • 9a38b7afe0058620c09cf54b0bbc1c20f32a5e22
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

machine.rst

Blame
  • machine.rst 5.33 KiB

    :mod:`machine` --- functions related to the hardware

    The machine module contains specific functions related to the hardware on a particular board. Most functions in this module allow to achieve direct and unrestricted access to and control of hardware blocks on a system (like CPU, timers, buses, etc.). Used incorrectly, this can lead to malfunction, lockups, crashes of your board, and in extreme cases, hardware damage.

    A note of callbacks used by functions and class methods of machine module: all these callbacks should be considered as executing in an interrupt context. This is true for both physical devices with IDs >= 0 and "virtual" devices with negative IDs like -1 (these "virtual" devices are still thin shims on top of real hardware and real hardware intrerrupts). See :ref:`isr_rules`.

    Reset related functions

    Interrupt related functions

    Power related functions

    Miscellaneous functions

    Constants

    Classes