Macros
Defines
Peripheral Driver » APP DRIVER » RTOS CONFIG

## Macros
#define | SEM_WAIT_FOREVER (0xFFFFUL)
#define | SEM_NO_WAIT (0)
#define | MUTEX_WAIT_FOREVER (0xFFFFUL)
#define | MUTEX_NO_WAIT (0)
#define | APP_DRV_SEM_DECL(sem) sem_t sem
#define | APP_DRV_MUTEX_DECL(mutex) mutex_t mutex
#define | app_driver_sem_init(x) (0)
#define | app_driver_sem_deinit(x)
#define | app_driver_sem_pend(x, y) (0)
#define | app_driver_sem_post(x)
#define | app_driver_sem_post_from_isr(x)
#define | app_driver_mutex_init(x) (0)
#define | app_driver_mutex_deinit(x)
#define | app_driver_mutex_pend(x, y)
#define | app_driver_mutex_post(x)

## Detailed Description

## Macro Definition Documentation

## ◆ app_driver_mutex_deinit

#define app_driver_mutex_deinit | ( |  | x | ) |

Deinitialize the mutex.

## ◆ app_driver_mutex_init

#define app_driver_mutex_init | ( |  | x | ) | (0)

Initialize the mutex.

## ◆ app_driver_mutex_pend

#define app_driver_mutex_pend | ( |  | x,
|  |  | y
| ) |  |

Pend the mutex.

## ◆ app_driver_mutex_post

#define app_driver_mutex_post | ( |  | x | ) |

Post the mutex.

## ◆ app_driver_sem_deinit

#define app_driver_sem_deinit | ( |  | x | ) |

Deinitialize the semphore.

## ◆ app_driver_sem_init

#define app_driver_sem_init | ( |  | x | ) | (0)

Initialize the semaphore.

## ◆ app_driver_sem_pend

#define app_driver_sem_pend | ( |  | x,
|  |  | y
| ) |  | (0)

Pend the semaphore.

## ◆ app_driver_sem_post

#define app_driver_sem_post | ( |  | x | ) |

Post the semaphore.

## ◆ app_driver_sem_post_from_isr

#define app_driver_sem_post_from_isr | ( |  | x | ) |

Post the semaphore from interrupt.

## ◆ APP_DRV_MUTEX_DECL

#define APP_DRV_MUTEX_DECL | ( |  | mutex | ) | mutex_t mutex

Define a mutex instance

## ◆ APP_DRV_SEM_DECL

#define APP_DRV_SEM_DECL | ( |  | sem | ) | sem_t sem

Define a semaphore instance

## ◆ MUTEX_NO_WAIT

#define MUTEX_NO_WAIT (0)

Non-block

## ◆ MUTEX_WAIT_FOREVER

#define MUTEX_WAIT_FOREVER (0xFFFFUL)

Wait for the mutex forever

## ◆ SEM_NO_WAIT

#define SEM_NO_WAIT (0)

Non-block

## ◆ SEM_WAIT_FOREVER

#define SEM_WAIT_FOREVER (0xFFFFUL)

Wait for the semaphore forever.