cc2538: Define the flash memory organization
Define the flash memory page and word sizes. These definitions are grouped with the flash lock bit page and CCA definitions, so flash-cca.h is renamed to flash.h. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
parent
790c253d6d
commit
efb4b858e2
|
@ -111,7 +111,7 @@ CUSTOM_RULE_LINK=1
|
|||
LDGENFLAGS += $(addprefix -D,$(subst $(COMMA), ,$(DEFINES)))
|
||||
LDGENFLAGS += $(addprefix -I,$(SOURCEDIRS))
|
||||
LDGENFLAGS += -imacros "contiki-conf.h" -imacros "dev/cc2538-dev.h"
|
||||
LDGENFLAGS += -imacros "dev/flash-cca.h"
|
||||
LDGENFLAGS += -imacros "dev/flash.h"
|
||||
LDGENFLAGS += -x c -P -E
|
||||
|
||||
# NB: Assumes LDSCRIPT was not overridden and is in $(OBJECTDIR)
|
||||
|
|
|
@ -36,22 +36,28 @@
|
|||
* \addtogroup cc2538
|
||||
* @{
|
||||
*
|
||||
* \defgroup cc2538-flash-cca cc2538 flash CCA
|
||||
* \defgroup cc2538-flash cc2538 flash memory
|
||||
*
|
||||
* Definitions for the cc2538 flash lock bit page and customer configuration
|
||||
* area
|
||||
* Definitions for the cc2538 flash memory
|
||||
* @{
|
||||
*
|
||||
* \file
|
||||
* Header file for the flash lock bit page and CCA definitions
|
||||
* Header file for the flash memory definitions
|
||||
*/
|
||||
#ifndef FLASH_CCA_H_
|
||||
#define FLASH_CCA_H_
|
||||
#ifndef FLASH_H_
|
||||
#define FLASH_H_
|
||||
|
||||
#include "dev/cc2538-dev.h"
|
||||
|
||||
#include <stdint.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** \name Flash memory organization
|
||||
* @{
|
||||
*/
|
||||
#define FLASH_PAGE_SIZE 2048
|
||||
#define FLASH_WORD_SIZE 4
|
||||
/** @} */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** \name Flash lock bit page and CCA location
|
||||
* @{
|
||||
*/
|
||||
|
@ -95,7 +101,7 @@ typedef struct {
|
|||
} flash_cca_lock_page_t;
|
||||
/** @} */
|
||||
|
||||
#endif /* FLASH_CCA_H_ */
|
||||
#endif /* FLASH_H_ */
|
||||
|
||||
/**
|
||||
* @}
|
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
#include "contiki.h"
|
||||
#include "reg.h"
|
||||
#include "flash-cca.h"
|
||||
#include "flash.h"
|
||||
#include "sys-ctrl.h"
|
||||
#include "rom-util.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue