+++ /dev/null
-/*\r
- * Amazon FreeRTOS Platform V1.0.0\r
- * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
- *\r
- * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
- * this software and associated documentation files (the "Software"), to deal in\r
- * the Software without restriction, including without limitation the rights to\r
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
- * the Software, and to permit persons to whom the Software is furnished to do so,\r
- * subject to the following conditions:\r
- *\r
- * The above copyright notice and this permission notice shall be included in all\r
- * copies or substantial portions of the Software.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
- *\r
- * http://aws.amazon.com/freertos\r
- * http://www.FreeRTOS.org\r
- */\r
-\r
-/**\r
- * @file iot_platform_types_posix.h\r
- * @brief Definitions of platform layer types on POSIX systems.\r
- */\r
-\r
-#ifndef _IOT_PLATFORM_TYPES_AFR_H_\r
-#define _IOT_PLATFORM_TYPES_AFR_H_\r
-\r
-#include "timers.h"\r
-\r
-typedef struct iot_mutex_internal\r
-{\r
- StaticSemaphore_t xMutex; /**< FreeRTOS mutex. */\r
- BaseType_t recursive; /**< Type; used for indicating if this is reentrant or normal. */\r
-} iot_mutex_internal_t;\r
-\r
-/**\r
- * @brief The native mutex type on AFR systems.\r
- */\r
-typedef iot_mutex_internal_t _IotSystemMutex_t;\r
-\r
-typedef struct iot_sem_internal\r
-{\r
- StaticSemaphore_t xSemaphore; /**< FreeRTOS semaphore. */\r
-} iot_sem_internal_t;\r
-\r
-/**\r
- * @brief The native semaphore type on AFR systems.\r
- */\r
-typedef iot_sem_internal_t _IotSystemSemaphore_t;\r
-\r
-/**\r
- * @brief Holds information about an active detached thread so that we can\r
- * delete the FreeRTOS task when it completes\r
- */\r
-typedef struct threadInfo\r
-{\r
- void * pArgument; /**< @brief Argument to `threadRoutine`. */\r
- void ( *threadRoutine )( void * );/**< @brief Thread function to run. */\r
-} threadInfo_t;\r
-\r
-/**\r
- * @brief Holds information about an active timer.\r
- */\r
-typedef struct timerInfo\r
-{\r
- TimerHandle_t timer; /**< @brief Underlying timer. */\r
- void ( *threadRoutine )( void * ); /**< @brief Thread function to run on timer expiration. */\r
- void * pArgument; /**< @brief First argument to threadRoutine. */\r
- StaticTimer_t xTimerBuffer; /**< Memory that holds the FreeRTOS timer. */\r
- TickType_t xTimerPeriod; /**< Period of this timer. */\r
-} timerInfo_t;\r
-\r
-/**\r
- * @brief Represents an #IotTimer_t on AFR systems.\r
- */\r
-typedef timerInfo_t _IotSystemTimer_t;\r
-\r
-#endif /* ifndef _IOT_PLATFORM_TYPES_POSIX_H_ */\r
--- /dev/null
+/*\r
+ * Amazon FreeRTOS Platform V1.0.0\r
+ * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
+ *\r
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
+ * this software and associated documentation files (the "Software"), to deal in\r
+ * the Software without restriction, including without limitation the rights to\r
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
+ * the Software, and to permit persons to whom the Software is furnished to do so,\r
+ * subject to the following conditions:\r
+ *\r
+ * The above copyright notice and this permission notice shall be included in all\r
+ * copies or substantial portions of the Software.\r
+ *\r
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+ *\r
+ * http://aws.amazon.com/freertos\r
+ * http://www.FreeRTOS.org\r
+ */\r
+\r
+/**\r
+ * @file iot_platform_types_posix.h\r
+ * @brief Definitions of platform layer types on POSIX systems.\r
+ */\r
+\r
+#ifndef _IOT_PLATFORM_TYPES_AFR_H_\r
+#define _IOT_PLATFORM_TYPES_AFR_H_\r
+\r
+#include "timers.h"\r
+\r
+typedef struct iot_mutex_internal\r
+{\r
+ StaticSemaphore_t xMutex; /**< FreeRTOS mutex. */\r
+ BaseType_t recursive; /**< Type; used for indicating if this is reentrant or normal. */\r
+} iot_mutex_internal_t;\r
+\r
+/**\r
+ * @brief The native mutex type on AFR systems.\r
+ */\r
+typedef iot_mutex_internal_t _IotSystemMutex_t;\r
+\r
+typedef struct iot_sem_internal\r
+{\r
+ StaticSemaphore_t xSemaphore; /**< FreeRTOS semaphore. */\r
+} iot_sem_internal_t;\r
+\r
+/**\r
+ * @brief The native semaphore type on AFR systems.\r
+ */\r
+typedef iot_sem_internal_t _IotSystemSemaphore_t;\r
+\r
+/**\r
+ * @brief Holds information about an active detached thread so that we can\r
+ * delete the FreeRTOS task when it completes\r
+ */\r
+typedef struct threadInfo\r
+{\r
+ void * pArgument; /**< @brief Argument to `threadRoutine`. */\r
+ void ( *threadRoutine )( void * );/**< @brief Thread function to run. */\r
+} threadInfo_t;\r
+\r
+/**\r
+ * @brief Holds information about an active timer.\r
+ */\r
+typedef struct timerInfo\r
+{\r
+ TimerHandle_t timer; /**< @brief Underlying timer. */\r
+ void ( *threadRoutine )( void * ); /**< @brief Thread function to run on timer expiration. */\r
+ void * pArgument; /**< @brief First argument to threadRoutine. */\r
+ StaticTimer_t xTimerBuffer; /**< Memory that holds the FreeRTOS timer. */\r
+ TickType_t xTimerPeriod; /**< Period of this timer. */\r
+} timerInfo_t;\r
+\r
+/**\r
+ * @brief Represents an #IotTimer_t on AFR systems.\r
+ */\r
+typedef timerInfo_t _IotSystemTimer_t;\r
+\r
+#endif /* ifndef _IOT_PLATFORM_TYPES_POSIX_H_ */\r
\r
/**\r
* @file iot_init.h\r
- * @brief Provides function signatures for common intialization and cleanup of\r
+ * @brief Provides function signatures for common initialization and cleanup of\r
* this SDK.\r
*/\r
\r
IOT_TASKPOOL_SUCCESS = 0,\r
\r
/**\r
- * @brief Task pool operation failed because at laest one parameter is invalid.\r
+ * @brief Task pool operation failed because at least one parameter is invalid.\r
*\r
* Functions that may return this value:\r
* - @ref taskpool_function_createsystemtaskpool\r