Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23fe692

Browse files
authored
Merge pull request #485 from gbr1/can_fix_nanor4
fixed Arduino Nano R4: CI, CAN, OPAMP & freeRTOS
2 parents 38bbdb5 + 30e81b8 commit 23fe692

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

‎.github/workflows/compile-examples.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
id: git_minima
5858
- fqbn: arduino-git:renesas:unor4wifi
5959
id: git_wifi
60+
- fqbn: arduino-git:renesas:nanor4
61+
id: git_nanor4
6062

6163

6264
# make board type-specific customizations to the matrix jobs
@@ -112,6 +114,10 @@ jobs:
112114
fqbn: "arduino-git:renesas:minima"
113115
additional-sketch-paths: |
114116
- libraries/OPAMP
117+
- board:
118+
fqbn: "arduino-git:renesas:nanor4"
119+
additional-sketch-paths: |
120+
- libraries/OPAMP
115121
116122
steps:
117123
- name: Checkout repository

‎libraries/Arduino_CAN/src/R7FA4M1_CAN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "R7FA4M1_CAN.h"
1616

17-
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4)
17+
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4) || defined(ARDUINO_NANO_R4)
1818

1919
#include <IRQManager.h>
2020

‎libraries/Arduino_CAN/src/R7FA4M1_CAN.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include <Arduino.h>
1919

20-
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4)
20+
#if defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4) || defined(ARDUINO_NANO_R4)
2121

2222
#include "api/HardwareCAN.h"
2323

‎libraries/Arduino_FreeRTOS/src/Arduino_FreeRTOS.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#pragma once
1212

13-
#if !defined(ARDUINO_PORTENTA_C33) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_UNOWIFIR4)
14-
# error "FreeRTOS is currently only supported for the Portenta C33, Arduino Uno R4 Minima and Arduino Uno R4 WiFi."
13+
#if !defined(ARDUINO_PORTENTA_C33) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_UNOWIFIR4)&& !defined(ARDUINO_NANO_R4)
14+
# error "FreeRTOS is currently only supported for the Portenta C33, Arduino Uno R4 Minima, Arduino Uno R4 WiF and Arduino Nano R4."
1515
#endif
1616

1717
#ifdef __cplusplus

‎libraries/Arduino_FreeRTOS/src/FreeRTOSConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ FSP_HEADER
119119
#ifndef configTOTAL_HEAP_SIZE
120120
# if defined(ARDUINO_PORTENTA_C33)
121121
# define configTOTAL_HEAP_SIZE (0x8000)
122-
# elif (defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4))
122+
# elif (defined(ARDUINO_MINIMA) || defined(ARDUINO_UNOWIFIR4))|| defined(ARDUINO_NANO_R4)
123123
# define configTOTAL_HEAP_SIZE (0x2000) /* R7FA4M1AB has 32 kByte RAM total, so we only allocate 8 kByte RAM for FreeRTOS heap. */
124124
# else
125125
# error "Define the total allowed heap size dependent on your MCU's available RAM."

‎libraries/OPAMP/src/OPAMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <Arduino.h>
33

44
/* Make sure this library fails to compile for unsupported boards. */
5-
#if !defined(ARDUINO_UNOWIFIR4) && !defined(ARDUINO_MINIMA)
5+
#if !defined(ARDUINO_UNOWIFIR4) && !defined(ARDUINO_MINIMA) && !defined(ARDUINO_NANO_R4)
66
#error "Unsupported board for OPAMP library."
77
#endif
88

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /