-
Notifications
You must be signed in to change notification settings - Fork 207
Expand file tree
/
Copy pathplatform_freertos.c
More file actions
37 lines (29 loc) · 999 Bytes
/
platform_freertos.c
File metadata and controls
37 lines (29 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (C) Firmwave Ltd., All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "azure_c_shared_utility/platform.h"
#include "azure_c_shared_utility/xio.h"
#include "azure_c_shared_utility/tlsio_cyclonessl.h"
#include "azure_c_shared_utility/threadapi.h"
#include "debug.h"
int platform_init(void)
{
//TODO Add proper network events synchronization
ThreadAPI_Sleep(10000);
return 0;
}
const IO_INTERFACE_DESCRIPTION* platform_get_default_tlsio(void)
{
return tlsio_cyclonessl_get_interface_description();
}
STRING_HANDLE platform_get_platform_info(PLATFORM_INFO_OPTION options)
{
// No applicable options, so ignoring parameter
(void)options;
// Expected format: "(<runtime name>; <operating system name>; <platform>)"
return STRING_construct("(native; freertos; undefined)");
}
void platform_deinit(void)
{
TRACE_INFO("Deinitializing platform \r\n");
while(1) {};
}