TI-OpenThread  1.08.06.06
CC1352P_2_LAUNCHXL/thread/empty_mtd/platform/system.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  @file system.h
4 
5  @brief Core platform (headerE) implimentation file for TI OpenThread Platforms.
6 
7  Group: CMCU, LPC
8  Target Device: cc13xx_cc26xx
9 
10  ******************************************************************************
11 
12  Copyright (c) 2017-2022, Texas Instruments Incorporated
13  All rights reserved.
14 
15  Redistribution and use in source and binary forms, with or without
16  modification, are permitted provided that the following conditions
17  are met:
18 
19  * Redistributions of source code must retain the above copyright
20  notice, this list of conditions and the following disclaimer.
21 
22  * Redistributions in binary form must reproduce the above copyright
23  notice, this list of conditions and the following disclaimer in the
24  documentation and/or other materials provided with the distribution.
25 
26  * Neither the name of Texas Instruments Incorporated nor the names of
27  its contributors may be used to endorse or promote products derived
28  from this software without specific prior written permission.
29 
30  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
32  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
33  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
34  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
35  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
36  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
37  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
38  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
39  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
40  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 
42  ******************************************************************************
43 
44 
45  *****************************************************************************/
46 
47 #ifndef RTOS_PLATFORM_H_
48 #define RTOS_PLATFORM_H_
49 
50 #include <openthread-core-config.h>
51 #include <stdint.h>
52 #include <openthread/config.h>
53 #include <openthread/instance.h>
54 
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
58 
59 // Global OpenThread instance structure
60 extern otInstance *sInstance;
61 
65 void otSysInit(int argc, char *argv[]);
66 
70 void platformDebugUartInit(void);
71 
76 void platformAlarmInit(void);
77 
82 void platformAlarmSignal(void);
83 
88 void platformAlarmProcess(otInstance *aInstance);
89 
94 void platformAlarmMicroInit(void);
95 
100 void platformAlarmMicroSignal(void);
101 
106 void platformAlarmMicroProcess(otInstance *aInstance);
107 
112 void platformRadioInit(void);
113 
117 void platformRadioSignal(uintptr_t arg);
118 
123 void platformRadioProcess(otInstance *aInstance, uintptr_t arg);
124 
129 void platformRandomInit(void);
130 
134 void platformRandomSignal(void);
135 
140 void platformRandomProcess(void);
141 
146 void platformUartSignal(uintptr_t arg);
147 
152 void platformUartProcess(uintptr_t arg);
153 
158 void platformSpiSignal(void);
159 
164 void platformSpiProcess(void);
165 
170 otError otPlatUartFlush(void);
171 
172 #ifdef __cplusplus
173 } // extern "C"
174 #endif
175 
176 #endif // RTOS_PLATFORM_H_
void platformRadioSignal(uintptr_t arg)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:401
void platformAlarmProcess(otInstance *aInstance)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/alarm.c:157
void platformAlarmMicroSignal(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:358
void platformRandomInit(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/entropy.c:101
void platformAlarmMicroInit(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/alarm_micro.c:85
void platformUartProcess(uintptr_t arg)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/uart.c:176
void platformRandomSignal(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:417
void platformRadioProcess(otInstance *aInstance, uintptr_t arg)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/radio.c:2376
void otSysInit(int argc, char *argv[])
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/system.c:43
void platformUartSignal(uintptr_t arg)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:372
void platformSpiSignal(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:387
void platformDebugUartInit(void)
void platformAlarmInit(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/alarm.c:87
void platformRadioInit(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/radio.c:1201
void platformSpiProcess(void)
Definition: CC1352P_2_LAUNCHXL/thread/ncp_ftd/platform/spi_periph.c:162
void platformAlarmMicroProcess(otInstance *aInstance)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/alarm_micro.c:154
otInstance * sInstance
void platformRandomProcess(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/entropy.c:132
otError otPlatUartFlush(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/platform/uart.c:196
void platformAlarmSignal(void)
Definition: CC1352P_2_LAUNCHXL/thread/cli_ftd/otstack.c:344
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale