diff --git a/.gitignore b/.gitignore index 615d82c..830a220 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ outdir **outdir +**BUILD .built-in.o.cmd .main.o.cmd diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..5781d21 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,4 @@ +{ + "board": "AZ3166:stm32f4:MXCHIP_AZ3166", + "configuration": "upload_method=OpenOCDMethod" +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d2da974 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +// Place your settings in this file to overwrite default and user settings. +{ + //"C_Cpp.intelliSenseEngine": "Default" // Does not work with "Go to definition" etc. + "C_Cpp.intelliSenseEngine": "Tag Parser" +} \ No newline at end of file diff --git a/core b/core new file mode 100644 index 0000000..451cbe4 Binary files /dev/null and b/core differ diff --git a/prj.conf b/prj.conf deleted file mode 100644 index fabf972..0000000 --- a/prj.conf +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_GPIO=y -CONFIG_NANO_TIMERS=y -CONFIG_NANO_TIMEOUTS=y -CONFIG_DEBUG=y -CONFIG_SERIAL=n \ No newline at end of file diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 1794009..0000000 --- a/src/Makefile +++ /dev/null @@ -1 +0,0 @@ -obj-y = main.o \ No newline at end of file diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 80c7800..0000000 --- a/src/main.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016 Intel Corporation - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include -#include -#include -#include - -/* Change this if you have an LED connected to a custom port */ -//#define PORT "GPIOA" -#define PORT LED0_GPIO_PORT - -/* Change this if you have an LED connected to a custom pin */ -//#define LED 4 -#define LED LED0_GPIO_PIN - -/* 1000 msec = 1 sec */ -#define SLEEP_TIME 500 - -void main(void) -{ - int cnt = 0; - struct device *dev; - - dev = device_get_binding(PORT); - /* Set LED pin as output */ - gpio_pin_configure(dev, LED, GPIO_DIR_OUT); - - while (1) { - /* Set pin to HIGH/LOW every 1 second */ - gpio_pin_write(dev, LED, cnt % 2); - cnt++; - k_sleep(SLEEP_TIME); - } -}