Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Cube FW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Cube
Open-Cube FW
Commits
c0e07214
Commit
c0e07214
authored
1 year ago
by
Vojtech Petrucha
Browse files
Options
Downloads
Patches
Plain Diff
Update file flash-drive-strength.patch
parent
23262bf0
No related branches found
No related tags found
1 merge request
!9
Debugging of SPI flash issues
Pipeline
#76931
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
micropython/flash-drive-strength.patch
+6
-6
6 additions, 6 deletions
micropython/flash-drive-strength.patch
with
6 additions
and
6 deletions
micropython/flash-drive-strength.patch
+
6
−
6
View file @
c0e07214
...
...
@@ -17,15 +17,15 @@
+
+// SPI pin drive strength
+// options: 2 mA, 4 mA, 8 mA, 12 mA
+#define SCLK_DRIVE PADS_QSPI_GPIO_QSPI_SCLK_DRIVE_VALUE_2MA /* default is 8 mA */
+#define SD_DRIVE PADS_QSPI_GPIO_QSPI_SD0_DRIVE_VALUE_
4
MA /* default is 4 mA */
+#define SS_DRIVE PADS_QSPI_GPIO_QSPI_SS_DRIVE_VALUE_
4
MA /* default is 4 mA */
+#define SCLK_DRIVE PADS_QSPI_GPIO_QSPI_SCLK_DRIVE_VALUE_
1
2MA /* default is 8 mA */
+#define SD_DRIVE PADS_QSPI_GPIO_QSPI_SD0_DRIVE_VALUE_
2
MA /* default is 4 mA */
+#define SS_DRIVE PADS_QSPI_GPIO_QSPI_SS_DRIVE_VALUE_
2
MA /* default is 4 mA */
+
+// SPI pin slew rate
+// options: 0 = slow slewrate, 1 = fast slewrate
+#define SCLK_FAST_SLEWRATE
0
/* default is 1 */
+#define SD_FAST_SLEWRATE
1
/* default is 0 */
+#define SS_FAST_SLEWRATE
1
/* default is 0 */
+#define SCLK_FAST_SLEWRATE
1
/* default is 1 */
+#define SD_FAST_SLEWRATE
0
/* default is 0 */
+#define SS_FAST_SLEWRATE
0
/* default is 0 */
+
+
// ----------------------------------------------------------------------------
...
...
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