From 1be4788b1a86c779b569162e190ef0d7e4a64f6a Mon Sep 17 00:00:00 2001 From: Vincenzo Frascino Date: Fri, 1 Jul 2016 16:36:50 +0100 Subject: [PATCH] [BEETLE] Mbed SDK Init Update In Beetle systems eFlash and Cache Flash are always enabled by default. This patch updates the Mbed SDK Init procedure to reflect the changes in the eFlash and Cache Flash Drivers provided in a previous patch. Signed-off-by: Vincenzo Frascino --- .../hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c b/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c index 6c19d23f73..659675286f 100644 --- a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c +++ b/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c @@ -20,10 +20,11 @@ void mbed_sdk_init(void) { SystemPowerConfig(); /* Config EFlash Controller Clock */ - EFlash_Initialize(); + EFlash_DriverInitialize(); + EFlash_ClockConfig(); - /* Initialize Flash Cache */ - FCache_Initialize(); + /* Enable Flash Cache Stats */ + FCache_DriverInitialize(); FCache_Enable(1); FCache_Invalidate(); }