File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 228
228
#ifndef MICROPY_PY_ONEWIRE
229
229
#define MICROPY_PY_ONEWIRE (1)
230
230
#endif
231
+ #ifndef MICROPY_PY_UPLATFORM
232
+ #define MICROPY_PY_UPLATFORM (1)
233
+ #endif
231
234
232
235
// fatfs configuration used in ffconf.h
233
236
#define MICROPY_FATFS_ENABLE_LFN (1)
Original file line number Diff line number Diff line change 2
2
#include STM32_HAL_H
3
3
#include "pin.h"
4
4
5
+ // F0-1.9.0+F4-1.16.0+F7-1.7.0+H7-1.6.0+L0-1.11.2+L4-1.8.1+WB-1.10.0
6
+ #if defined(STM32F0 )
7
+ #define MICROPY_HAL_VERSION "1.9.0"
8
+ #elif defined(STM32F4 )
9
+ #define MICROPY_HAL_VERSION "1.16.0"
10
+ #elif defined(STM32F7 )
11
+ #define MICROPY_HAL_VERSION "1.7.0"
12
+ #elif defined(STM32H7 )
13
+ #define MICROPY_HAL_VERSION "1.6.0"
14
+ #elif defined(STM32L0 )
15
+ #define MICROPY_HAL_VERSION "1.11.2"
16
+ #elif defined(STM32L4 )
17
+ #define MICROPY_HAL_VERSION "1.8.1"
18
+ #elif defined(STM32WB )
19
+ #define MICROPY_HAL_VERSION "1.10.0"
20
+ #endif
21
+
5
22
extern const unsigned char mp_hal_status_to_errno_table [4 ];
6
23
7
24
static inline int mp_hal_status_to_neg_errno (HAL_StatusTypeDef status ) {
You can’t perform that action at this time.
0 commit comments