File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
# https://arduino.github.io/arduino-cli/library-specification/#keywords
3
3
# Formatted by a single true tab (not spaces)
4
4
5
+ FreeRTOS KEYWORD1
6
+
5
7
# Datatypes (KEYWORD1)
6
8
StackType_t KEYWORD1
7
9
BaseType_t KEYWORD1
Original file line number Diff line number Diff line change @@ -216,16 +216,20 @@ void vApplicationTickHook(void) {
216
216
Private function to enable board led to use it in application hooks
217
217
*/
218
218
void prvSetMainLedOn (void ) {
219
+ #ifdef LED_BUILTIN
219
220
gpio_init (LED_BUILTIN);
220
221
gpio_set_dir (LED_BUILTIN, true );
221
222
gpio_put (LED_BUILTIN, true );
223
+ #endif
222
224
}
223
225
224
226
/* *
225
227
Private function to blink board led to use it in application hooks
226
228
*/
227
229
void prvBlinkMainLed (void ) {
230
+ #ifdef LED_BUILTIN
228
231
gpio_put (LED_BUILTIN, !gpio_get (LED_BUILTIN));
232
+ #endif
229
233
}
230
234
231
235
#endif
Original file line number Diff line number Diff line change 6
6
#define NUM_ANALOG_OUTPUTS (0u)
7
7
#define ADC_RESOLUTION (12u)
8
8
9
+ #ifdef PIN_LED
9
10
#define LED_BUILTIN PIN_LED
11
+ #endif
10
12
11
13
static const uint8_t D0 = (0u );
12
14
static const uint8_t D1 = (1u );
You can’t perform that action at this time.
0 commit comments