Skip to content

Commit

Permalink
Merge pull request #19 from balaji303/CleanUp
Browse files Browse the repository at this point in the history
Like, "Baby, baby, baby, no"
  • Loading branch information
balaji303 authored Nov 8, 2023
2 parents 704817d + 8fcd11d commit 25d065a
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 147 deletions.
56 changes: 8 additions & 48 deletions EmbeddedStudio_WS/Balaji303/nrf52840_code/001_LED_All_Blink/main.c
Original file line number Diff line number Diff line change
@@ -1,53 +1,13 @@
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. This software, with or without modification, must only be used with a
* Nordic Semiconductor ASA integrated circuit.
*
* 5. Any software provided in binary form under this license must not be reverse
* engineered, decompiled, modified and/or disassembled.
*
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @file main.c
* @author @balaji303 (https://github.com/balaji303)
* @brief Toggling all LED
* @version 1
* @date 08-11-2023
*
* Copyright (c) 2023 @balaji303
*
*/
/** @file
*
* @defgroup blinky_example_main main.c
* @{
* @ingroup blinky_example
* @brief Blinky Example Application main file.
*
* This file contains the source code for a sample application to blink LEDs.
*
*/

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,53 +1,13 @@
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. This software, with or without modification, must only be used with a
* Nordic Semiconductor ASA integrated circuit.
*
* 5. Any software provided in binary form under this license must not be reverse
* engineered, decompiled, modified and/or disassembled.
*
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @file main.c
* @author @balaji303 (https://github.com/balaji303)
* @brief LED controlled using Button
* @version 1
* @date 08-11-2023
*
* Copyright (c) 2023 @balaji303
*
*/
/** @file
*
* @defgroup blinky_example_main main.c
* @{
* @ingroup blinky_example
* @brief Blinky Example Application main file.
*
* This file contains the source code for a sample application to blink LEDs.
*
*/

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
Expand Down
11 changes: 10 additions & 1 deletion EmbeddedStudio_WS/Balaji303/nrf52840_code/003_UART_Tx/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

/**
* @file main.c
* @author @balaji303 (https://github.com/balaji303)
* @brief Serial Communication using UART
* @version 1
* @date 08-11-2023
*
* Copyright (c) 2023 @balaji303
*
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
12 changes: 10 additions & 2 deletions EmbeddedStudio_WS/Balaji303/nrf52840_code/004_UART_TxRx/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@


/**
* @file main.c
* @author @balaji303 (https://github.com/balaji303)
* @brief LED Blink using UART Rx and Tx
* @version 1
* @date 08-11-2023
*
* Copyright (c) 2023 @balaji303
*
*/

/*Note: Have This project near to the root dir*/
#include <stdbool.h>
Expand Down
55 changes: 8 additions & 47 deletions EmbeddedStudio_WS/Balaji303/nrf52840_code/blinky/main.c
Original file line number Diff line number Diff line change
@@ -1,51 +1,12 @@
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* 4. This software, with or without modification, must only be used with a
* Nordic Semiconductor ASA integrated circuit.
*
* 5. Any software provided in binary form under this license must not be reverse
* engineered, decompiled, modified and/or disassembled.
*
* THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
/** @file
*
* @defgroup blinky_example_main main.c
* @{
* @ingroup blinky_example
* @brief Blinky Example Application main file.
*
* This file contains the source code for a sample application to blink LEDs.
*
* @file main.c
* @author @balaji303 (https://github.com/balaji303)
* @brief LED1 Blink
* @version 1
* @date 08-11-2023
*
* Copyright (c) 2023 @balaji303
*
*/

#include <stdbool.h>
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ This repository contains resources and example code for the Nordic Semi's nRF528
- [SDK-Overview](https://github.com/balaji303/nRF52840-DK/blob/main/docs/nrf_connect_sdk_-_latest_10-24-2023.pdf)
- [User Guide](https://github.com/balaji303/nRF52840-DK/blob/main/docs/nRF52840_DK_User_Guide_v1.4.1.pdf)

## Basic Projects

- [001_LED_All_Blink](https://github.com/balaji303/nRF52840-DK/blob/main/EmbeddedStudio_WS/Balaji303/nrf52840_code/001_LED_All_Blink/main.c)
- [002_LED_Button_Blink](https://github.com/balaji303/nRF52840-DK/blob/main/EmbeddedStudio_WS/Balaji303/nrf52840_code/002_LED_Button_Blink/main.c)
- [003_UART_Tx](https://github.com/balaji303/nRF52840-DK/blob/main/EmbeddedStudio_WS/Balaji303/nrf52840_code/003_UART_Tx/main.c)
- [004_UART_TxRx](https://github.com/balaji303/nRF52840-DK/blob/main/EmbeddedStudio_WS/Balaji303/nrf52840_code/004_UART_TxRx/main.c)
- [blinky](https://github.com/balaji303/nRF52840-DK/blob/main/EmbeddedStudio_WS/Balaji303/nrf52840_code/blinky/main.c)


## Additional websites

- [HTML Doc](https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52840.html)
Expand All @@ -41,4 +50,6 @@ This repository contains resources and example code for the Nordic Semi's nRF528
- [nRF Connect for VS Code](https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code)


Schematics in ZIP file
## Note:

1. Make Sure you use NRF52-SDK as shown in the image ./docs/SES_WS.png
Binary file added docs/SES_WS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 25d065a

Please sign in to comment.