SPI flash refactoring.

Extract common spiflash.c into core.
Use spiflash.c in sysparam.
Use memcpy in spiflash.c insted of hand-written version.
Tests for spiflash.c
This commit is contained in:
sheinz 2016-11-28 17:17:59 +02:00
parent 2105d5a5cd
commit e84f47f944
9 changed files with 140 additions and 247 deletions

View file

@ -252,7 +252,7 @@ static void clear_test_values(test_data_t *data)
}
static void test_task(void *pvParameters)
static void a_07_sysparam_load_test(void)
{
test_data_t test_data;
init_sysparam();
@ -276,11 +276,6 @@ static void test_task(void *pvParameters)
TEST_PASS();
}
static void a_07_sysparam_load_test(void)
{
xTaskCreate(test_task, "test_task", 256, NULL, 2, NULL);
}
static void a_07_sysparam_basic_test(void)
{
sysparam_status_t status;