summaryrefslogtreecommitdiff
path: root/stmhal/modstm.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-08-02 10:42:09 -0700
committerDamien George <damien.p.george@gmail.com>2015-08-07 08:46:43 +0100
commitbe66a9ecf60eac18e08eda7bddf4b3481459c9f2 (patch)
treec65961e63c47efda30210bf775b8d2bdcc3d4f1b /stmhal/modstm.c
parent4836bcc957e970c93c02bfd465a35dba5da157ee (diff)
stmhal: Generate modstm constants per build
This causes unnecessary constants to no longer be generated. Some constants (like UART_BRR) are different between the F4 and F7
Diffstat (limited to 'stmhal/modstm.c')
-rw-r--r--stmhal/modstm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modstm.c b/stmhal/modstm.c
index cedc89481..f1f8ec390 100644
--- a/stmhal/modstm.c
+++ b/stmhal/modstm.c
@@ -120,7 +120,7 @@ STATIC const mp_map_elem_t stm_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_mem16), (mp_obj_t)&stm_mem16_obj },
{ MP_OBJ_NEW_QSTR(MP_QSTR_mem32), (mp_obj_t)&stm_mem32_obj },
-#include "modstmconst.gen.c"
+#include "genhdr/modstm_const.h"
};
STATIC MP_DEFINE_CONST_DICT(stm_module_globals, stm_module_globals_table);