forked from xuos/xiuos
				
			Modify the header file to include
This commit is contained in:
		
							parent
							
								
									d0bf9c9564
								
							
						
					
					
						commit
						a92dc71ce4
					
				|  | @ -20,7 +20,7 @@ | ||||||
| #include <xs_base.h> | #include <xs_base.h> | ||||||
| #include "ymodem.h" | #include "ymodem.h" | ||||||
| #include "string.h" | #include "string.h" | ||||||
| #include "flash.h" | #include "flash_for_ota.h" | ||||||
| 
 | 
 | ||||||
| uint8_t tab_1024[1024] ={0}; | uint8_t tab_1024[1024] ={0}; | ||||||
| uint8_t FileName[FILE_NAME_LENGTH]; | uint8_t FileName[FILE_NAME_LENGTH]; | ||||||
|  |  | ||||||
|  | @ -20,7 +20,6 @@ | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| #include "fsl_romapi.h" | #include "fsl_romapi.h" | ||||||
| 
 | 
 | ||||||
| #define USE_HIGHT_SPEED_TRANS  1 |  | ||||||
| #define SECTOR_SIZE 0x1000  | #define SECTOR_SIZE 0x1000  | ||||||
| #define FLASH_PAGE_SIZE 256 | #define FLASH_PAGE_SIZE 256 | ||||||
| 
 | 
 | ||||||
|  | @ -72,11 +71,5 @@ status_t Flash_Write(uint32_t WriteAddr, uint8_t *pBuffer, uint32_t NumByteToWri | ||||||
| status_t Flash_Read(uint32_t addr, uint8_t *buf, uint32_t len); | status_t Flash_Read(uint32_t addr, uint8_t *buf, uint32_t len); | ||||||
| status_t Flash_Copy(uint32_t srcAddr,uint32_t dstAddr, uint32_t imageSize); | status_t Flash_Copy(uint32_t srcAddr,uint32_t dstAddr, uint32_t imageSize); | ||||||
| 
 | 
 | ||||||
| #ifndef  USE_HIGHT_SPEED_TRANS |  | ||||||
| status_t NOR_FLASH_Write(uint32_t* FlashAddress, uint8_t* Data ,uint16_t DataLength); |  | ||||||
| #else |  | ||||||
| status_t NOR_FLASH_Write(uint32_t* FlashAddress, uint8_t* Data ,uint16_t DataLength,uint8_t doneFlag); |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ | ||||||
| #include <xs_base.h> | #include <xs_base.h> | ||||||
| #include "common.h" | #include "common.h" | ||||||
| #include "boot_for_ota.h" | #include "boot_for_ota.h" | ||||||
| #include "flash.h" | #include "flash_for_ota.h" | ||||||
| 
 | 
 | ||||||
| #ifdef TOOL_USING_OTA | #ifdef TOOL_USING_OTA | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,7 +19,6 @@ | ||||||
| */ | */ | ||||||
|   |   | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include "flash.h" |  | ||||||
| #include "flash_for_ota.h" | #include "flash_for_ota.h" | ||||||
| #include "MIMXRT1052.h" | #include "MIMXRT1052.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -20,9 +20,7 @@ | ||||||
| #ifndef __FLASH_OPS_H__ | #ifndef __FLASH_OPS_H__ | ||||||
| #define __FLASH_OPS_H__ | #define __FLASH_OPS_H__ | ||||||
| 
 | 
 | ||||||
| 
 | #include "flash_for_ota.h" | ||||||
| #include <flash.h> |  | ||||||
| 
 |  | ||||||
| typedef struct | typedef struct | ||||||
| { | { | ||||||
|     /* board init function*/ |     /* board init function*/ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue