Skip to content

Commit 5185986

Browse files
committed
Platform examples: Add headers
1 parent 23a976b commit 5185986

File tree

8 files changed

+32
-1
lines changed

8 files changed

+32
-1
lines changed

APIs_Platform/FileHandle/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "mbed.h"
26

37
static DigitalOut led2(LED2);

APIs_Platform/FileHandle_sigio/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// Main thread
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
25
#include "mbed.h"
36

47
static DigitalOut led1(LED1);

APIs_Platform/Poll/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
// Transfer bidirectional data between two ports, acting as a virtual link.
26
// poll() is used to monitor both ports for input.
37
#include "mbed.h"

APIs_Platform/ScopedRamExecutionLock/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "mbed.h"
26

37
int main()

APIs_Platform/ScopedRomWriteLock/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "mbed.h"
26

37
int main()

APIs_Platform/Shared_pointer/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "platform/SharedPtr.h"
26

37
int main(void)

APIs_Platform/Span_c/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "mbed.h"
26
#include "platform/Span.h"
37

APIs_Platform/Span_cpp/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* Copyright (c) 2006-2020 Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
15
#include "mbed.h"
26
#include "platform/Span.h"
37

0 commit comments

Comments
 (0)