Skip to content

Commit 5e9b921

Browse files
committed
Merge branch 'feature/floating_point_SF6' into test/SF6_fp_irq
2 parents 9b32cd1 + 946003d commit 5e9b921

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ports/stm32/boards/PYBD_SF6/mpconfigboard.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
// Take PYBD_SF2 as base configuration
2828
#include "boards/PYBD_SF2/mpconfigboard.h"
2929

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+
3038
#undef MICROPY_HW_BOARD_NAME
3139
#undef MICROPY_HW_MCU_NAME
3240
#undef MICROPY_HW_CLK_PLLM

ports/stm32/boards/PYBD_SF6/mpconfigboard.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MCU settings
22
MCU_SERIES = f7
33
CMSIS_MCU = STM32F767xx
4-
MICROPY_FLOAT_IMPL = double
4+
MICROPY_FLOAT_IMPL = single
55
AF_FILE = boards/stm32f767_af.csv
66
LD_FILES = boards/PYBD_SF6/f767.ld
77
TEXT0_ADDR = 0x08008000

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy