00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is confidential property of Nordic 00004 * Semiconductor ASA.Terms and conditions of usage are described in detail 00005 * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRENTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 * $LastChangedRevision: 133 $ 00012 */ 00013 00048 #ifndef HAL_FLASH_H__ 00049 #define HAL_FLASH_H__ 00050 00051 #include <stdint.h> 00052 #include "hal_flash_hw.h" 00053 00057 void hal_flash_page_erase(uint8_t pn); 00058 00063 void hal_flash_byte_write(uint16_t a, uint8_t b); 00064 00070 void hal_flash_bytes_write(uint16_t a, const uint8_t *p, uint16_t n); 00071 00076 uint8_t hal_flash_byte_read(uint16_t a); 00077 00083 void hal_flash_bytes_read(uint16_t a, uint8_t *p, uint16_t n); 00084 00085 #endif // HAL_FLASH_H__ 00086