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 */ 00012 #ifndef FLASH_PROG_H_ 00013 #define FLASH_PROG_H_ 00014 00015 int flash_prog(usb_dev_handle *hdev, unsigned low_addr, unsigned high_addr, unsigned flash_size, unsigned char *hex_buf); 00016 00017 #define USB_EP_SIZE 64 00018 #define FLASH_PAGE_SIZE 512 00019 #define NUM_FLASH_BLOCKS FLASH_PAGE_SIZE / USB_EP_SIZE 00020 #define MAX_FLASH_SIZE 32*1024 00021 00022 #endif // FLASH_PROG_H_