Microchip® Advanced Software Framework

unit_tests.c File Reference

Unit tests for FatFS service.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <string.h>
#include "conf_test.h"
#include "memories_initialization.h"

Macros

#define DATA_SIZE   2048
 Size of the file to write/read. More...
 
#define DISK_DEV_NUM   LUN_ID_0
 Logical disk device number. More...
 
#define STR_ROOT_DIRECTORY   ""
 
#define TEST_SIZE   (4 * 1024)
 Test settings: Number of bytes to test. More...
 

Functions

int main (void)
 Run FatFS driver unit tests. More...
 
static void run_fatfs_test (const struct test_case *test)
 Do FatFS tests. More...
 

Variables

static uint8_t data_buffer [DATA_SIZE]
 
const char * file_name = STR_ROOT_DIRECTORY "Basic.bin"
 

#define DATA_SIZE   2048

Size of the file to write/read.

Referenced by run_fatfs_test().

#define DISK_DEV_NUM   LUN_ID_0

Logical disk device number.

Referenced by run_fatfs_test().

#define STR_ROOT_DIRECTORY   ""

Referenced by run_fatfs_test().

#define TEST_SIZE   (4 * 1024)

Test settings: Number of bytes to test.

Referenced by run_fatfs_test().

static void run_fatfs_test ( const struct test_case test)
static

uint8_t data_buffer[DATA_SIZE]
static

Referenced by run_fatfs_test().

const char* file_name = STR_ROOT_DIRECTORY "Basic.bin"

Referenced by run_fatfs_test().