File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ extern "C" {
26
26
#include " utility/r_flash_lp_cf.h"
27
27
}
28
28
29
- const flash_api_t & flash = g_flash_on_flash_lp;
30
29
static flash_lp_instance_ctrl_t flashCtrl;
31
30
static flash_cfg_t flashCfg;
32
31
@@ -97,7 +96,7 @@ int InternalStorageRenesasClass::open(int length) {
97
96
flashWriteAddress = storageStartAddress;
98
97
writeIndex = 0 ;
99
98
100
- fsp_err_t rv = flash. open (&flashCtrl, &flashCfg);
99
+ fsp_err_t rv = R_FLASH_LP_Open (&flashCtrl, &flashCfg);
101
100
if (rv != FSP_SUCCESS)
102
101
return 0 ;
103
102
@@ -130,11 +129,11 @@ void InternalStorageRenesasClass::close() {
130
129
while (writeIndex) {
131
130
write (0xff );
132
131
}
133
- flash. close (&flashCtrl);
132
+ R_FLASH_LP_Close (&flashCtrl);
134
133
}
135
134
136
135
void InternalStorageRenesasClass::apply () {
137
- fsp_err_t rv = flash. open (&flashCtrl, &flashCfg);
136
+ fsp_err_t rv = R_FLASH_LP_Open (&flashCtrl, &flashCfg);
138
137
if (rv != FSP_SUCCESS)
139
138
return ;
140
139
__disable_irq ();
You can’t perform that action at this time.
0 commit comments