Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
f8a022bc
Commit
f8a022bc
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
stmhal/boards/STM32L476DISC: Use external SPI flash for filesystem.
parent
d6a2d001
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stmhal/boards/STM32L476DISC/board_init.c
+10
-0
10 additions, 0 deletions
stmhal/boards/STM32L476DISC/board_init.c
stmhal/boards/STM32L476DISC/mpconfigboard.h
+10
-0
10 additions, 0 deletions
stmhal/boards/STM32L476DISC/mpconfigboard.h
with
20 additions
and
0 deletions
stmhal/boards/STM32L476DISC/board_init.c
0 → 100644
+
10
−
0
View file @
f8a022bc
#include
"py/mphal.h"
#include
"genhdr/pins.h"
void
STM32L476DISC_board_early_init
(
void
)
{
// set SPI flash WP and HOLD pins high
mp_hal_pin_output
(
&
pin_E14
);
mp_hal_pin_output
(
&
pin_E15
);
mp_hal_pin_write
(
&
pin_E14
,
1
);
mp_hal_pin_write
(
&
pin_E15
,
1
);
}
This diff is collapsed.
Click to expand it.
stmhal/boards/STM32L476DISC/mpconfigboard.h
+
10
−
0
View file @
f8a022bc
#include STM32_HAL_H
#define MICROPY_BOARD_EARLY_INIT STM32L476DISC_board_early_init
void
STM32L476DISC_board_early_init
(
void
);
#define MICROPY_HW_BOARD_NAME "L476-DISCO"
#define MICROPY_HW_MCU_NAME "STM32L476"
...
...
@@ -16,6 +19,13 @@
#define MICROPY_HW_ENABLE_DAC (0)
#define MICROPY_HW_ENABLE_CAN (0)
// use external SPI flash for storage
#define MICROPY_HW_SPIFLASH_SIZE_BITS (128 * 1024 * 1024)
#define MICROPY_HW_SPIFLASH_CS (pin_E11)
#define MICROPY_HW_SPIFLASH_SCK (pin_E10)
#define MICROPY_HW_SPIFLASH_MOSI (pin_E12)
#define MICROPY_HW_SPIFLASH_MISO (pin_E13)
// MSI is used and is 4MHz
#define MICROPY_HW_CLK_PLLM (1)
#define MICROPY_HW_CLK_PLLN (40)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment