From 6cf1721a2887d4481573948c7672b5e9d1dd7a1a Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Thu, 14 Feb 2013 17:52:29 -0700 Subject: [PATCH] cleanup --- firmware/common/w25q80bv.c | 21 +++++++++++++++++++++ firmware/common/w25q80bv.h | 26 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/firmware/common/w25q80bv.c b/firmware/common/w25q80bv.c index 7b6559f5..76547914 100644 --- a/firmware/common/w25q80bv.c +++ b/firmware/common/w25q80bv.c @@ -1,3 +1,24 @@ +/* + * Copyright 2013 Michael Ossmann + * + * This file is part of HackRF. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + /* * This is a rudimentary driver for the W25Q80BV SPI Flash IC using the * LPC43xx's SSP0 peripheral (not quad SPIFI). The only goal here is to allow diff --git a/firmware/common/w25q80bv.h b/firmware/common/w25q80bv.h index 4e0351a0..9b42f218 100644 --- a/firmware/common/w25q80bv.h +++ b/firmware/common/w25q80bv.h @@ -1,3 +1,27 @@ +/* + * Copyright 2013 Michael Ossmann + * + * This file is part of HackRF. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +#ifndef __W25Q80BV_H__ +#define __W25Q80BV_H__ + #define W25Q80BV_PAGE_LEN 256U #define W25Q80BV_NUM_PAGES 4096U #define W25Q80BV_NUM_BYTES 1048576U @@ -12,3 +36,5 @@ void w25q80bv_setup(void); void w25q80bv_chip_erase(void); void w25q80bv_program(uint32_t addr, uint32_t len, const uint8_t* data); + +#endif//__W25Q80BV_H__