Skip to content

Commit ed51bcb

Browse files
committed
Formatting tidy up.
1 parent 65ab955 commit ed51bcb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

targets/TARGET_STM/TARGET_STM32L1/flash_api.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ int32_t flash_program_page(flash_t *obj, uint32_t address,
116116
return 0;
117117
}
118118

119-
uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) {
119+
uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
120+
{
120121
/* considering 1 sector = 1 page */
121122
if ((address >= (FLASH_BASE + FLASH_SIZE)) || (address < FLASH_BASE)) {
122123
return MBED_FLASH_INVALID_SIZE;
@@ -125,16 +126,19 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) {
125126
}
126127
}
127128

128-
uint32_t flash_get_page_size(const flash_t *obj) {
129+
uint32_t flash_get_page_size(const flash_t *obj)
130+
{
129131
/* considering 1 sector = 1 page */
130132
return FLASH_PAGE_SIZE;
131133
}
132134

133-
uint32_t flash_get_start_address(const flash_t *obj) {
135+
uint32_t flash_get_start_address(const flash_t *obj)
136+
{
134137
return FLASH_BASE;
135138
}
136139

137-
uint32_t flash_get_size(const flash_t *obj) {
140+
uint32_t flash_get_size(const flash_t *obj)
141+
{
138142
return FLASH_SIZE;
139143
}
140144

0 commit comments

Comments
 (0)