Add four macro definitions:

#define XIUOS_FLAH_ADDRESS  0x60100000
#define BAKUP_FLAH_ADDRESS  0x60300000
#define DOWN_FLAH_ADDRESS   0x60500000
#define FLAG_FLAH_ADDRESS   0x60700000
This commit is contained in:
wgzAIIT
2023-04-17 18:36:47 +08:00
parent 198fabf970
commit bbb8dd75f8
5 changed files with 17 additions and 18 deletions
@@ -30,6 +30,11 @@
#define FREQ_1MHz (1000000UL)
#define FLEXSPI_DLLCR_DEFAULT (0x100UL)
#define XIUOS_FLAH_ADDRESS 0x60100000
#define BAKUP_FLAH_ADDRESS 0x60300000
#define DOWN_FLAH_ADDRESS 0x60500000
#define FLAG_FLAH_ADDRESS 0x60700000
enum
{
kFlexSpiDelayCellUnit_Min = 75, // 75ps
@@ -24,7 +24,6 @@
#include <stdint.h>
#define BL_APP_VECTOR_TABLE_ADDRESS 0x60100000 //Application start address
#define USER_FLASH_SIZE 0x100000 //Application package size is limited to 1M
#define PACKET_SEQNO_INDEX (1)
#define PACKET_SEQNO_COMP_INDEX (2)
@@ -52,7 +51,7 @@
#define NAK_TIMEOUT (0x100000)
#define MAX_ERRORS (5)
void SerialDownload(void);
int32_t Ymodem_Receive (uint8_t *);
void SerialDownload(const uint32_t addr);
int32_t Ymodem_Receive (uint8_t *buf, const uint32_t addr);
#endif