浏览代码

[arduino][stm32l475] update application/arduino folder (#5599)

Man, Jianting (Meco) 3 年之前
父节点
当前提交
89bf823f7d

+ 1 - 4
bsp/stm32/stm32l475-atk-pandora/applications/arduino/SConscript

@@ -1,12 +1,9 @@
 from building import *
 
 cwd = GetCurrentDir()
-src = ['arduino_pinout.c']
+src = Glob('*.c') + Glob('*.cpp')
 inc = [cwd]
 
 group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc)
 
-src = ['arduino_main.cpp']
-group = group + DefineGroup('Applications', src, depend = ['RT_USING_ARDUINO'])
-
 Return('group')

+ 0 - 23
bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_main.cpp

@@ -1,23 +0,0 @@
-/*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date           Author       Notes
- * 2021-12-10     Meco Man     first version
- */
-#include <Arduino.h>
-
-void setup(void)
-{
-    // put your setup code here, to run once:
-    pinMode(LED_BUILTIN, OUTPUT);
-}
-
-void loop(void)
-{
-    // put your main code here, to run repeatedly:
-    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
-    delay(200);
-}

+ 1 - 1
bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.c → bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.c

@@ -9,7 +9,7 @@
  */
 #include <Arduino.h>
 #include <board.h>
-#include "arduino_pinout.h"
+#include "pins_arduino.h"
 
 const pin_map_t pin_map_table[ARDUINO_PINOUT_PIN_MAX]=
 {

+ 3 - 3
bsp/stm32/stm32l475-atk-pandora/applications/arduino/arduino_pinout.h → bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.h

@@ -7,8 +7,8 @@
  * Date           Author       Notes
  * 2021-12-10     Meco Man     first version
  */
-#ifndef __UNO_PINOUT_H__
-#define __UNO_PINOUT_H__
+#ifndef Pins_Arduino_h
+#define Pins_Arduino_h
 
 #define LED_BUILTIN  13 /* Built-in LED */
 
@@ -25,4 +25,4 @@
 #define A4   (18)
 #define A5   (19)
 
-#endif /* __UNO_PINOUT_H__ */
+#endif /* Pins_Arduino_h */