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

This commit is contained in:
Man, Jianting (Meco) 2022-02-17 00:36:15 -05:00 committed by GitHub
parent 5ec00a5a1d
commit 89bf823f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 31 deletions

View File

@ -1,12 +1,9 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = ['arduino_pinout.c'] src = Glob('*.c') + Glob('*.cpp')
inc = [cwd] inc = [cwd]
group = DefineGroup('Arduino', src, depend = ['RT_USING_ARDUINO'], CPPPATH = inc) 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') Return('group')

View File

@ -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);
}

View File

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

View File

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