Commit cb904c5b authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Grzegorz Daniluk

include/flash.h: initial trivial cleanup

- copyright header to local conventions
- fix a little white space
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 3ff9dac6
/*
*==============================================================================
* CERN (BE-CO-HT)
* Header file for M25P flash memory controller
*==============================================================================
* This work is part of the White Rabbit project
*
* author: Theodor Stana (t.stana@cern.ch)
* Copyright (C) 2013 CERN (www.cern.ch)
* Author: Theodor Stana <t.stana@cern.ch>
*
* date of creation: 2013-09-25
*
* version: 1.0
*
* description:
*
* dependencies:
*
* references:
*
*==============================================================================
* GNU LESSER GENERAL PUBLIC LICENSE
*==============================================================================
* This source file 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 2.1 of the License, or (at your
* option) any later version. This source 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
* source; if not, download it from http://www.gnu.org/licenses/lgpl-2.1.html
*==============================================================================
* last changes:
* 2013-09-25 Theodor Stana t.stana@cern.ch File created
*==============================================================================
* TODO: -
*==============================================================================
* Released according to the GNU LGPL, version 2.1 or any later version.
*/
#ifndef __FLASH_H_
#define __FLASH_H_
#include "types.h"
/* Flash interface functions */
void flash_init();
void flash_init(void);
int flash_write(uint32_t addr, uint8_t *buf, int count);
int flash_read(uint32_t addr, uint8_t *buf, int count);
void flash_serase(uint32_t addr);
void flash_berase();
uint8_t flash_rsr();
void flash_berase(void);
uint8_t flash_rsr(void);
/* SDB flash interface functions */
int flash_sdb_check();
int flash_sdb_check(void);
#endif // __FLASH_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment