Microchip® Advanced Software Framework

sam/include/arch/sys_arch.h File Reference

lwIP abstraction layer for SAM.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"

Macros

#define SYS_MBOX_NULL   (xQueueHandle)0
 
#define SYS_SEM_NULL   (xSemaphoreHandle)0
 

Typedefs

typedef xQueueHandle sys_mbox_t
 
typedef xQueueHandle sys_mutex_t
 
typedef unsigned long int sys_prot_t
 
typedef xSemaphoreHandle sys_sem_t
 
typedef xTaskHandle sys_thread_t
 

Functions

sys_prot_t sys_arch_protect (void)
 Protect the system. More...
 
void sys_arch_unprotect (sys_prot_t pval)
 Unprotect the system. More...
 

#define SYS_MBOX_NULL   (xQueueHandle)0

Referenced by sys_mbox_free(), and sys_mbox_new().

#define SYS_SEM_NULL   (xSemaphoreHandle)0

Referenced by sys_sem_free(), and sys_sem_new().

typedef unsigned long int sys_prot_t

sys_prot_t sys_arch_protect ( void  )

Protect the system.

Returns
1 on success.
void sys_arch_unprotect ( sys_prot_t  pval)

Unprotect the system.

Parameters
pvalProtect value.