Skip to content

Commit 1e68ba4

Browse files
committed
chore(spi): update library version and header
Since it was fully reworked. Signed-off-by: Frederic Pillon <[email protected]>
1 parent cf1cbcd commit 1e68ba4

File tree

3 files changed

+22
-75
lines changed

3 files changed

+22
-75
lines changed

Diff for: libraries/SPI/library.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=SPI
2-
version=1.0.0
3-
author=Arduino, Wi6Labs
2+
version=1.1.0
3+
author=Arduino, Frederic Pillon
44
maintainer=stm32duino
55
sentence=Enables the communication with devices that use the Serial Peripheral Interface (SPI) Bus.
66
paragraph=This library is based on the official Arduino SPI library and adapted to STM32 boards.

Diff for: libraries/SPI/src/utility/spi_com.c

+10-37
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
1-
/**
2-
******************************************************************************
3-
* @file spi_com.c
4-
* @author WI6LABS
5-
* @version V1.0.0
6-
* @date 01-August-2016
7-
* @brief provide the SPI interface
8-
*
9-
******************************************************************************
10-
* @attention
11-
*
12-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
13-
*
14-
* Redistribution and use in source and binary forms, with or without modification,
15-
* are permitted provided that the following conditions are met:
16-
* 1. Redistributions of source code must retain the above copyright notice,
17-
* this list of conditions and the following disclaimer.
18-
* 2. Redistributions in binary form must reproduce the above copyright notice,
19-
* this list of conditions and the following disclaimer in the documentation
20-
* and/or other materials provided with the distribution.
21-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
22-
* may be used to endorse or promote products derived from this software
23-
* without specific prior written permission.
24-
*
25-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
29-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35-
*
36-
******************************************************************************
37-
*/
1+
/*
2+
* Copyright (c) 2016 Frederic Pillon <[email protected]> for
3+
* STMicroelectronics. All right reserved.
4+
* Interface utility of the spi module for arduino.
5+
*
6+
* This file is free software; you can redistribute it and/or modify
7+
* it under the terms of either the GNU General Public License version 2
8+
* or the GNU Lesser General Public License version 2.1, both as
9+
* published by the Free Software Foundation.
10+
*/
3811
#include "wiring_time.h"
3912
#include "core_debug.h"
4013
#include "stm32_def.h"

Diff for: libraries/SPI/src/utility/spi_com.h

+10-36
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,13 @@
1-
/**
2-
******************************************************************************
3-
* @file spi_com.h
4-
* @author WI6LABS
5-
* @version V1.0.0
6-
* @date 01-August-2016
7-
* @brief Header for spi module
8-
******************************************************************************
9-
* @attention
10-
*
11-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
12-
*
13-
* Redistribution and use in source and binary forms, with or without modification,
14-
* are permitted provided that the following conditions are met:
15-
* 1. Redistributions of source code must retain the above copyright notice,
16-
* this list of conditions and the following disclaimer.
17-
* 2. Redistributions in binary form must reproduce the above copyright notice,
18-
* this list of conditions and the following disclaimer in the documentation
19-
* and/or other materials provided with the distribution.
20-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
21-
* may be used to endorse or promote products derived from this software
22-
* without specific prior written permission.
23-
*
24-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34-
*
35-
******************************************************************************
36-
*/
1+
/*
2+
* Copyright (c) 2016 Frederic Pillon <[email protected]> for
3+
* STMicroelectronics. All right reserved.
4+
* Header utility of the spi module for arduino.
5+
*
6+
* This file is free software; you can redistribute it and/or modify
7+
* it under the terms of either the GNU General Public License version 2
8+
* or the GNU Lesser General Public License version 2.1, both as
9+
* published by the Free Software Foundation.
10+
*/
3711

3812
/* Define to prevent recursive inclusion -------------------------------------*/
3913
#ifndef __SPI_COM_H

0 commit comments

Comments
 (0)