Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
New R1.1 Porting Guide and small type-o fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Volinski committed Jan 10, 2017
1 parent 90dc385 commit 6d088ca
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file removed Docs/PAL Porting Guide.pdf
Binary file not shown.
Binary file added Docs/PAL_Porting_Guide.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/PAL-Impl/Modules/RTOS/pal_rtos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Source/Port/Platform-API/pal_plat_rtos.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions Source/Port/Reference-Impl/mbedOS/RTOS/pal_plat_rtos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6d088ca

Please sign in to comment.