[riot-notifications] [RIOT-OS/RIOT] boards/sensebox_samd21: Add MTD definition (#10802)

Alexandre Abadie notifications at github.com
Thu Jan 17 16:59:44 CET 2019


aabadie commented on this pull request.



> @@ -21,6 +21,25 @@
 #include "cpu.h"
 #include "board.h"
 #include "periph/gpio.h"
+#include "sdcard_spi_params.h"
+#include "mtd_sdcard.h"
+
+ /* this is provided by the sdcard_spi driver
+ * see sys/auto_init/storage/auto_init_sdcard_spi.c */
+extern sdcard_spi_t sdcard_spi_devs[sizeof(sdcard_spi_params) /
+                                    sizeof(sdcard_spi_params[0])];
+mtd_sdcard_t sensebox_sd_dev = {
+    .base = {
+        .driver = &mtd_sdcard_driver,
+        .page_size = 512,

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10802#pullrequestreview-193700668
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190117/f4e5247d/attachment-0001.html>


More information about the notifications mailing list