Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
if [[ $(grep -r api platform.txt) ]]; then echo "IS_API=true" >> $GITHUB_OUTPUT; fi

- name: Install ArduinoCore-API
run: rm "$GITHUB_WORKSPACE/cores/arduino/api" && mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
run: rm -rf "$GITHUB_WORKSPACE/cores/arduino/api" && mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
if: steps.checkapi.outputs.IS_API == 'true'

- name: Checkout Basic examples
Expand Down
54 changes: 54 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,57 @@ muxto.upload.maximum_size=262144
muxto.upload.maximum_data_size=32768

##############################################################

rmc_ra4m1_20.name=Arduino RMC-RA4M1(rev.2.0)
rmc_ra4m1_20.build.core=arduino
rmc_ra4m1_20.build.crossprefix=arm-none-eabi-
rmc_ra4m1_20.build.compiler_path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/

rmc_ra4m1_20.build.variant=rmc_ra4m1_20
rmc_ra4m1_20.build.mcu=cortex-m4
rmc_ra4m1_20.build.architecture=cortex-m4
rmc_ra4m1_20.build.fpu=-mfpu=fpv4-sp-d16
rmc_ra4m1_20.build.float-abi=-mfloat-abi=hard

rmc_ra4m1_20.build.board=rmc_ra4m1_20
rmc_ra4m1_20.build.defines=-DF_CPU=48000000 -DARDUINO_RMC_RA4M1_20
rmc_ra4m1_20.vid.0=0x2341
rmc_ra4m1_20.pid.0=0x0069
rmc_ra4m1_20.vid.1=0x2341
rmc_ra4m1_20.pid.1=0x0369
rmc_ra4m1_20.upload_port.0.vid=0x2341
rmc_ra4m1_20.upload_port.0.pid=0x0069
rmc_ra4m1_20.upload_port.1.vid=0x2341
rmc_ra4m1_20.upload_port.1.pid=0x0369

rmc_ra4m1_20.compiler.fsp.defines={build.variant.path}/defines.txt
rmc_ra4m1_20.compiler.fsp.ldflags={build.variant.path}/ldflags.txt
rmc_ra4m1_20.compiler.fsp.cflags=-mthumb "@{compiler.fsp.defines}"
rmc_ra4m1_20.compiler.fsp.cxxflags=-mthumb "@{compiler.fsp.defines}"
rmc_ra4m1_20.compiler.tinyusb.cflags=-DCFG_TUSB_MCU=OPT_MCU_RAXXX
rmc_ra4m1_20.compiler.tinyusb.cxxflags=-DCFG_TUSB_MCU=OPT_MCU_RAXXX
rmc_ra4m1_20.compiler.fsp.includes={build.variant.path}/includes.txt
rmc_ra4m1_20.compiler.fsp.extra_ldflags=--specs=nano.specs -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
rmc_ra4m1_20.compiler.fsp="{build.variant.path}/libs/libfsp.a"

rmc_ra4m1_20.upload.tool=dfu-util
rmc_ra4m1_20.upload.tool.default=dfu-util
rmc_ra4m1_20.upload.protocol=
rmc_ra4m1_20.upload.transport=
rmc_ra4m1_20.upload.vid=0x2341
rmc_ra4m1_20.upload.pid=0x0369
rmc_ra4m1_20.upload.address=0x00010000
rmc_ra4m1_20.upload.interface=0
rmc_ra4m1_20.upload.use_1200bps_touch=false
rmc_ra4m1_20.upload.wait_for_upload_port=false
rmc_ra4m1_20.upload.native_usb=true
rmc_ra4m1_20.upload.maximum_size=262144
rmc_ra4m1_20.upload.maximum_data_size=32768

rmc_ra4m1_20.debug.server.openocd.scripts.0=interface/{programmer.protocol}.cfg
rmc_ra4m1_20.debug.server.openocd.scripts.1={programmer.transport_script}
rmc_ra4m1_20.debug.server.openocd.scripts.2={runtime.platform.path}/debugger/R7FA4M1AB.cfg
rmc_ra4m1_20.debug.svd_file={runtime.platform.path}/svd/R7FA4M1AB.svd

##############################################################

1 change: 0 additions & 1 deletion cores/arduino/api

This file was deleted.

57 changes: 57 additions & 0 deletions cores/arduino/api/ArduinoAPI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
Arduino API main include
Copyright (c) 2016 Arduino LLC. All right reserved.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef ARDUINO_API_H
#define ARDUINO_API_H

// version 1.4.2
#define ARDUINO_API_VERSION 10402

#include "Binary.h"

#ifdef __cplusplus
#include "Interrupts.h"
#include "IPAddress.h"
#include "Print.h"
#include "Printable.h"
#include "PluggableUSB.h"
#include "Server.h"
#include "String.h"
#include "Stream.h"
#include "Udp.h"
#include "USBAPI.h"
#include "WCharacter.h"
#endif

/* Standard C library includes */
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>

// Misc Arduino core functions
#include "Common.h"

#ifdef __cplusplus
// Compatibility layer for older code
#include "Compat.h"
#endif

#endif
Loading
Loading