Skip to content

Commit 2842945

Browse files
committed
stmhal: Fix bugs in documentation so it compiles.
1 parent 8bb44f6 commit 2842945

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

stmhal/irq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333

3434
#include MICROPY_HAL_H
3535

36+
/// \moduleref pyb
37+
3638
/// \function wfi()
3739
/// Wait for an interrupt.
3840
/// This executies a `wfi` instruction which reduces power consumption

stmhal/modselect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ STATIC mp_obj_t select_select(uint n_args, const mp_obj_t *args) {
174174
}
175175
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_select_select_obj, 3, 4, select_select);
176176

177-
/// \class Poll
177+
/// \class Poll - poll class
178178

179179
typedef struct _mp_obj_poll_t {
180180
mp_obj_base_t base;

stmhal/modwiznet5k.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ STATIC mp_obj_t format_net_addr(uint8_t *ip, mp_uint_t port) {
168168
/******************************************************************************/
169169
// Micro Python bindings
170170

171+
/// \class WIZnet5k - driver for WIZnet5x00 Ethernet modules
172+
171173
STATIC void wiznet5k_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t self_in, mp_print_kind_t kind) {
172174
print(env, "WIZnet5k()");
173175
}

tools/gendoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def write(self, dir):
347347
regex_descr = r'(?P<descr>.*)'
348348

349349
doc_regexs = (
350-
(Doc.process_module, re.compile(r'\\module (?P<id>[a-z]+) - ' + regex_descr + r'$')),
350+
(Doc.process_module, re.compile(r'\\module (?P<id>[a-z][a-z0-9]*) - ' + regex_descr + r'$')),
351351
(Doc.process_moduleref, re.compile(r'\\moduleref (?P<id>[a-z]+)$')),
352352
(Doc.process_function, re.compile(r'\\function (?P<id>[a-z0-9_]+)(?P<args>\(.*\))$')),
353353
(Doc.process_classmethod, re.compile(r'\\classmethod (?P<id>\\?[a-z0-9_]+)(?P<args>\(.*\))$')),

0 commit comments

Comments
 (0)