Skip to content

Commit

Permalink
Merge branch 'main' into fix-chibios-sd-read
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion authored Mar 3, 2024
2 parents 4c42209 + 95ec74a commit de2ac69
Show file tree
Hide file tree
Showing 30 changed files with 61 additions and 70 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,6 @@ if(RTOS_CHIBIOS_CHECK OR RTOS_TI_SIMPLELINK_CHECK)
unset(LINK_OPTIONS)
#################################################################

#################################################################
# clear other options and definitions that we want to set
unset(COMPILE_OPTIONS)
unset(C_COMPILE_OPTIONS)
unset(CXX_COMPILE_OPTIONS)
unset(COMPILE_DEFINITIONS)
unset(LINK_OPTIONS)
#################################################################

endif()

#################################################################################
Expand Down
4 changes: 2 additions & 2 deletions src/HAL/Include/nanoHAL_Boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extern "C"

// Launches the proprietary bootloader of the platform.
// Returns false in case it's not supported (which is considered the default).
// In case of a successfull call it won't return.
// In case of a successful call it won't return.
// Implemented as "weak" to allow it to be replaced with "hard" implementation at platform level.
bool LaunchProprietaryBootloader();

Expand All @@ -81,7 +81,7 @@ extern "C"
// Returns false in case it's not supported (which is considered the default).
bool RequestToLaunchProprietaryBootloader();

// Report successfull nanoBooter execution
// Report successful nanoBooter execution
void ReportSuccessfullNanoBooter();

#ifdef __cplusplus
Expand Down
4 changes: 2 additions & 2 deletions src/HAL/nanoHAL_Boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ inline bool RequestToLaunchProprietaryBootloader()
return false;
}

// Report successfull nanoBooter execution
// Report successful nanoBooter execution
void ReportSuccessfullNanoBooter()
{
#if (TARGET_HAS_NANOBOOTER == TRUE)
Expand All @@ -107,7 +107,7 @@ void ReportSuccessfullNanoBooter()

// Calls the proprietary bootloader of the platform.
// Returns false in case it's not supported (which is considered the default).
// In case of a successfull call it won't return.
// In case of a successful call it won't return.
// Implemented as "weak" to allow it to be replaced with "hard" implementation at platform level.
__nfweak bool LaunchProprietaryBootloader()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_Directory::GetFilesNative___STATI
stringBuffer = (char *)platform_malloc(FF_LFN_BUF + 1);
workingBuffer = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (stringBuffer == NULL || workingBuffer == NULL)
{
// failed to allocate memory
Expand Down Expand Up @@ -337,7 +337,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_Directory::GetDirectoriesNative__
stringBuffer = (char *)platform_malloc(FF_LFN_BUF + 1);
workingBuffer = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (stringBuffer == NULL || workingBuffer == NULL)
{
// failed to allocate memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_File::ExistsNative___STATIC__BOOL
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_FileStream::OpenFileNative___VOID
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down Expand Up @@ -167,7 +167,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_FileStream::ReadNative___I4__STRI
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down Expand Up @@ -271,7 +271,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_FileStream::WriteNative___VOID__S
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down Expand Up @@ -364,7 +364,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_FileStream::GetLengthNative___I8_
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/Maxim/MAX78000_FTHR/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int main(void)
// init boot clipboard
InitBootClipboard();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// the following IF is not mandatory, it's just providing a way for a user to 'force'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ __nfweak bool ConfigurationManager_UpdateConfigurationBlock(
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return TRUE;
}

Expand Down Expand Up @@ -426,7 +426,7 @@ __nfweak bool ConfigurationManager_UpdateConfigurationBlock(
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return TRUE;
}

Expand Down Expand Up @@ -455,7 +455,7 @@ __nfweak bool ConfigurationManager_UpdateConfigurationBlock(
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/ST/ORGPAL_PALTHREE/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void tx_application_define(void *first_unused_memory)
// for nanoBooter we have to init it here to have access to network configuration blocks
ConfigurationManager_Initialize();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();
}

Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/ST/ST_B_L475E_IOT01A/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void tx_application_define(void *first_unused_memory)
}
}

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();
}

Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/ST/_common/LaunchCLR.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void LaunchCLR(uint32_t address)
// function pointer to load nanoCLR ResetHandler address
irq_vector_t JumpToNanoCLR;

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// load nanoCLR vector table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -580,7 +580,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -609,7 +609,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -640,7 +640,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void tx_application_define(void *first_unused_memory)
usb_device_cdc_acm_app_init();
#endif

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();
}

Expand Down
2 changes: 1 addition & 1 deletion targets/AzureRTOS/SiliconLabs/_common/LaunchCLR.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void LaunchCLR(uint32_t address)
// function pointer to load nanoCLR ResetHandler address
irq_vector_t JumpToNanoCLR;

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// load nanoCLR vector table
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -591,7 +591,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -620,7 +620,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -651,7 +651,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/ORGPAL_PALTHREE/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int main(void)
// for nanoBooter we have to init it here to have access to network configuration blocks
ConfigurationManager_Initialize();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// Normal main() thread
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/ST_NUCLEO64_F091RC/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main(void)
BlockStorageList_Initialize();
BlockStorage_AddDevices();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// Normal main() thread
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/ST_STM32F429I_DISCOVERY/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int main(void)
BlockStorageList_Initialize();
BlockStorage_AddDevices();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// Normal main() thread
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/ST_STM32F769I_DISCOVERY/nanoBooter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int main(void)
// for nanoBooter we have to init it here to have access to network configuration blocks
ConfigurationManager_Initialize();

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// Normal main() thread
Expand Down
2 changes: 1 addition & 1 deletion targets/ChibiOS/_common/LaunchCLR.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void LaunchCLR(uint32_t address)
// function pointer to load nanoCLR ResetHandler address
irq_vector_t JumpToNanoCLR;

// report successfull nanoBooter execution
// report successful nanoBooter execution
ReportSuccessfullNanoBooter();

// load nanoCLR vector table
Expand Down
8 changes: 4 additions & 4 deletions targets/ChibiOS/_common/targetHAL_ConfigurationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -507,7 +507,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -536,7 +536,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down Expand Up @@ -567,7 +567,7 @@ __nfweak UpdateConfigurationResult ConfigurationManager_UpdateConfigurationBlock
// free memory
platform_free(configSectorCopy);

// operation is successfull (nothing to update)
// operation is successful (nothing to update)
return UpdateConfigurationResult_NoChanges;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ HRESULT Library_sys_dev_i2c_native_System_Device_I2c_I2cDevice::
}
else
{
// successfull transaction
// successful transaction
// set the result field
result[I2cTransferResult::FIELD___status].SetInteger((CLR_UINT32)I2cTransferStatus_FullTransfer);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ HRESULT BuildPathsArray(const char *vfsFolderPath, const char *folderPath, CLR_R
stringBuffer = (char *)platform_malloc(FF_LFN_BUF + 1);
workingBuffer = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (stringBuffer == NULL || workingBuffer == NULL)
{
// failed to allocate memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ HRESULT Library_nf_sys_io_filesystem_System_IO_File::ExistsNative___STATIC__BOOL
// setup file path
filePath = (char *)platform_malloc(2 * FF_LFN_BUF + 1);

// sanity check for successfull malloc
// sanity check for successful malloc
if (filePath == NULL)
{
// failed to allocate memory
Expand Down
Loading

0 comments on commit de2ac69

Please sign in to comment.