aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c')
-rw-r--r--lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c b/lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c
new file mode 100644
index 000000000..54fbab8dc
--- /dev/null
+++ b/lib/chibios-contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/Blinky/main.c
@@ -0,0 +1,46 @@
1/*
2 ChibiOS - Copyright (C) 2020 Alex Lewontin
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#include "hal.h"
18
19uint8_t buf;
20
21
22/*
23 * Application entry point.
24 */
25int main(void)
26{
27
28 /*
29 * System initializations.
30 * - HAL initialization, this also initializes the configured device drivers
31 * and performs the board-specific initializations.
32 */
33
34 halInit();
35
36 /*
37 * Enabling interrupts, initialization done.
38 */
39 osalSysEnable();
40
41
42 while (true) {
43 OnboardLED_Toggle();
44 osalThreadSleepMilliseconds(1000);
45 }
46} \ No newline at end of file