43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
/** @defgroup flash_defines Flash Defines
|
|
*
|
|
* @brief <b>Defined Constants and Types for the SWM050 Flash API</b>
|
|
*
|
|
* @ingroup SWM050_defines
|
|
*
|
|
* LGPL License Terms @ref lgpl_license
|
|
*/
|
|
/*
|
|
* This file is part of the libopencm3 project.
|
|
*
|
|
* Copyright (C) 2019 Caleb Szalacinski <contact@skiboy.net>
|
|
*
|
|
* 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
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* 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/>.
|
|
*/
|
|
/**@{*/
|
|
#ifndef LIBOPENCM3_FLASH_H
|
|
#define LIBOPENCM3_FLASH_H
|
|
|
|
#include <libopencm3/cm3/common.h>
|
|
|
|
BEGIN_DECLS
|
|
|
|
uint32_t flash_write(uint32_t *dest, uint32_t *src, uint8_t cnt);
|
|
uint32_t flash_read(uint32_t *src, uint32_t *dest, uint8_t cnt);
|
|
uint32_t flash_erase(void);
|
|
|
|
END_DECLS
|
|
|
|
#endif
|
|
/**@}*/
|