mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
docs/develop: Add documentation on how to build native .mpy modules.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
.. _cmodules:
|
||||
|
||||
MicroPython external C modules
|
||||
==============================
|
||||
|
||||
@@ -17,6 +19,10 @@ more sense to keep this external to the main MicroPython repository.
|
||||
This chapter describes how to compile such external modules into the
|
||||
MicroPython executable or firmware image.
|
||||
|
||||
An alternative approach is to use :ref:`natmod` which allows writing custom C
|
||||
code that is placed in a .mpy file, which can be imported dynamically in to
|
||||
a running MicroPython system without the need to recompile the main firmware.
|
||||
|
||||
|
||||
Structure of an external C module
|
||||
---------------------------------
|
||||
|
||||
Reference in New Issue
Block a user