Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b756821

Browse files
committedJul 1, 2022
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 7 additions & 2 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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)
Please sign in to comment.