1
0
Fork 0
CANopenNode/stack/eCos/CO_Flash.h
Janez_D b50cb5e8b3 Cleanup in comments (no code changed).
Add and update multiple readme.txt
Remove SVN IDs.
2015-07-25 17:36:46 +02:00

52 lines
1.9 KiB
C

#ifndef CO_FlashH
#define CO_FlashH
/**
* eCos flash support for CANopen stack
*
* @file CO_Flash.h
* @author Uwe Kindler
* @copyright 2013 Uwe Kindler
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <http://canopennode.sourceforge.net>.
* For more information on CANopen see <http://www.can-cia.org/>.
*
* CANopenNode 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 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//============================================================================
// INCLUDES
//============================================================================
#include "CANopen.h"
/**
* Initialize flash library and data storage in flash
* We use two blocks in flash for data storage. One block is used for the
* default data that will be restored. The default parameters are stored
* at address CO_OD_Flash_Default_Param. The data that will be loaded at
* startup or saved if user modifies data.
*/
void CO_FlashInit(void);
/**
* Register object dictionary functions for parameter storage and restoring
* parameters (Object dictionary index 0x1010 Store Param and 0x1011 Restore
* default param.
*/
void CO_FlashRegisterODFunctions(CO_t* CO);
//---------------------------------------------------------------------------
#endif // CO_FlashH