Skip to content

Commit

Permalink
पुनरीक्षण
Browse files Browse the repository at this point in the history
  • Loading branch information
boseji committed May 17, 2024
1 parent 435590f commit 90cbc59
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 43 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ target_sources(app PRIVATE ${app_sources})

# Older Method of Grouping
#target_sources(app PRIVATE src/main.c)

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://boseji.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion readme.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions build-flash
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Copyright (c) 2020 Abhijit Bose <https://boseji.com>
# 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}`
Expand Down
3 changes: 3 additions & 0 deletions init-project
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Copyright (c) 2020 Abhijit Bose <https://boseji.com>
# 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}`
Expand Down
1 change: 1 addition & 0 deletions prj.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CONFIG_GPIO=y
CONFIG_DEBUG=y

78 changes: 38 additions & 40 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,48 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr.h>
#include <device.h>
#include <devicetree.h>
#include <drivers/gpio.h>
#include <zephyr.h>

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");