Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
ff9f228e
Unverified
Commit
ff9f228e
authored
May 01, 2023
by
Earle F. Philhower, III
Committed by
GitHub
May 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FreeRTOS compilation fix when no LED present (#1413)
Fixes #1412
parent
f33dfd23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
libraries/FreeRTOS/keywords.txt
libraries/FreeRTOS/keywords.txt
+2
-0
libraries/FreeRTOS/src/variantHooks.cpp
libraries/FreeRTOS/src/variantHooks.cpp
+4
-0
variants/generic/common.h
variants/generic/common.h
+2
-0
No files found.
libraries/FreeRTOS/keywords.txt
View file @
ff9f228e
...
...
@@ -2,6 +2,8 @@
# https://arduino.github.io/arduino-cli/library-specification/#keywords
# Formatted by a single true tab (not spaces)
FreeRTOS KEYWORD1
# Datatypes (KEYWORD1)
StackType_t KEYWORD1
BaseType_t KEYWORD1
...
...
libraries/FreeRTOS/src/variantHooks.cpp
View file @
ff9f228e
...
...
@@ -216,16 +216,20 @@ void vApplicationTickHook(void) {
Private function to enable board led to use it in application hooks
*/
void
prvSetMainLedOn
(
void
)
{
#ifdef LED_BUILTIN
gpio_init
(
LED_BUILTIN
);
gpio_set_dir
(
LED_BUILTIN
,
true
);
gpio_put
(
LED_BUILTIN
,
true
);
#endif
}
/**
Private function to blink board led to use it in application hooks
*/
void
prvBlinkMainLed
(
void
)
{
#ifdef LED_BUILTIN
gpio_put
(
LED_BUILTIN
,
!
gpio_get
(
LED_BUILTIN
));
#endif
}
#endif
...
...
variants/generic/common.h
View file @
ff9f228e
...
...
@@ -6,7 +6,9 @@
#define NUM_ANALOG_OUTPUTS (0u)
#define ADC_RESOLUTION (12u)
#ifdef PIN_LED
#define LED_BUILTIN PIN_LED
#endif
static
const
uint8_t
D0
=
(
0u
);
static
const
uint8_t
D1
=
(
1u
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment