File tree 7 files changed +23
-9
lines changed
libraries/Arduino_FreeRTOS
lib/FreeRTOS-Kernel-v10.5.1
7 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ void setup()
19
19
Serial.begin (115200 );
20
20
while (!Serial) { }
21
21
22
+ #if defined(ARDUINO_PORTENTA_H33)
23
+ /* Only the Portenta C33 has an RGB LED. */
22
24
pinMode (LEDR, OUTPUT);
23
25
digitalWrite (LEDR, LOW);
26
+ #endif
24
27
25
28
/* Init a task that calls 'loop'
26
29
* since after the call to
@@ -69,7 +72,12 @@ void setup()
69
72
70
73
void loop ()
71
74
{
75
+ #if defined(ARDUINO_PORTENTA_H33)
76
+ /* Only the Portenta C33 has an RGB LED. */
72
77
digitalWrite (LEDR, !digitalRead (LEDR));
78
+ #else
79
+ Serial.println (millis ());
80
+ #endif
73
81
vTaskDelay (configTICK_RATE_HZ/4 );
74
82
}
75
83
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name=Arduino_FreeRTOS
2
2
version =1.0.0
3
3
author =Arduino
4
4
maintainer =Arduino <
[email protected] >
5
- sentence =This library provides FreeRTOS for the Portenta C33.
5
+ sentence =This library provides FreeRTOS for the Portenta C33, Uno R4 Minima / WiFi .
6
6
paragraph =
7
7
category =Other
8
8
url =
Original file line number Diff line number Diff line change 10
10
11
11
#pragma once
12
12
13
- #ifndef ARDUINO_PORTENTA_H33
14
- # error "FreeRTOS is currently only supported for the Portenta C33."
13
+ #if !defined( ARDUINO_PORTENTA_H33 ) && !defined( ARDUINO_SANTIAGO ) && !defined( ARDUINO_SANTIAGO_COMPOSTA )
14
+ # error "FreeRTOS is currently only supported for the Portenta C33, Arduino Uno R4 Minima and Arduino Uno R4 WiFi ."
15
15
#endif
16
16
17
17
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -117,7 +117,13 @@ FSP_HEADER
117
117
#define configSUPPORT_DYNAMIC_ALLOCATION (1)
118
118
#endif
119
119
#ifndef configTOTAL_HEAP_SIZE
120
- #define configTOTAL_HEAP_SIZE (0x8000)
120
+ # if defined(ARDUINO_PORTENTA_H33 )
121
+ # define configTOTAL_HEAP_SIZE (0x8000)
122
+ # elif (defined(ARDUINO_SANTIAGO ) || defined(ARDUINO_SANTIAGO_COMPOSTA ))
123
+ # define configTOTAL_HEAP_SIZE (0x2000) /* R7FA4M1AB has 32 kByte RAM total, so we only allocate 8 kByte RAM for FreeRTOS heap. */
124
+ # else
125
+ # error "Define the total allowed heap size dependent on your MCU's available RAM."
126
+ # endif
121
127
#endif
122
128
#ifndef configAPPLICATION_ALLOCATED_HEAP
123
129
#define configAPPLICATION_ALLOCATED_HEAP (4)
Original file line number Diff line number Diff line change 50
50
* included here. In this case the path to the correct portmacro.h header file
51
51
* must be set in the compiler's include path. */
52
52
#ifndef portENTER_CRITICAL
53
- #include "../../portable/GCC/RA6M5 /portmacro.h"
53
+ #include "../../portable/FSP /portmacro.h"
54
54
#endif
55
55
56
56
#if portBYTE_ALIGNMENT == 32
Original file line number Diff line number Diff line change 30
30
/* Scheduler includes. */
31
31
#include "bsp_api.h"
32
32
#include "FreeRTOSConfig.h"
33
- #include "../../../ lib/FreeRTOS-Kernel-v10.5.1/FreeRTOS.h"
34
- #include "../../../ lib/FreeRTOS-Kernel-v10.5.1/task.h"
33
+ #include "../../lib/FreeRTOS-Kernel-v10.5.1/FreeRTOS.h"
34
+ #include "../../lib/FreeRTOS-Kernel-v10.5.1/task.h"
35
35
36
36
#if BSP_TZ_NONSECURE_BUILD
37
37
#include "tz_context.h"
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ extern "C" {
36
36
* is defined correctly and privileged functions are placed in correct sections. */
37
37
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
38
38
39
- #include "../../../ lib/FreeRTOS-Kernel-v10.5.1/mpu_wrappers.h"
39
+ #include "../../lib/FreeRTOS-Kernel-v10.5.1/mpu_wrappers.h"
40
40
41
41
/* MPU_WRAPPERS_INCLUDED_FROM_API_FILE is needed to be defined only for the
42
42
* header files. */
43
43
#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
44
44
45
45
/* Needed for definitions of pdFALSE and pdTRUE. */
46
- #include "../../../ lib/FreeRTOS-Kernel-v10.5.1/projdefs.h"
46
+ #include "../../lib/FreeRTOS-Kernel-v10.5.1/projdefs.h"
47
47
48
48
/*-----------------------------------------------------------
49
49
* Port specific definitions.
You can’t perform that action at this time.
0 commit comments