Skip to content

Commit

Permalink
Rename ArduinoCore-mbed to ArduinoCore-mbed-ce
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 12, 2024
1 parent acb72f0 commit 95a74a6
Show file tree
Hide file tree
Showing 41 changed files with 206 additions and 29 deletions.
6 changes: 6 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/ArduinoCore-mbed.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(MBED_APP_JSON_PATH mbed_app.json5)
include(mbed-os/tools/cmake/app.cmake)
add_subdirectory(mbed-os)

project(ArduinoCore-mbed VERSION 1.0.0) # This is the version of the Mbed CE Arduino core, not of Mbed CE
project(ArduinoCore-mbed-ce VERSION 1.0.0) # This is the version of the Mbed CE Arduino core, not of Mbed CE

if("${CMAKE_INSTALL_PREFIX}" STREQUAL "")
message(FATAL_ERROR "Must provide a CMAKE_INSTALL_PREFIX to generate the package at.")
Expand All @@ -34,9 +34,9 @@ message(STATUS "Will install Arduino core for ${ARDUINO_VARIANT_NAME} at ${CMAKE

# Pass in version defines for the core
target_compile_definitions(mbed-core-flags INTERFACE
CORE_MAJOR=${ArduinoCore-mbed_VERSION_MAJOR}
CORE_MINOR=${ArduinoCore-mbed_VERSION_MINOR}
CORE_PATCH=${ArduinoCore-mbed_VERSION_PATCH})
CORE_MAJOR=${ArduinoCore-mbed-ceVERSION_MAJOR}
CORE_MINOR=${ArduinoCore-mbed-ceVERSION_MINOR}
CORE_PATCH=${ArduinoCore-mbed-ceVERSION_PATCH})

# Create static library out of mbed-os
# Note that this library MUST be linked with -Wl,--whole-archive to work.
Expand Down Expand Up @@ -258,4 +258,10 @@ add_subdirectory(cores)
add_subdirectory(svd)
add_subdirectory(libraries)

# Set up packaging. We want CMake to build a zip file containing the core.
set(CPACK_PACKAGE_NAME "ArduinoCore-mbed-ce-${ARDUINO_VARIANT_NAME}-${CMAKE_BUILD_TYPE}")
set(CPACK_PACKAGE_VERSION ${ArduinoCore-mbed-ce_VERSION})

include(CPack)

mbed_finalize_build()
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Arduino Core for Mbed CE Arduino devices
This repository is a work-in-progress attempt to bundle Mbed CE as an Arduino core, so that Mbed CE can be used as a platform in the Arduino IDE. It is designed to perform a similar function as the mainline [ArduinoCore-mbed](https://github.com/mbed-ce/ArduinoCore-mbed) repository while being significantly less janky.
This repository is a work-in-progress attempt to bundle Mbed CE as an Arduino core, so that Mbed CE can be used as a platform in the Arduino IDE. It is designed to perform a similar function as the mainline [ArduinoCore-mbed](https://github.com/arduino/ArduinoCore-mbed) repository while being significantly less janky.

The build scripts in this repo perform two distinct functions:
- Create a precompiled build of Mbed OS, and then install it plus the supporting files in the correct directory structure to be an Arduino core
Expand Down
2 changes: 1 addition & 1 deletion ide-config-files/universal/platform.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification

name=Mbed CE @ARDUINO_VARIANT_NAME@
version=@ArduinoCore-mbed_VERSION@-@CMAKE_BUILD_TYPE@
version=@ArduinoCore-mbed-ce_VERSION@-@CMAKE_BUILD_TYPE@

# Compile variables
# ------------------------
Expand Down
4 changes: 2 additions & 2 deletions libraries/Arduino_CAN/library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name=Arduino_CAN
version=1.0.0
author=Arduino
maintainer=Arduino <[email protected]>
sentence=CAN communication library for ArduinoCore-mbed enabled boards.
paragraph=This library provides CAN for ArduinoCore-mbed enabled boards which expose CAN on their connectors.
sentence=CAN communication library for ArduinoCore-mbed-ce enabled boards.
paragraph=This library provides CAN for ArduinoCore-mbed-ce enabled boards which expose CAN on their connectors.
category=Other
url=
architectures=mbed,mbed_portenta
Expand Down
2 changes: 1 addition & 1 deletion libraries/Arduino_H7_Video/library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ maintainer=Arduino <[email protected]>
sentence=Video library for Arduino boards based on the STM32H7 microcontroller
paragraph=
category=Display
url=https://github.com/arduino/ArduinoCore-mbed/tree/main/libraries/Arduino_H7_Video
url=https://github.com/mbed-ce/ArduinoCore-mbed-ce/tree/main/libraries/Arduino_H7_Video
architectures=mbed,mbed_portenta,mbed_giga
Loading

0 comments on commit 95a74a6

Please sign in to comment.