2022-02-28 14:13:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/** Type for identifying the nominal or the gold (redundant) flash copy */
|
|
|
|
typedef enum {
|
2022-03-01 15:06:59 +01:00
|
|
|
XSC_LIBNOR_COPY_NOMINAL,
|
|
|
|
XSC_LIBNOR_COPY_GOLD,
|
|
|
|
XSC_LIBNOR_COPY_TOTAL_NUMBER
|
2022-02-28 14:13:31 +01:00
|
|
|
} xsc_libnor_copy_t;
|
|
|
|
|
|
|
|
/** Type for identifying on of the two NOR flash chips */
|
|
|
|
typedef enum {
|
2022-03-01 15:06:59 +01:00
|
|
|
XSC_LIBNOR_CHIP_0, /* First NOR flash chip */
|
|
|
|
XSC_LIBNOR_CHIP_1, /* Second NOR flash chip */
|
|
|
|
XSC_LIBNOR_CHIP_TOTAL_NUMBER
|
2022-02-28 14:13:31 +01:00
|
|
|
} xsc_libnor_chip_t;
|
|
|
|
|
2022-02-28 19:52:43 +01:00
|
|
|
/**
|
|
|
|
* @brief Used to verify whether reboot function was called
|
2022-03-01 15:06:59 +01:00
|
|
|
*
|
|
|
|
* @param tgtChip
|
|
|
|
* @param tgtCopy
|
2022-02-28 19:52:43 +01:00
|
|
|
*/
|
2022-03-01 15:06:59 +01:00
|
|
|
bool getRebootWasCalled(xsc_libnor_chip_t& tgtChip, xsc_libnor_copy_t& tgtCopy);
|
2022-02-28 19:52:43 +01:00
|
|
|
|
2022-02-28 14:13:31 +01:00
|
|
|
void xsc_boot_copy(xsc_libnor_chip_t boot_chip, xsc_libnor_copy_t boot_copy);
|