-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added four lane SDIO SD card support (for BTT SKR 2.0 - only tested w…
…ith a NUCLEO-F446ZE dev board). Issue #123.
- Loading branch information
Showing
38 changed files
with
27,416 additions
and
1,030 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
17,185 changes: 17,185 additions & 0 deletions
17,185
Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* USER CODE BEGIN Header */ | ||
/** | ||
****************************************************************************** | ||
* @file fatfs.c | ||
* @brief Code for fatfs applications | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* Copyright (c) 2023 STMicroelectronics. | ||
* All rights reserved. | ||
* | ||
* This software is licensed under terms that can be found in the LICENSE file | ||
* in the root directory of this software component. | ||
* If no LICENSE file comes with this software, it is provided AS-IS. | ||
* | ||
****************************************************************************** | ||
*/ | ||
/* USER CODE END Header */ | ||
#include "fatfs.h" | ||
|
||
uint8_t retSD; /* Return value for SD */ | ||
char SDPath[4]; /* SD logical drive path */ | ||
FATFS SDFatFS; /* File system object for SD logical drive */ | ||
FIL SDFile; /* File object for SD */ | ||
|
||
/* USER CODE BEGIN Variables */ | ||
|
||
/* USER CODE END Variables */ | ||
|
||
void MX_FATFS_Init(void) | ||
{ | ||
/*## FatFS: Link the SD driver ###########################*/ | ||
retSD = FATFS_LinkDriver(&SD_Driver, SDPath); | ||
|
||
/* USER CODE BEGIN Init */ | ||
/* additional user code for init */ | ||
/* USER CODE END Init */ | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* USER CODE BEGIN Header */ | ||
/** | ||
****************************************************************************** | ||
* @file fatfs.h | ||
* @brief Header for fatfs applications | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* Copyright (c) 2023 STMicroelectronics. | ||
* All rights reserved. | ||
* | ||
* This software is licensed under terms that can be found in the LICENSE file | ||
* in the root directory of this software component. | ||
* If no LICENSE file comes with this software, it is provided AS-IS. | ||
* | ||
****************************************************************************** | ||
*/ | ||
/* USER CODE END Header */ | ||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __fatfs_H | ||
#define __fatfs_H | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "ff.h" | ||
#include "ff_gen_drv.h" | ||
#include "sd_diskio.h" /* defines SD_Driver as external */ | ||
|
||
/* USER CODE BEGIN Includes */ | ||
|
||
/* USER CODE END Includes */ | ||
|
||
extern uint8_t retSD; /* Return value for SD */ | ||
extern char SDPath[4]; /* SD logical drive path */ | ||
extern FATFS SDFatFS; /* File system object for SD logical drive */ | ||
extern FIL SDFile; /* File object for SD */ | ||
|
||
void MX_FATFS_Init(void); | ||
|
||
/* USER CODE BEGIN Prototypes */ | ||
|
||
/* USER CODE END Prototypes */ | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /*__fatfs_H */ |
Oops, something went wrong.