CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
find_file.c File Reference
#include "ff.h"
#include "../uboot/uboot_load_file.h"
#include <stdint.h>
#include <string.h>
Include dependency graph for find_file.c:

Go to the source code of this file.

Macros

#define FILENAME_prog_bin   "uboot_firmware.h"
#define PRINT_Log(a, b)

Functions

char disk_initialize (char)
void load_file_from_external_source_to (void *free_area_adress)
 find and load uboot file at external flash or something else and load to MCU after free_space_start adress

Variables

FATFS Fatfs [_VOLUMES]

Macro Definition Documentation

#define FILENAME_prog_bin   "uboot_firmware.h"

Definition at line 47 of file find_file.c.

Referenced by load_file_from_external_source_to().

#define PRINT_Log (   a,
 
)

Definition at line 45 of file find_file.c.

Referenced by load_file_from_external_source_to().

Function Documentation

char disk_initialize ( char  )
void load_file_from_external_source_to ( void *  free_area_adress)

find and load uboot file at external flash or something else and load to MCU after free_space_start adress

free_space_start
Returns
address of image placed or 0 if load is failed

Definition at line 58 of file find_file.c.

References _VOLUMES, disk_initialize(), f_close(), f_mount(), f_open(), FA_OPEN_EXISTING, FA_READ, FILENAME_prog_bin, FR_OK, load_uboot_file(), and PRINT_Log.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

FATFS Fatfs[_VOLUMES]

Definition at line 51 of file find_file.c.