libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
flash_common_f.h
Go to the documentation of this file.
1
/** @addtogroup flash_defines
2
*
3
*/
4
/*
5
* This file is part of the libopencm3 project.
6
*
7
* This library is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this library. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#pragma once
22
23
#include <
libopencm3/cm3/common.h
>
24
25
BEGIN_DECLS
26
27
/**
28
* Clear the End of OPeration flag.
29
*/
30
void
flash_clear_eop_flag
(
void
);
31
32
/**
33
* Clear all status flags.
34
* The number of bits can vary across families.
35
*/
36
void
flash_clear_status_flags
(
void
);
37
38
/** Wait until Last Operation has Ended.
39
* This loops indefinitely until an operation (write or erase) has completed by
40
* testing the busy flag
41
*/
42
void
flash_wait_for_last_operation
(
void
);
43
44
END_DECLS
common.h
END_DECLS
#define END_DECLS
Definition:
common.h:34
BEGIN_DECLS
#define BEGIN_DECLS
Definition:
common.h:33
flash_wait_for_last_operation
void flash_wait_for_last_operation(void)
Wait until Last Operation has Ended.
Definition:
flash_common_f01.c:64
flash_clear_eop_flag
void flash_clear_eop_flag(void)
Clear the End of OPeration flag.
Definition:
flash_common_f.c:41
flash_clear_status_flags
void flash_clear_status_flags(void)
Clear all status flags.
Definition:
flash.c:56
include
libopencm3
stm32
common
flash_common_f.h
Generated on Tue Mar 7 2023 16:12:29 for libopencm3 by
1.9.4