forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Nrf52 qspi flash #1188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Nrf52 qspi flash #1188
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
835582b
adding flash_api, qspi flash
hathach 81ec1d9
clean up
hathach fae7f50
udate tinyusb msc flash size config
hathach fc80e75
qspi on pca10056 seems to work but write speed is slow
hathach 570b315
move internal_flash to flash_api
hathach 2dee813
add MICROPY_HW_LED_MSC
hathach 155ea3e
add flash_hal API
hathach 19abe37
rename vfs to user_vfs
hathach 78a2e4e
update qspi config
hathach 3661b40
clean up
hathach c65de95
clean up
hathach c48e507
only read existing flash data that we are not writing
hathach 1b498c2
fix previous commit issue
hathach 6386d3c
add flash devices
hathach 0be09f4
clean up
hathach 3297ca5
add JEDEC manufacturer & device ID detection, fall back to internal i…
hathach c0c89e3
update qspi mpconfigboard.h for feather nrf52840
hathach 6a3e70a
determine QSPI operation mode (quad, dual, single) based on the confi…
hathach 67161a5
add ALL_EXTERNAL_FLASH_DEVICES define
hathach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,16 +25,26 @@ | |
| */ | ||
|
|
||
| #include "boards/board.h" | ||
| #include "usb.h" | ||
| #include "nrf_gpio.h" | ||
|
|
||
| void board_init(void) { | ||
| usb_init(); | ||
|
|
||
| } | ||
|
|
||
| bool board_requests_safe_mode(void) { | ||
| return false; | ||
| } | ||
|
|
||
| void reset_board(void) { | ||
| // LEDs | ||
| for ( int i = 13; i <= 16; i++ ) { | ||
| nrf_gpio_cfg_output(i); | ||
| nrf_gpio_pin_set(i); | ||
| } | ||
|
|
||
| // Buttons | ||
| nrf_gpio_cfg_input(11, NRF_GPIO_PIN_PULLUP); | ||
| nrf_gpio_cfg_input(12, NRF_GPIO_PIN_PULLUP); | ||
| nrf_gpio_cfg_input(24, NRF_GPIO_PIN_PULLUP); | ||
| nrf_gpio_cfg_input(25, NRF_GPIO_PIN_PULLUP); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like test code that shouldn't be merged. |
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems inconsistent that all other defines in this file use the pin__ objects but for QSPI we use the pin number