File tree Expand file tree Collapse file tree 5 files changed +25
-25
lines changed Expand file tree Collapse file tree 5 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ def init(repo):
230
230
if (module .parent / "module.md" ).exists ():
231
231
description = FileReader (str (module .parent / "module.md" ))
232
232
else :
233
- description = re .search (r'\. description += +(""".*?"""|".*?")' ,
233
+ description = re .search (r'description += +(""".*?"""|".*?")' ,
234
234
module_text , flags = re .S | re .M )
235
235
description = description .group (1 ).strip ('"\\ ' ) if description else None
236
236
versions = re .search (r"#+ +[Rr]evisions? += +\[(.*)\]" , module_text )
Original file line number Diff line number Diff line change 11
11
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
12
# -----------------------------------------------------------------------------
13
13
14
- def init (module ):
15
- module .name = ":board:black-pill-f103"
16
- module .description = """\
14
+ description = """
17
15
# Black Pill
18
16
19
17
STM32F103C8T6 "Black Pill" Minimum System Development Board
@@ -22,9 +20,7 @@ Cheap and bread-board-friendly board for STM32 F1 series.
22
20
Sold for less than 2 USD on well known Internet shops from China.
23
21
24
22
https://stm32-base.org/boards/STM32F103C8T6-Black-Pill.html
25
- """ + descr_programming
26
23
27
- descr_programming = """
28
24
## Programming
29
25
30
26
Since the board doesn't have a programmer on-board, you need to use your
@@ -54,6 +50,10 @@ Then include this file in your build options like so:
54
50
```
55
51
"""
56
52
53
+ def init (module ):
54
+ module .name = ":board:black-pill-f103"
55
+ module .description = description
56
+
57
57
def prepare (module , options ):
58
58
if not options [":target" ].partname .startswith ("stm32f103c8t" ):
59
59
return False
@@ -81,4 +81,4 @@ def build(env):
81
81
82
82
# Warn the user if they forgot to set a custom openocd config
83
83
if env .has_option (":build:openocd.cfg" ) and not len (env .get (":build:openocd.cfg" , "" )):
84
- env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + descr_programming )
84
+ env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + description )
Original file line number Diff line number Diff line change 11
11
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
12
# -----------------------------------------------------------------------------
13
13
14
- def init (module ):
15
- module .name = ":board:blue-pill-f103"
16
- module .description = """\
14
+ description = """
17
15
# Blue Pill
18
16
19
17
STM32F103C8T6 "Blue Pill" Minimum System Development Board
@@ -22,9 +20,7 @@ Cheap and bread-board-friendly board for STM32 F1 series.
22
20
Sold for less than 2 USD on well known Internet shops from China.
23
21
24
22
https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html
25
- """ + descr_programming
26
23
27
- descr_programming = """
28
24
## Programming
29
25
30
26
Since the board doesn't have a programmer on-board, you need to use your
@@ -54,6 +50,10 @@ Then include this file in your build options like so:
54
50
```
55
51
"""
56
52
53
+ def init (module ):
54
+ module .name = ":board:blue-pill-f103"
55
+ module .description = description
56
+
57
57
def prepare (module , options ):
58
58
if not options [":target" ].partname .startswith ("stm32f103c8t" ):
59
59
return False
@@ -81,4 +81,4 @@ def build(env):
81
81
82
82
# Warn the user if they forgot to set a custom openocd config
83
83
if env .has_option (":build:openocd.cfg" ) and not len (env .get (":build:openocd.cfg" , "" )):
84
- env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + descr_programming )
84
+ env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + description )
Original file line number Diff line number Diff line change 10
10
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
11
11
# -----------------------------------------------------------------------------
12
12
13
- def init (module ):
14
- module .name = ":board:devebox-stm32h750vb"
15
- module .description = """\
13
+ description = """
16
14
# STM32F750VB mcudev DevEBox
17
15
18
16
[STM32F750VB mcudev DevEBox H7xx](https://github.com/mcauser/MCUDEV_DEVEBOX_H7XX_M)
@@ -34,9 +32,7 @@ target option in your `project.xml`:
34
32
</options>
35
33
</library>
36
34
```
37
- """ + descr_programming
38
35
39
- descr_programming = """
40
36
## Programming
41
37
42
38
Since the board doesn't have a programmer on-board, you need to use your
@@ -66,6 +62,10 @@ Then include this file in your build options like so:
66
62
```
67
63
"""
68
64
65
+ def init (module ):
66
+ module .name = ":board:devebox-stm32h750vb"
67
+ module .description = description
68
+
69
69
def prepare (module , options ):
70
70
if not options [":target" ].partname .startswith ("stm32h750vbt" ):
71
71
return False
@@ -95,4 +95,4 @@ def build(env):
95
95
96
96
# Warn the user if they forgot to set a custom openocd config
97
97
if env .has_option (":build:openocd.cfg" ) and not len (env .get (":build:openocd.cfg" , "" )):
98
- env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + descr_programming )
98
+ env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + description )
Original file line number Diff line number Diff line change 11
11
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
12
12
# -----------------------------------------------------------------------------
13
13
14
- def init (module ):
15
- module .name = ":board:stm32f030_demo"
16
- module .description = """\
14
+ description = """
17
15
# STM32F030 Demo Board
18
16
19
17
STM32F030F4P6 Minimum System Development Board.
@@ -22,9 +20,7 @@ Cheap and bread-board-friendly board for STM32 F0 series.
22
20
Sold for less than 1.5 USD on well known Internet shops from China.
23
21
24
22
https://stm32-base.org/boards/STM32F030F4P6-STM32F030-DEMO-BOARD-V1.1
25
- """ + descr_programming
26
23
27
- descr_programming = """
28
24
## Programming
29
25
30
26
Since the board doesn't have a programmer on-board, you need to use your
@@ -51,6 +47,10 @@ Then include this file in your build options like so:
51
47
```
52
48
"""
53
49
50
+ def init (module ):
51
+ module .name = ":board:stm32f030_demo"
52
+ module .description = description
53
+
54
54
def prepare (module , options ):
55
55
if not options [":target" ].partname .startswith ("stm32f030f4p" ):
56
56
return False
@@ -78,4 +78,4 @@ def build(env):
78
78
79
79
# Warn the user if they forgot to set a custom openocd config
80
80
if env .has_option (":build:openocd.cfg" ) and not len (env .get (":build:openocd.cfg" , "" )):
81
- env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + descr_programming )
81
+ env .log .warning ("You need to provide the programmer via a custom OpenOCD config!\n " + description )
You can’t perform that action at this time.
0 commit comments