Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
782d5b2e
Commit
782d5b2e
authored
Sep 10, 2021
by
iabdalkader
Committed by
Damien George
Sep 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32: Enable platform module.
The HAL version is based on the stm32lib version.
parent
2c5e9bbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
ports/stm32/mpconfigport.h
ports/stm32/mpconfigport.h
+3
-0
ports/stm32/mphalport.h
ports/stm32/mphalport.h
+17
-0
No files found.
ports/stm32/mpconfigport.h
View file @
782d5b2e
...
...
@@ -228,6 +228,9 @@
#ifndef MICROPY_PY_ONEWIRE
#define MICROPY_PY_ONEWIRE (1)
#endif
#ifndef MICROPY_PY_UPLATFORM
#define MICROPY_PY_UPLATFORM (1)
#endif
// fatfs configuration used in ffconf.h
#define MICROPY_FATFS_ENABLE_LFN (1)
...
...
ports/stm32/mphalport.h
View file @
782d5b2e
...
...
@@ -2,6 +2,23 @@
#include STM32_HAL_H
#include "pin.h"
// 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
#if defined(STM32F0)
#define MICROPY_HAL_VERSION "1.9.0"
#elif defined(STM32F4)
#define MICROPY_HAL_VERSION "1.16.0"
#elif defined(STM32F7)
#define MICROPY_HAL_VERSION "1.7.0"
#elif defined(STM32H7)
#define MICROPY_HAL_VERSION "1.6.0"
#elif defined(STM32L0)
#define MICROPY_HAL_VERSION "1.11.2"
#elif defined(STM32L4)
#define MICROPY_HAL_VERSION "1.8.1"
#elif defined(STM32WB)
#define MICROPY_HAL_VERSION "1.10.0"
#endif
extern
const
unsigned
char
mp_hal_status_to_errno_table
[
4
];
static
inline
int
mp_hal_status_to_neg_errno
(
HAL_StatusTypeDef
status
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment