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
24
26
27/**
28 * Clear the End of OPeration flag.
29 */
30void flash_clear_eop_flag(void);
31
32/**
33 * Clear all status flags.
34 * The number of bits can vary across families.
35 */
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 */
43
#define END_DECLS
Definition: common.h:34
#define BEGIN_DECLS
Definition: common.h:33
void flash_wait_for_last_operation(void)
Wait until Last Operation has Ended.
Definition: flash.c:52
void flash_clear_eop_flag(void)
Clear the End of OPeration flag.
void flash_clear_status_flags(void)
Clear all status flags.
Definition: flash.c:73