2014-01-15 19:19:57 +00:00
|
|
|
/** @defgroup flash_defines FLASH Defines
|
|
|
|
*
|
|
|
|
* @ingroup STM32F4xx_defines
|
|
|
|
*
|
|
|
|
* @brief Defined Constants and Types for the STM32F4xx FLASH Memory
|
|
|
|
*
|
|
|
|
* @version 1.0.0
|
|
|
|
*
|
|
|
|
* @date 14 January 2014
|
|
|
|
*
|
|
|
|
* LGPL License Terms @ref lgpl_license
|
|
|
|
*/
|
|
|
|
|
2011-10-31 04:24:47 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the libopencm3 project.
|
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* This library is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
2011-10-31 04:24:47 +00:00
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2011-10-31 04:24:47 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2012-03-02 10:23:11 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2011-10-31 04:24:47 +00:00
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-10-31 04:24:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LIBOPENCM3_FLASH_H
|
|
|
|
#define LIBOPENCM3_FLASH_H
|
|
|
|
|
2018-07-10 22:21:18 +00:00
|
|
|
#include <libopencm3/stm32/common/flash_common_all.h>
|
2018-07-13 21:04:28 +00:00
|
|
|
#include <libopencm3/stm32/common/flash_common_f.h>
|
2013-07-04 02:10:31 +00:00
|
|
|
#include <libopencm3/stm32/common/flash_common_f24.h>
|
2012-09-02 15:12:58 +00:00
|
|
|
|
2018-07-24 22:30:07 +00:00
|
|
|
#define FLASH_SR_PGSERR (1 << 7)
|
|
|
|
#define FLASH_OPTCR_WDG_SW (1 << 5)
|
|
|
|
|
|
|
|
BEGIN_DECLS
|
|
|
|
|
|
|
|
void flash_clear_pgserr_flag(void);
|
2013-05-10 20:05:46 +00:00
|
|
|
|
2018-07-24 22:30:07 +00:00
|
|
|
END_DECLS
|
|
|
|
|
|
|
|
#endif
|