|
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 |
18 | 3 | *
|
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 |
21 | 7 | *
|
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 |
36 | 9 | *
|
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. |
51 | 15 | */
|
52 | 16 |
|
| 17 | + |
53 | 18 | #include "sdio_device.h"
|
54 | 19 | #include "platform/mbed_error.h"
|
55 | 20 |
|
@@ -534,5 +499,3 @@ void HAL_SD_TxCpltCallback(SD_HandleTypeDef *hsd)
|
534 | 499 | {
|
535 | 500 | SD_DMA_WritePendingState = SD_TRANSFER_OK;
|
536 | 501 | }
|
537 |
| - |
538 |
| -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
0 commit comments