Skip to content

Add several update #4

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

Merged
merged 8 commits into from
Sep 19, 2018
Merged

Add several update #4

merged 8 commits into from
Sep 19, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Sep 17, 2018

  • Fix some warnings raised during the build
  • Add a default ffconf.h to avoid embed it in the core and allow easiest user configThe FatFs has several user defined options, which is specified from within the ffconf.h file.
    This library provides a default user defined options file named ffconf_default.h.
    User can provide his own defined options by adding his configuration in a file named ffconf_custom.h at sketch level or in variant folder.
  • Fix SD detect pin usage: SD detect pin was hardcoded in sd_conf.h while API provide a way to specify it. This require to provide the pin number instead of the GPIO_PIN_x pin and GPIOX port.
    That's why sd_conf.h usage has been removed.
    Moreover several definition for the BSP are common or only dependent to SD instance.
    SD instance could be SDMMC1 or SDIO depending of the STM32 series.
    Only the SD detects definition should be redefined thanks the variant.h if the board has one.
  • Unify begin() methods and BSP_SD_*init() functions: use methods with default parameters value.

@fpistm fpistm added the enhancement New feature or request label Sep 17, 2018
Signed-off-by: Frederic.Pillon <[email protected]>
Add a file named "ffconf_custom.h" in the sketch folder
will be used instead of the default config (ffconf_default.h).

Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
@fpistm fpistm changed the title Default ffconf.h to avoid embed it in the core and allow easiest user config Add several update Sep 18, 2018
SD detect pin was hardcoded in sd_conf.h while API provide a way to specify it.
This requires to provide the pin number instead of the GPIO_PIN_x pin and GPIOX port.
That's why sd_conf.h has been removed from the core.
Moreove several definition for the BSP are common or only dependent to SD
instance.
SD instance could be SDMMC1 or SDIO depending of the STM32 series.
Only the SD detect definition should be redefined thanks the variant.h
if the board has one.

Signed-off-by: Frederic.Pillon <[email protected]>
Use Class methods with default parameters value.

Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm fpistm merged commit 94eca67 into stm32duino:master Sep 19, 2018
@fpistm fpistm deleted the ffconf_custom branch September 19, 2018 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant