Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
lwip_freertos_demo.c File Reference
#include <stdlib.h>
#include <string.h>
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_os.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-bm/test15_4_evbme.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "openthread/cli.h"
#include "openthread/coap.h"
#include "openthread/instance.h"
#include "openthread/link.h"
#include "openthread/tasklet.h"
#include "openthread/thread.h"
#include "platform.h"
#include "FreeRTOS.h"
#include "semphr.h"
#include "task.h"
#include "lwip/init.h"
#include "lwip/tcpip.h"
#include "lwip-port.h"
#include "lwip_freertos_demo.h"
Include dependency graph for lwip_freertos_demo.c:

Macros

#define SuccessOrExit(aCondition)
 

Functions

void otTaskletsSignalPending (otInstance *aInstance)
 
ca_error LockCommsThread ()
 Lock the comms thread so that Cascoda/Openthread API calls can be made. More...
 
ca_error UnlockCommsThread ()
 Unlock the comms thread so that Cascoda/Openthread stacks can run. More...
 
int main (void)
 
void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName)
 

Variables

otInstance * OT_INSTANCE
 
TaskHandle_t CommsTaskHandle
 
SemaphoreHandle_t CommsMutexHandle
 

Macro Definition Documentation

◆ SuccessOrExit

#define SuccessOrExit (   aCondition)
Value:
do \
{ \
if ((aCondition) != 0) \
{ \
goto exit; \
} \
} while (0)

Function Documentation

◆ LockCommsThread()

ca_error LockCommsThread ( void  )

Lock the comms thread so that Cascoda/Openthread API calls can be made.

Returns
Status of the lock
Return values
CA_ERROR_SUCCESSLock successful
CA_ERROR_BUSYLock could not be taken

◆ main()

int main ( void  )

◆ otTaskletsSignalPending()

void otTaskletsSignalPending ( otInstance *  aInstance)

◆ UnlockCommsThread()

ca_error UnlockCommsThread ( void  )

Unlock the comms thread so that Cascoda/Openthread stacks can run.

Returns
Status of the unlock
Return values
CA_ERROR_SUCCESSUnlock successful
CA_ERROR_INVALID_STATEInvalid state

◆ vApplicationStackOverflowHook()

void vApplicationStackOverflowHook ( TaskHandle_t  xTask,
signed char *  pcTaskName 
)

Variable Documentation

◆ CommsMutexHandle

SemaphoreHandle_t CommsMutexHandle

◆ CommsTaskHandle

TaskHandle_t CommsTaskHandle