diff --git a/Docs/PAL Porting Guide.pdf b/Docs/PAL Porting Guide.pdf deleted file mode 100644 index b748c71..0000000 Binary files a/Docs/PAL Porting Guide.pdf and /dev/null differ diff --git a/Docs/PAL_Porting_Guide.pdf b/Docs/PAL_Porting_Guide.pdf new file mode 100644 index 0000000..e6f2ac1 Binary files /dev/null and b/Docs/PAL_Porting_Guide.pdf differ diff --git a/Source/PAL-Impl/Modules/RTOS/pal_rtos.c b/Source/PAL-Impl/Modules/RTOS/pal_rtos.c index 2cb1ae5..645abe3 100644 --- a/Source/PAL-Impl/Modules/RTOS/pal_rtos.c +++ b/Source/PAL-Impl/Modules/RTOS/pal_rtos.c @@ -90,7 +90,7 @@ palStatus_t pal_osThreadCreate(palThreadFuncPtr function, void* funcArgument, pa status = PAL_ERR_INVALID_ARGUMENT; } - if ((PAL_SUCCESS == status) && (g_palThreadPriorities[priority+PRIORYT_INDEX_OFFSET])) + if ((PAL_SUCCESS == status) && (g_palThreadPriorities[priority+PRIORITY_INDEX_OFFSET])) { *threadID = NULLPTR; status = PAL_ERR_RTOS_PRIORITY; diff --git a/Source/Port/Platform-API/pal_plat_rtos.h b/Source/Port/Platform-API/pal_plat_rtos.h index 2e33bd1..fa432c1 100644 --- a/Source/Port/Platform-API/pal_plat_rtos.h +++ b/Source/Port/Platform-API/pal_plat_rtos.h @@ -44,7 +44,7 @@ extern "C" { //! An array of PAL thread priorities. The size of the array is defined in the Service API (pal_rtos.h) by "PAL_MAX_NUMBER_OF_THREADS" extern uint8_t g_palThreadPriorities[PAL_MAX_NUMBER_OF_THREADS]; -#define PRIORYT_INDEX_OFFSET 3 +#define PRIORITY_INDEX_OFFSET 3 #endif //PAL_UNIQUE_THREAD_PRIORITY /*! Initiate a system reboot. diff --git a/Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c b/Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c index d09e299..93ec404 100644 --- a/Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c +++ b/Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c @@ -125,7 +125,7 @@ typedef struct palMessageQ{ inline static void setDefaultThreadValues(palThread_t* thread) { #if PAL_UNIQUE_THREAD_PRIORITY - g_palThreadPriorities[thread->osThread.tpriority+PRIORYT_INDEX_OFFSET] = false; + g_palThreadPriorities[thread->osThread.tpriority+PRIORITY_INDEX_OFFSET] = false; #endif //PAL_UNIQUE_THREAD_PRIORITY thread->threadStore = NULL; thread->threadFuncWrapper.realThreadArgs = NULL; @@ -293,7 +293,7 @@ palStatus_t pal_plat_osThreadCreate(palThreadFuncPtr function, void* funcArgumen g_palThreads[firstAvailableThreadIndex].osThread.stack_pointer = stackPtr; g_palThreads[firstAvailableThreadIndex].initialized = true; #if PAL_UNIQUE_THREAD_PRIORITY - g_palThreadPriorities[priority+PRIORYT_INDEX_OFFSET] = true; + g_palThreadPriorities[priority+PRIORITY_INDEX_OFFSET] = true; #endif //PAL_UNIQUE_THREAD_PRIORITY status = PAL_SUCCESS;