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 00020 #ifndef HAL_FLASH_H__ 00021 #define HAL_FLASH_H__ 00022 00023 #include <stdint.h> 00024 #include "hal_flash_hw.h" 00025 00029 void hal_flash_page_erase(uint8_t pn); 00030 00035 void hal_flash_byte_write(uint16_t a, uint8_t b); 00036 00042 void hal_flash_bytes_write(uint16_t a, const uint8_t *p, uint16_t n); 00043 00048 uint8_t hal_flash_byte_read(uint16_t a); 00049 00055 void hal_flash_bytes_read(uint16_t a, uint8_t *p, uint16_t n); 00056 00057 #endif // HAL_FLASH_H__ 00058