mirror of https://github.com/rusefi/openblt.git
Refs #734. Corrected preprocessor BOOT_COM_DEFERRED_INIT_ENABLE check in cpu.c.
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@658 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
11fe146a86
commit
66cdc6543b
|
@ -86,7 +86,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -101,7 +101,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
|
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -86,7 +86,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -101,7 +101,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -142,7 +142,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -77,7 +77,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -92,7 +92,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -122,7 +122,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -84,7 +84,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -99,7 +99,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -84,7 +84,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -99,7 +99,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -78,7 +78,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -93,7 +93,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -127,7 +127,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -78,7 +78,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -93,7 +93,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -127,7 +127,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -78,7 +78,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -93,7 +93,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -127,7 +127,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -84,7 +84,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -99,7 +99,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -78,7 +78,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -93,7 +93,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -127,7 +127,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -84,7 +84,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -99,7 +99,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -84,7 +84,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -99,7 +99,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -131,7 +131,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -79,7 +79,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -94,7 +94,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -128,7 +128,7 @@ void CpuStartUserProgram(void)
|
||||||
CpuIrqEnable();
|
CpuIrqEnable();
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -79,7 +79,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -94,7 +94,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -119,7 +119,7 @@ void CpuStartUserProgram(void)
|
||||||
pProgResetHandler = (void(*)(void))(*((blt_int16u *)CPU_USER_PROGRAM_STARTADDR_PTR));
|
pProgResetHandler = (void(*)(void))(*((blt_int16u *)CPU_USER_PROGRAM_STARTADDR_PTR));
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
|
@ -75,7 +75,7 @@ void CpuStartUserProgram(void)
|
||||||
/* check if a user program is present by verifying the checksum */
|
/* check if a user program is present by verifying the checksum */
|
||||||
if (NvmVerifyChecksum() == BLT_FALSE)
|
if (NvmVerifyChecksum() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -90,7 +90,7 @@ void CpuStartUserProgram(void)
|
||||||
/* invoke callback */
|
/* invoke callback */
|
||||||
if (CpuUserProgramStartHook() == BLT_FALSE)
|
if (CpuUserProgramStartHook() == BLT_FALSE)
|
||||||
{
|
{
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* bootloader will stay active so perform deferred initialization to make sure
|
/* bootloader will stay active so perform deferred initialization to make sure
|
||||||
* the communication interface that were not yet initialized are now initialized.
|
* the communication interface that were not yet initialized are now initialized.
|
||||||
* this is needed to make sure firmware updates via these communication interfaces
|
* this is needed to make sure firmware updates via these communication interfaces
|
||||||
|
@ -115,7 +115,7 @@ void CpuStartUserProgram(void)
|
||||||
pProgResetHandler = (void(*)(void))((blt_addr *)CPU_USER_PROGRAM_STARTADDR_PTR);
|
pProgResetHandler = (void(*)(void))((blt_addr *)CPU_USER_PROGRAM_STARTADDR_PTR);
|
||||||
/* start the user program by activating its reset interrupt service routine */
|
/* start the user program by activating its reset interrupt service routine */
|
||||||
pProgResetHandler();
|
pProgResetHandler();
|
||||||
#if (BOOT_COM_DEFERRED_INIT_ENABLE == 1)
|
#if (BOOT_COM_DEFERRED_INIT_ENABLE > 0) && (BOOT_COM_ENABLE > 0)
|
||||||
/* theoretically, the code never gets here because the user program should now be
|
/* theoretically, the code never gets here because the user program should now be
|
||||||
* running and the previous function call should not return. In case it did return
|
* running and the previous function call should not return. In case it did return
|
||||||
* for whatever reason, make sure all communication interfaces are initialized so that
|
* for whatever reason, make sure all communication interfaces are initialized so that
|
||||||
|
|
Loading…
Reference in New Issue