diff --git a/CMakeLists.txt b/CMakeLists.txt index 147c781..865ef38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,4 +23,3 @@ target_sources(app PRIVATE ${app_sources}) # Older Method of Grouping #target_sources(app PRIVATE src/main.c) - diff --git a/LICENSE b/LICENSE index 8f71f43..b9477b8 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {yyyy} {name of copyright owner} + Copyright (c) 2020 Abhijit Bose Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/readme.md b/README.md similarity index 95% rename from readme.md rename to README.md index d4f4110..01a5c06 100644 --- a/readme.md +++ b/README.md @@ -9,7 +9,7 @@ In this project we are trying to also fix the **flashing** issue for **STM32F3 D We are using the [**STM32F3 Discovery**](https://www.st.com/en/evaluation-tools/stm32f3discovery.html) board as a target for this project. -[![STM32F3 Discovery board running Zephyr OS with fancier blinky](https://www.boseji.com/images/zephyr-part-3-app-dev-1.jpg)](https://boseji.com/posts/zephyr-part-3-app-dev) +[![STM32F3 Discovery board running Zephyr OS with fancier blinky](./boards/arm/stm32f3_disco/doc/img/stm32f3_disco.jpg)](https://boseji.com/posts/zephyr-part-3-app-dev) The goal of this project is: diff --git a/boards/arm/stm32f3_disco/doc/img/zephyr-part-3-app-dev-1.jpg b/boards/arm/stm32f3_disco/doc/img/zephyr-part-3-app-dev-1.jpg new file mode 100644 index 0000000..e253a8d Binary files /dev/null and b/boards/arm/stm32f3_disco/doc/img/zephyr-part-3-app-dev-1.jpg differ diff --git a/build-flash b/build-flash index 65461a4..e36b221 100755 --- a/build-flash +++ b/build-flash @@ -3,6 +3,9 @@ # Copyright (c) 2020 Abhijit Bose # SPDX-License-Identifier: Apache-2.0 +# Exit on Error +set -e + # Get the Source Directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" PROJ=`basename ${DIR}` diff --git a/init-project b/init-project index 81ec79c..331ad8a 100755 --- a/init-project +++ b/init-project @@ -3,6 +3,9 @@ # Copyright (c) 2020 Abhijit Bose # SPDX-License-Identifier: Apache-2.0 +# Exit on Error +set -e + # Get the Source Directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" PROJ=`basename ${DIR}` diff --git a/prj.conf b/prj.conf index 3552787..61b7505 100644 --- a/prj.conf +++ b/prj.conf @@ -1,2 +1,3 @@ CONFIG_GPIO=y CONFIG_DEBUG=y + diff --git a/src/main.c b/src/main.c index 3a42813..a29aabe 100644 --- a/src/main.c +++ b/src/main.c @@ -4,50 +4,48 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include #include #include #include +#include -void main(void) -{ - struct device *gpioe; - int i; - /* LED Pins */ - uint8_t pins[] = {9 /*LD3*/, 10 /*LD5*/, 11 /*LD7*/, 12 /*LD9*/, - 13 /*LD10*/, 14 /*LD8*/, 15 /*LD6*/, 8 /*LD4*/}; - - /* Get instance of GPIOE */ - gpioe = device_get_binding("GPIOE"); - if (gpioe == NULL) { - return; - } - - /* Enabled All pins for Output*/ - for (i=0;i