Skip to content

boards/sensebox_samd21: Add MTD definition#10802

Merged
MrKevinWeiss merged 1 commit intoRIOT-OS:masterfrom
leandrolanzieri:pr/boards/sensebox_samd21-mtd
Jan 24, 2019
Merged

boards/sensebox_samd21: Add MTD definition#10802
MrKevinWeiss merged 1 commit intoRIOT-OS:masterfrom
leandrolanzieri:pr/boards/sensebox_samd21-mtd

Conversation

@leandrolanzieri
Copy link
Copy Markdown
Contributor

Contribution description

This PR adds the needed MTD (Memory Technology Device) definition, using the SD card device that is already defined for the board (mtd0), to use it .

Testing procedure

This can be tested using the pkg_fatfs test application. Check that the file system can be mounted and read and write operations are working.

Issues/PRs references

None

@leandrolanzieri leandrolanzieri added the Area: boards Area: Board ports label Jan 17, 2019
@MrKevinWeiss MrKevinWeiss added Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 17, 2019
@MrKevinWeiss
Copy link
Copy Markdown
Contributor

I don't want to expect errors 😢

@MrKevinWeiss
Copy link
Copy Markdown
Contributor

Also fix the travis errors.

@MrKevinWeiss MrKevinWeiss added the Reviewed: 3-testing The PR was tested according to the maintainer guidelines label Jan 17, 2019
Comment thread boards/sensebox_samd21/board.c Outdated
mtd_sdcard_t sensebox_sd_dev = {
.base = {
.driver = &mtd_sdcard_driver,
.page_size = 512,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the page_size/pages_per_sector/sector_count attributes depend on the SD card used ? Then I think (not sure though) this should be overridable from the board config using macro.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, moved to macros

@leandrolanzieri leandrolanzieri force-pushed the pr/boards/sensebox_samd21-mtd branch from e0a1acd to 251fb35 Compare January 18, 2019 08:48
@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

I don't want to expect errors
Also fix the travis errors.

Fixed

@MrKevinWeiss
Copy link
Copy Markdown
Contributor

Squash please

@leandrolanzieri leandrolanzieri force-pushed the pr/boards/sensebox_samd21-mtd branch from 16c9927 to 7cee12c Compare January 18, 2019 12:21
@leandrolanzieri leandrolanzieri force-pushed the pr/boards/sensebox_samd21-mtd branch from 7cee12c to 2625a86 Compare January 18, 2019 12:25
@leandrolanzieri
Copy link
Copy Markdown
Contributor Author

@MrKevinWeiss squashed

Copy link
Copy Markdown
Contributor

@MrKevinWeiss MrKevinWeiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks OK to me, I give some time for @aabadie to do a one over though!

@danpetry
Copy link
Copy Markdown
Contributor

@aabadie how do you feel about the state of this PR, are you ok for it to be merged? It's a dependent of #10799

@MrKevinWeiss MrKevinWeiss merged commit 06b5a58 into RIOT-OS:master Jan 24, 2019
@aabadie aabadie added this to the Release 2019.01 milestone Jan 25, 2019
@leandrolanzieri leandrolanzieri deleted the pr/boards/sensebox_samd21-mtd branch May 28, 2019 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Reviewed: 3-testing The PR was tested according to the maintainer guidelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants