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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
card10
micropython
Commits
b924f649
Commit
b924f649
authored
May 8, 2016
by
Tobias Badertscher
Committed by
Damien George
May 10, 2016
Browse files
Options
Downloads
Patches
Plain Diff
stmhal: Fix clock configuration for STM32L476-discovery; also add I2C2.
parent
e89413e9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
stmhal/boards/STM32L476DISC/mpconfigboard.h
+5
-3
5 additions, 3 deletions
stmhal/boards/STM32L476DISC/mpconfigboard.h
with
5 additions
and
3 deletions
stmhal/boards/STM32L476DISC/mpconfigboard.h
+
5
−
3
View file @
b924f649
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
#define MICROPY_HW_ENABLE_DAC (0)
#define MICROPY_HW_ENABLE_DAC (0)
#define MICROPY_HW_ENABLE_CAN (0)
#define MICROPY_HW_ENABLE_CAN (0)
//
HSE
is
8
MHz
//
MSI
is
used and is 4
MHz
#define MICROPY_HW_CLK_PLLM (
2
)
#define MICROPY_HW_CLK_PLLM (
1
)
#define MICROPY_HW_CLK_PLLN (40)
#define MICROPY_HW_CLK_PLLN (40)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV7)
#define MICROPY_HW_CLK_PLLR (RCC_PLL
P
_DIV
7
)
#define MICROPY_HW_CLK_PLLR (RCC_PLL
R
_DIV
2
)
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
#define MICROPY_HW_CLK_PLLQ (RCC_PLLQ_DIV2)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
...
@@ -32,6 +32,8 @@
...
@@ -32,6 +32,8 @@
// I2C busses
// I2C busses
#define MICROPY_HW_I2C1_SCL (pin_B6)
#define MICROPY_HW_I2C1_SCL (pin_B6)
#define MICROPY_HW_I2C1_SDA (pin_B7)
#define MICROPY_HW_I2C1_SDA (pin_B7)
#define MICROPY_HW_I2C2_SCL (pin_B10)
#define MICROPY_HW_I2C2_SDA (pin_B11)
// We use an array of baudrates and corresponding TIMINGR values.
// We use an array of baudrates and corresponding TIMINGR values.
//
//
// The value 0x90112626 was obtained from the DISCOVERY_I2C1_TIMING constant
// The value 0x90112626 was obtained from the DISCOVERY_I2C1_TIMING constant
...
...
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