Skip to content

Commit

Permalink
Disable atomic functions
Browse files Browse the repository at this point in the history
We disable the atomic function given that we are using them as macros.

Signed-off-by: Costin Lupu <[email protected]>
Reviewed-by: Florian Schmidt <[email protected]>
  • Loading branch information
clupuishere authored and Florian Schmidt committed Jun 4, 2019
1 parent 40fe591 commit c57c792
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pte_osal.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ pte_osResult pte_osSemaphoreCancellablePend(pte_osSemaphoreHandle h,
return result;
}

#if 0
/* We use macros instead */
/****************************************************************************
*
* Atomic Operations
Expand Down Expand Up @@ -489,6 +491,7 @@ int pte_osAtomicIncrement(int *pdest)
{
return atomic_add(pdest, 1);
}
#endif

/****************************************************************************
*
Expand Down

0 comments on commit c57c792

Please sign in to comment.