Skip to content

Commit b756821

Browse files
committed
gpio: Add SPDX Tag
Signed-off-by: Dhruva Gole <[email protected]>
1 parent 1fcf0cc commit b756821

File tree

9 files changed

+37
-6
lines changed

9 files changed

+37
-6
lines changed

cores/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
add_subdirectory(arduino)

cores/arduino/Arduino.h

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
#include "api/ArduinoAPI.h"
28

39
/* Zephyr libraries */

cores/arduino/arduino_nano_ble_sense_pinmap.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/*
2-
All the pins that are 100 + x are gpio1 pins and < 100 are in gpio0
3-
*/
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* All the pins that are 100 + x are gpio1 pins and < 100 are in gpio0 */
8+
49
#define LED_BUILTIN 13
510

611
enum digitalPins {

cores/arduino/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
#include "Arduino.h"
28

39
int main(void) {

cores/arduino/zephyrCommon.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
17
#include "Arduino.h"
28

39
void pinMode(pin_size_t pinNumber, PinMode pinMode) {

examples/blinky_arduino/src/main.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*/
4+
15
/* Blink inbuilt LED example */
26

37
#include <Arduino.h>

examples/button_press_led/sample.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sample:
2-
name: Blinky Sample
2+
name: Button Press Sample
33
tests:
44
sample.basic.blinky:
55
tags: LED gpio

examples/button_press_led/src/main.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
/* Blink inbuilt LED example */
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*/
4+
5+
/* Button Press turns on inbuilt LED example */
26

37
#include <Arduino.h>
48

examples/hello_arduino/src/app.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* Copyright (c) 2012-2014 Wind River Systems, Inc.
3-
*
42
* SPDX-License-Identifier: Apache-2.0
53
*/
64

0 commit comments

Comments
 (0)