File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
ports/stm32/boards/PYBD_SF6 Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 27
27
// Take PYBD_SF2 as base configuration
28
28
#include "boards/PYBD_SF2/mpconfigboard.h"
29
29
30
+ // Change floating-point representation to native type to allow for use in
31
+ // interrupts
32
+ #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)
33
+ #define UINT_FMT "%u"
34
+ #define INT_FMT "%d"
35
+ typedef int mp_int_t ; // must be pointer size
36
+ typedef unsigned int mp_uint_t ; // must be pointer size
37
+
30
38
#undef MICROPY_HW_BOARD_NAME
31
39
#undef MICROPY_HW_MCU_NAME
32
40
#undef MICROPY_HW_CLK_PLLM
Original file line number Diff line number Diff line change 1
1
# MCU settings
2
2
MCU_SERIES = f7
3
3
CMSIS_MCU = STM32F767xx
4
- MICROPY_FLOAT_IMPL = double
4
+ MICROPY_FLOAT_IMPL = single
5
5
AF_FILE = boards/stm32f767_af.csv
6
6
LD_FILES = boards/PYBD_SF6/f767.ld
7
7
TEXT0_ADDR = 0x08008000
You can’t perform that action at this time.
0 commit comments