@@ -34,24 +34,24 @@ Major components in this repository:
34
34
core library.
35
35
- mpy-cross/ -- the MicroPython cross-compiler which is used to turn scripts
36
36
into precompiled bytecode.
37
- - unix/ -- a version of MicroPython that runs on Unix.
38
- - stmhal / -- a version of MicroPython that runs on the PyBoard and similar
37
+ - ports/ unix/ -- a version of MicroPython that runs on Unix.
38
+ - ports/stm32 / -- a version of MicroPython that runs on the PyBoard and similar
39
39
STM32 boards (using ST's Cube HAL drivers).
40
- - minimal/ -- a minimal MicroPython port. Start with this if you want
40
+ - ports/ minimal/ -- a minimal MicroPython port. Start with this if you want
41
41
to port MicroPython to another microcontroller.
42
42
- tests/ -- test framework and test scripts.
43
43
- docs/ -- user documentation in Sphinx reStructuredText format. Rendered
44
44
HTML documentation is available at http://docs.micropython.org (be sure
45
45
to select needed board/port at the bottom left corner).
46
46
47
47
Additional components:
48
- - bare-arm/ -- a bare minimum version of MicroPython for ARM MCUs. Used
48
+ - ports/ bare-arm/ -- a bare minimum version of MicroPython for ARM MCUs. Used
49
49
mostly to control code size.
50
- - teensy/ -- a version of MicroPython that runs on the Teensy 3.1
50
+ - ports/ teensy/ -- a version of MicroPython that runs on the Teensy 3.1
51
51
(preliminary but functional).
52
- - pic16bit/ -- a version of MicroPython for 16-bit PIC microcontrollers.
53
- - cc3200/ -- a version of MicroPython that runs on the CC3200 from TI.
54
- - esp8266/ -- an experimental port for ESP8266 WiFi modules.
52
+ - ports/ pic16bit/ -- a version of MicroPython for 16-bit PIC microcontrollers.
53
+ - ports/ cc3200/ -- a version of MicroPython that runs on the CC3200 from TI.
54
+ - ports/ esp8266/ -- an experimental port for ESP8266 WiFi modules.
55
55
- extmod/ -- additional (non-core) modules implemented in C.
56
56
- tools/ -- various tools, including the pyboard.py module.
57
57
- examples/ -- a few example Python scripts.
@@ -72,7 +72,7 @@ Alternatively, fallback implementation based on setjmp/longjmp can be used.
72
72
73
73
To build (see section below for required dependencies):
74
74
75
- $ cd unix
75
+ $ cd ports/ unix
76
76
$ make axtls
77
77
$ make
78
78
@@ -115,33 +115,33 @@ these additional dependencies, first fetch git submodules for them:
115
115
$ git submodule update --init
116
116
117
117
Use this same command to get the latest versions of dependencies, as
118
- they are updated from time to time. After that, in ` unix/ ` dir, execute:
118
+ they are updated from time to time. After that, in ` ports/ unix/` dir, execute:
119
119
120
120
$ make deplibs
121
121
122
122
This will build all available dependencies (regardless whether they
123
123
are used or not). If you intend to build MicroPython with additional
124
124
options (like cross-compiling), the same set of options should be passed
125
125
to ` make deplibs ` . To actually enabled use of dependencies, edit
126
- ` unix/mpconfigport.mk ` file, which has inline descriptions of the options.
126
+ ` ports/ unix/mpconfigport.mk` file, which has inline descriptions of the options.
127
127
For example, to build SSL module (required for ` upip ` tool described above),
128
128
set ` MICROPY_PY_USSL ` to 1.
129
129
130
- In ` unix/mpconfigport.mk ` , you can also disable some dependencies enabled
130
+ In ` ports/ unix/mpconfigport.mk` , you can also disable some dependencies enabled
131
131
by default, like FFI support, which requires libffi development files to
132
132
be installed.
133
133
134
- The STM version
135
- ---------------
134
+ The STM32 version
135
+ -----------------
136
136
137
- The "stmhal " port requires an ARM compiler, arm-none-eabi-gcc, and associated
137
+ The "stm32 " port requires an ARM compiler, arm-none-eabi-gcc, and associated
138
138
bin-utils. For those using Arch Linux, you need arm-none-eabi-binutils and
139
139
arm-none-eabi-gcc packages. Otherwise, try here:
140
140
https://launchpad.net/gcc-arm-embedded
141
141
142
142
To build:
143
143
144
- $ cd stmhal
144
+ $ cd ports/stm32
145
145
$ make
146
146
147
147
You then need to get your board into DFU mode. On the pyboard, connect the
@@ -155,4 +155,4 @@ Then to flash the code via USB DFU to your device:
155
155
This will use the included ` tools/pydfu.py ` script. If flashing the firmware
156
156
does not work it may be because you don't have the correct permissions, and
157
157
need to use ` sudo make deploy ` .
158
- See the README.md file in the stmhal / directory for further details.
158
+ See the README.md file in the ports/stm32 / directory for further details.
0 commit comments