hal_flash_hw.h

来自「非常全的nrf2401设计资料」· C头文件 代码 · 共 54 行

H
54
字号
/** @file
 *
 * Header file defining flash parameters for nRF24LE1.
 *
 * @addtogroup nordic_flash
 *
 * @{
 * @name Hardware dependencies
 * This sections contains hardware specific flash definitions. These definitions
 * are not used inside the Flash HAL directly, but can become handy for the 
 * user of the Flash HAL.   
 * @{
 *
 */

#ifndef _HAL_FLASH_LE1_H_
#define _HAL_FLASH_LE1_H_

/**
Number of bytes per Flash page.
*/
#define HAL_FLASH_PAGE_SIZE 512

/**
Start (xdata) address for "Non Voltaile Data Memory".
 
Used by the EEPROM library.
*/
#define HAL_DATA_NV_BASE_ADDRESS 0xFA00 

/**
Defines the number of physical Flash pages used by one  
"Non Voltaile Data Memory" page. 
*/
#define HAL_DATA_NV_FLASH_PAGES 2

/**
Defines the first physical flash page to which one 
"Non Voltaile Data Memory" is mapped.

Used by the EEPROM library. 
*/
#define HAL_DATA_NV_FLASH_PN0 32

/**
Defines the second physical flash page to which one 
"Non Voltaile Data Memory" page is mapped.

Used by the EEPROM library. 
*/
#define HAL_DATA_NV_FLASH_PN1 33

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?