Skip to content

Commit 2d8e3d1

Browse files
committed
changed copyright to mBed standard
1 parent 8717513 commit 2d8e3d1

File tree

3 files changed

+28
-106
lines changed

3 files changed

+28
-106
lines changed

TARGET_STM/TARGET_STM32F4/sdio_device.c

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,20 @@
1-
/**
2-
*
3-
* This sourcecode is derived from STMicroelectronics CubeMX generated code.
4-
* It is modified to work with mbed RTOS.
5-
*
6-
******************************************************************************
7-
* @file bsp_driver_sd.c for F4 (based on stm324x9i_eval_sd.c)
8-
* @brief This file includes a generic uSD card driver.
9-
******************************************************************************
10-
* This notice applies to any and all portions of this file
11-
* that are not between comment pairs USER CODE BEGIN and
12-
* USER CODE END. Other portions of this file, whether
13-
* inserted by the user or by software development tools
14-
* are owned by their respective copyright owners.
15-
*
16-
* Copyright (c) 2018 STMicroelectronics International N.V.
17-
* All rights reserved.
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2017 ARM Limited
183
*
19-
* Redistribution and use in source and binary forms, with or without
20-
* modification, are permitted, provided that the following conditions are met:
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
217
*
22-
* 1. Redistribution of source code must retain the above copyright notice,
23-
* this list of conditions and the following disclaimer.
24-
* 2. Redistributions in binary form must reproduce the above copyright notice,
25-
* this list of conditions and the following disclaimer in the documentation
26-
* and/or other materials provided with the distribution.
27-
* 3. Neither the name of STMicroelectronics nor the names of other
28-
* contributors to this software may be used to endorse or promote products
29-
* derived from this software without specific written permission.
30-
* 4. This software, including modifications and/or derivative works of this
31-
* software, must execute solely and exclusively on microcontroller or
32-
* microprocessor devices manufactured by or for STMicroelectronics.
33-
* 5. Redistribution and use of this software other than as permitted under
34-
* this license is void and will automatically terminate your rights under
35-
* this license.
8+
* http://www.apache.org/licenses/LICENSE-2.0
369
*
37-
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
38-
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
39-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
40-
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
41-
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
42-
* SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
43-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
45-
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
46-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
47-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
48-
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
49-
*
50-
******************************************************************************
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
5115
*/
5216

17+
5318
#include "sdio_device.h"
5419
#include "platform/mbed_error.h"
5520

@@ -534,5 +499,3 @@ void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd)
534499
{
535500
SD_DMA_WritePendingState = SD_TRANSFER_OK;
536501
}
537-
538-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

TARGET_STM/TARGET_STM32F4/sdio_device.h

Lines changed: 16 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,22 @@
1-
/**
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2017 ARM Limited
23
*
3-
* This sourcecode is derived from STMicroelectronics CubeMX generated code.
4-
* It is modified to work with mbed RTOS.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
57
*
6-
******************************************************************************
7-
* @file bsp_driver_sd.h for F4 (based on stm324x9i_eval_sd.h)
8-
* @brief This file contains the common defines and functions prototypes for
9-
* the bsp_driver_sd.c driver.
10-
******************************************************************************
11-
* This notice applies to any and all portions of this file
12-
* that are not between comment pairs USER CODE BEGIN and
13-
* USER CODE END. Other portions of this file, whether
14-
* inserted by the user or by software development tools
15-
* are owned by their respective copyright owners.
16-
*
17-
* Copyright (c) 2018 STMicroelectronics International N.V.
18-
* All rights reserved.
19-
*
20-
* Redistribution and use in source and binary forms, with or without
21-
* modification, are permitted, provided that the following conditions are met:
22-
*
23-
* 1. Redistribution of source code must retain the above copyright notice,
24-
* this list of conditions and the following disclaimer.
25-
* 2. Redistributions in binary form must reproduce the above copyright notice,
26-
* this list of conditions and the following disclaimer in the documentation
27-
* and/or other materials provided with the distribution.
28-
* 3. Neither the name of STMicroelectronics nor the names of other
29-
* contributors to this software may be used to endorse or promote products
30-
* derived from this software without specific written permission.
31-
* 4. This software, including modifications and/or derivative works of this
32-
* software, must execute solely and exclusively on microcontroller or
33-
* microprocessor devices manufactured by or for STMicroelectronics.
34-
* 5. Redistribution and use of this software other than as permitted under
35-
* this license is void and will automatically terminate your rights under
36-
* this license.
37-
*
38-
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
39-
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
40-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
41-
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
42-
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
43-
* SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
44-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
45-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
46-
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
47-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
48-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
49-
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50-
*
51-
******************************************************************************
52-
*/
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
5316

5417
/* Define to prevent recursive inclusion -------------------------------------*/
55-
#ifndef __STM32F4_SD_H
56-
#define __STM32F4_SD_H
18+
#ifndef __SDIO_DEVICE_H
19+
#define __SDIO_DEVICE_H
5720

5821
#ifdef __cplusplus
5922
extern "C"
@@ -121,6 +84,4 @@ extern "C"
12184
}
12285
#endif
12386

124-
#endif /* __STM32F4_SD_H */
125-
126-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
87+
#endif /* __SDIO_DEVICE_H */

TARGET_STM/TARGET_STM32F7/sdio_device.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,3 @@ extern "C"
8686
#endif
8787

8888
#endif /* __SDIO_DEVICE_H */
89-
90-
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)