Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added precompiled library for STMicroelectronics Nucleo H723ZG (USB), Arduino Giga R1 (ETH UDP) #1853

Open
wants to merge 4 commits into
base: jazzy
Choose a base branch
from
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 library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ paragraph=micro-ROS Arduino library
url=https://github.com/micro-ROS/micro_ros_arduino
precompiled=true
category=Other
architectures=stm32,OpenCR,Teensyduino,samd,sam,mbed,esp32,mbed_portenta
architectures=stm32,OpenCR,Teensyduino,samd,sam,mbed,esp32,mbed_portenta,mbed_giga
Binary file added src/cortex-m7/fpv4-sp-d16-hard/libmicroros.a
Binary file not shown.
2 changes: 1 addition & 1 deletion src/default_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern "C"
{
#include <stdio.h>
#include <stdbool.h>
#include <sys/time.h>
#include <time.h>

int clock_gettime(clockid_t unused, struct timespec *tp) __attribute__ ((weak));
bool arduino_transport_open(struct uxrCustomTransport * transport) __attribute__ ((weak));
Expand Down
12 changes: 11 additions & 1 deletion src/micro_ros_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,17 @@ static inline void set_microros_transports(){
#include <PortentaEthernet.h>
#endif

#if defined(TARGET_STM32F4) || defined(ARDUINO_TEENSY41) || defined(TARGET_PORTENTA_H7_M7)
#if defined(ARDUINO_ARCH_MBED_GIGA)
#include <Arduino.h>
#include <EthernetUdp.h>
#include <Ethernet.h>

#include <uxr/client/transport.h>
#include <rmw_microros/rmw_microros.h>
#include "IPAddress.h"
#endif

#if defined(TARGET_STM32F4) || defined(ARDUINO_TEENSY41) || defined(TARGET_PORTENTA_H7_M7) || defined(ARDUINO_ARCH_MBED_GIGA)
extern "C" bool arduino_native_ethernet_udp_transport_open(struct uxrCustomTransport * transport);
extern "C" bool arduino_native_ethernet_udp_transport_close(struct uxrCustomTransport * transport);
extern "C" size_t arduino_native_ethernet_udp_transport_write(struct uxrCustomTransport* transport, const uint8_t * buf, size_t len, uint8_t * err);
Expand Down
10 changes: 9 additions & 1 deletion src/native_ethernet_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
#include <micro_ros_arduino.h>
#endif

#if defined(TARGET_STM32F4) || defined(ARDUINO_TEENSY41) || defined(TARGET_PORTENTA_H7_M7)
#if defined(ARDUINO_ARCH_MBED_GIGA)
#include <Arduino.h>
#include <EthernetUdp.h>
#include <Ethernet.h>
#include <micro_ros_arduino.h>

#endif

#if defined(TARGET_STM32F4) || defined(ARDUINO_TEENSY41) || defined(TARGET_PORTENTA_H7_M7)|| defined(ARDUINO_ARCH_MBED_GIGA)
extern "C" {

#include <stdbool.h>
Expand Down