SD basic example for DISCO-F769NI
Dependencies: BSP_DISCO_F769NI
Revision 2:4c7f351406d3, committed 2019-11-15
- Comitter:
- Jerome Coutant
- Date:
- Fri Nov 15 17:23:50 2019 +0100
- Parent:
- 1:108892887275
- Commit message:
- Update with STM32Cube_FW_F7_V1.15.0
Changed in this revision
diff -r 108892887275 -r 4c7f351406d3 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Fri Nov 15 17:23:50 2019 +0100 @@ -0,0 +1,2 @@ +BUILD +mbed-os/
diff -r 108892887275 -r 4c7f351406d3 BSP_DISCO_F769NI.lib --- a/BSP_DISCO_F769NI.lib Wed Jun 07 11:44:37 2017 +0000 +++ b/BSP_DISCO_F769NI.lib Fri Nov 15 17:23:50 2019 +0100 @@ -1,1 +1,1 @@ -https://mbed.org/teams/ST/code/BSP_DISCO_F769NI/#39d2c2c79afa +https://mbed.org/teams/ST/code/BSP_DISCO_F769NI/#d13d7c447539
diff -r 108892887275 -r 4c7f351406d3 main.cpp --- a/main.cpp Wed Jun 07 11:44:37 2017 +0000 +++ b/main.cpp Fri Nov 15 17:23:50 2019 +0100 @@ -1,5 +1,4 @@ #include "mbed.h" -#include "stm32f769i_discovery.h" #include "stm32f769i_discovery_lcd.h" #include "stm32f769i_discovery_sd.h" @@ -33,7 +32,7 @@ SD_state = BSP_SD_Erase(0, (BLOCKSIZE * 50)); /* Wait until SD card is ready to use for new operation */ - while(BSP_SD_GetCardState() != SD_TRANSFER_OK) { + while (BSP_SD_GetCardState() != SD_TRANSFER_OK) { } if (SD_state != MSD_OK) { BSP_LCD_DisplayStringAt(20, 130, (uint8_t *)"SD ERASE : FAILED.", LEFT_MODE); @@ -46,7 +45,7 @@ while (1) { if (BSP_SD_IsDetected() != SD_PRESENT) { - if(prev_status != SD_NOT_PRESENT) { + if (prev_status != SD_NOT_PRESENT) { BSP_SD_Init(); prev_status = SD_NOT_PRESENT; BSP_LCD_SetTextColor(LCD_COLOR_RED); @@ -54,7 +53,7 @@ } } else if (prev_status != SD_PRESENT) { BSP_LCD_SetTextColor(LCD_COLOR_GREEN); - BSP_LCD_DisplayStringAt(20, BSP_LCD_GetYSize() - 30, (uint8_t *)"SD Connected ", LEFT_MODE); + BSP_LCD_DisplayStringAt(20, BSP_LCD_GetYSize() - 30, (uint8_t *)"SD Connected ", LEFT_MODE); prev_status = SD_PRESENT; }
diff -r 108892887275 -r 4c7f351406d3 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Fri Nov 15 17:23:50 2019 +0100 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#699372421a3b388fe568e9be85b1a985749a438f
diff -r 108892887275 -r 4c7f351406d3 mbed.bld --- a/mbed.bld Wed Jun 07 11:44:37 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b \ No newline at end of file