[PRJ][APPS][USBH] Fix stack corruption due to inconsistent type of local variable in MSC_File_Operations()

This commit is contained in:
Kilani Akrich 2023-09-28 17:03:25 +01:00 committed by Ali Labbene
parent 959dea9846
commit 043626d52e
24 changed files with 24 additions and 24 deletions

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if (f_mount(&USBH_fatfs, "", 0) != FR_OK)

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if (f_mount(&USBH_fatfs, "", 0) != FR_OK)

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext [] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if(f_mount(&USBH_fatfs, "", 0) != FR_OK)

View File

@ -40,7 +40,7 @@ uint8_t wtext [] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if(f_mount(&USBH_fatfs, "", 0 ) != FR_OK )

View File

@ -194,7 +194,7 @@ static void COMMAND_ProgramFlashMemory(void)
{
uint32_t programcounter = 0x00;
uint8_t readflag = TRUE;
uint16_t bytesread;
uint32_t bytesread;
/* RAM Address Initialization */
RamAddress = (uint32_t) &RAM_Buf;

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "Images display from USB Example";
*/
void IMG_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if (f_mount(&USBH_fatfs, "", 0) != FR_OK)

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "Images display from USB Example";
*/
void IMG_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext [] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if(f_mount(&USBH_fatfs, "", 0) != FR_OK)

View File

@ -40,7 +40,7 @@ uint8_t wtext [] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
/* Register the file system object to the FatFs module */
if(f_mount(&USBH_fatfs, "", 0 ) != FR_OK )

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");

View File

@ -40,7 +40,7 @@ uint8_t wtext[] = "USB Host Library : Mass Storage Example";
*/
void MSC_File_Operations(void)
{
uint16_t bytesread;
uint32_t bytesread;
LCD_UsrLog("INFO : FatFs Initialized \n");