@@ -123,21 +123,18 @@ static int32_t flash_check_nonsecure(flash_t *obj, uint32_t start_addr, uint32_t
123
123
}
124
124
#endif
125
125
126
- MBED_NONSECURE_ENTRY
127
- int32_t flash_init (flash_t * obj )
126
+ MBED_NONSECURE_ENTRY int32_t flash_init (flash_t * obj )
128
127
{
129
128
flash_set_target_config (obj );
130
129
return 0 ;
131
130
}
132
131
133
- MBED_NONSECURE_ENTRY
134
- int32_t flash_free (flash_t * obj )
132
+ MBED_NONSECURE_ENTRY int32_t flash_free (flash_t * obj )
135
133
{
136
134
return 0 ;
137
135
}
138
136
139
- MBED_NONSECURE_ENTRY
140
- int32_t flash_erase_sector (flash_t * obj , uint32_t address )
137
+ MBED_NONSECURE_ENTRY int32_t flash_erase_sector (flash_t * obj , uint32_t address )
141
138
{
142
139
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
143
140
if (cmse_nonsecure_caller ()) {
@@ -166,8 +163,7 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
166
163
return ret ? -1 : 0 ;
167
164
}
168
165
169
- MBED_NONSECURE_ENTRY
170
- int32_t flash_program_page (flash_t * obj , uint32_t address , const uint8_t * data , uint32_t size )
166
+ MBED_NONSECURE_ENTRY int32_t flash_program_page (flash_t * obj , uint32_t address , const uint8_t * data , uint32_t size )
171
167
{
172
168
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
173
169
if (cmse_nonsecure_caller ()) {
@@ -196,8 +192,7 @@ int32_t flash_program_page(flash_t *obj, uint32_t address, const uint8_t *data,
196
192
return ret ? -1 : 0 ;
197
193
}
198
194
199
- MBED_NONSECURE_ENTRY
200
- uint32_t flash_get_sector_size (const flash_t * obj , uint32_t address )
195
+ MBED_NONSECURE_ENTRY uint32_t flash_get_sector_size (const flash_t * obj , uint32_t address )
201
196
{
202
197
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
203
198
if (cmse_nonsecure_caller ()) {
@@ -232,8 +227,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
232
227
return MBED_FLASH_INVALID_SIZE ;
233
228
}
234
229
235
- MBED_NONSECURE_ENTRY
236
- uint32_t flash_get_page_size (const flash_t * obj )
230
+ MBED_NONSECURE_ENTRY uint32_t flash_get_page_size (const flash_t * obj )
237
231
{
238
232
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
239
233
if (cmse_nonsecure_caller ()) {
@@ -244,8 +238,7 @@ uint32_t flash_get_page_size(const flash_t *obj)
244
238
return obj -> target_config -> page_size ;
245
239
}
246
240
247
- MBED_NONSECURE_ENTRY
248
- uint32_t flash_get_start_address (const flash_t * obj )
241
+ MBED_NONSECURE_ENTRY uint32_t flash_get_start_address (const flash_t * obj )
249
242
{
250
243
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
251
244
if (cmse_nonsecure_caller ()) {
@@ -256,8 +249,7 @@ uint32_t flash_get_start_address(const flash_t *obj)
256
249
return obj -> target_config -> flash_start ;
257
250
}
258
251
259
- MBED_NONSECURE_ENTRY
260
- uint32_t flash_get_size (const flash_t * obj )
252
+ MBED_NONSECURE_ENTRY uint32_t flash_get_size (const flash_t * obj )
261
253
{
262
254
#if defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3U )
263
255
if (cmse_nonsecure_caller ()) {
0 commit comments