Skip to content

Commit 586c31a

Browse files
authored
Merge pull request #3738 from jamike/fix-3684-TARGET_STM_USB_CONFIG
fix STM USB config after L4 ,F4, F7 file tree changes
2 parents cc58a7f + 1a20b4f commit 586c31a

File tree

41 files changed

+658
-29
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+658
-29
lines changed

features/unsupported/USBDevice/USBDevice/TARGET_STM/USBHAL_STM32.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@
1515
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1616
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1717
*/
18-
#if (defined (USB_STM_HAL) && defined(TARGET_STM32F4)) \
19-
|| defined(TARGET_STM32F2) || defined (TARGET_STM32F7) || defined (TARGET_STM32F3) || defined (TARGET_STM32L4)
18+
/* TARGET NOT STM does not support this HAL */
19+
#ifndef TARGET_STM
20+
#define USBSTM_HAL_UNSUPPORTED
21+
#endif
22+
/* F4 famlily wihtout USB_STM_HAL use another HAL*/
23+
#if defined(TARGET_STM) && defined(TARGET_STM32F4) && !defined(USB_STM_HAL)
24+
#define USBSTM_HAL_UNSUPPORTED
25+
#endif
2026

27+
#ifndef USBSTM_HAL_UNSUPPORTED
2128
#include "USBHAL.h"
2229
#include "pinmap.h"
2330
/* mbed endpoint definition to hal definition */

features/unsupported/USBDevice/USBDevice/USBEndpoints.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef enum {
4545
#include "USBEndpoints_KL25Z.h"
4646
#elif !defined(USB_STM_HAL) && defined(TARGET_STM32F4)
4747
#include "USBEndpoints_STM32F4.h"
48-
#elif defined (TARGET_STM32F4) || defined (TARGET_STM32F2) || defined (TARGET_STM32F7) || defined (TARGET_STM32F3) || defined(TARGET_STM32L4)
48+
#elif defined (TARGET_STM32F4) || defined (TARGET_STM32F2) || defined (TARGET_STM32F7) || defined (TARGET_STM32F3) || defined(TARGET_STM32L4) || defined(TARGET_STM32F1)
4949
#include "USBEndpoints_STM32.h"
5050
#elif defined (TARGET_RZ_A1H) || defined (TARGET_VK_RZ_A1H)
5151
#include "USBEndpoints_RZ_A1H.h"

features/unsupported/USBDevice/USBDevice/USBHAL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class USBHAL {
130130
bool (USBHAL::*epCallback[10 - 2])(void);
131131
#elif (defined(TARGET_STM32F4) && !defined(USB_STM_HAL)) || defined(TARGET_NUMAKER_PFM_M453)
132132
bool (USBHAL::*epCallback[8 - 2])(void);
133-
#elif defined(TARGET_STM32F4) || defined(TARGET_STM32F3) || defined (TARGET_STM32F2)|| defined(TARGET_STM32L4) || defined(TARGET_STM32F7)
133+
#elif defined(TARGET_STM)
134134
PCD_HandleTypeDef hpcd;
135135
#elif defined(TARGET_NUMAKER_PFM_NUC472)
136136
bool (USBHAL::*epCallback[14 - 2])(void);
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#ifndef USBHAL_STM32F103RB
19+
#define USBHAL_STM32F103RB
20+
21+
#define USBHAL_IRQn USB_LP_CAN1_RX0_IRQn
22+
23+
24+
#define NB_ENDPOINT 8
25+
/* must be multiple of 4 bytes */
26+
#define MAXTRANSFER_SIZE 0x200
27+
#define FIFO_USB_RAM_SIZE (MAXTRANSFER_SIZE+MAX_PACKET_SIZE_EP0+MAX_PACKET_SIZE_EP1+MAX_PACKET_SIZE_EP2+MAX_PACKET_SIZE_EP3)
28+
#if (FIFO_USB_RAM_SIZE > 0x500)
29+
#error "FIFO dimensioning incorrect"
30+
#endif
31+
32+
typedef struct
33+
{
34+
USBHAL *inst;
35+
void (USBHAL::*bus_reset)(void);
36+
void (USBHAL::*sof)(int frame);
37+
void (USBHAL::*connect_change)(unsigned int connected);
38+
void (USBHAL::*suspend_change)(unsigned int suspended);
39+
void (USBHAL::*ep0_setup)(void);
40+
void (USBHAL::*ep0_in)(void);
41+
void (USBHAL::*ep0_out)(void);
42+
void (USBHAL::*ep0_read)(void);
43+
bool (USBHAL::*ep_realise)(uint8_t endpoint, uint32_t maxPacket, uint32_t flags);
44+
bool (USBHAL::*epCallback[2*NB_ENDPOINT-2])(void);
45+
uint8_t epComplete[8];
46+
/* memorize dummy buffer used for reception */
47+
uint32_t pBufRx[MAXTRANSFER_SIZE>>2];
48+
uint32_t pBufRx0[MAX_PACKET_SIZE_EP0>>2];
49+
gpio_t usb_switch;
50+
}USBHAL_Private_t;
51+
52+
void HAL_PCDEx_SetConnectionState(PCD_HandleTypeDef *hpcd, uint8_t state)
53+
{
54+
USBHAL_Private_t *priv=((USBHAL_Private_t *)(hpcd->pData));
55+
gpio_write(&(priv->usb_switch),!state);
56+
}
57+
58+
uint32_t HAL_PCDEx_GetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo)
59+
{
60+
return 1024;
61+
}
62+
void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd)
63+
{
64+
USBHAL_Private_t *priv=((USBHAL_Private_t *)(hpcd->pData));
65+
USBHAL *obj= priv->inst;
66+
uint32_t sofnum = (hpcd->Instance->FNR) & USB_FNR_FN;
67+
void (USBHAL::*func)(int frame) = priv->sof;
68+
(obj->*func)(sofnum);
69+
}
70+
71+
USBHAL * USBHAL::instance;
72+
73+
USBHAL::USBHAL(void)
74+
{
75+
/* init parameter */
76+
USBHAL_Private_t *HALPriv = new(USBHAL_Private_t);
77+
/* initialized all field of init including 0 field */
78+
/* constructor does not fill with zero */
79+
hpcd.Instance = USB;
80+
/* initialized all field of init including 0 field */
81+
/* constructor does not fill with zero */
82+
memset(&hpcd.Init, 0, sizeof(hpcd.Init));
83+
hpcd.Init.dev_endpoints = NB_ENDPOINT;
84+
hpcd.Init.ep0_mps = MAX_PACKET_SIZE_EP0;
85+
hpcd.Init.phy_itface = PCD_PHY_EMBEDDED;
86+
hpcd.Init.Sof_enable = 1;
87+
hpcd.Init.speed = PCD_SPEED_FULL;
88+
/* pass instance for usage inside call back */
89+
HALPriv->inst = this;
90+
HALPriv->bus_reset = &USBHAL::busReset;
91+
HALPriv->suspend_change = &USBHAL::suspendStateChanged;
92+
HALPriv->connect_change = &USBHAL::connectStateChanged;
93+
HALPriv->sof = &USBHAL::SOF;
94+
HALPriv->ep0_setup = &USBHAL::EP0setupCallback;
95+
HALPriv->ep_realise = &USBHAL::realiseEndpoint;
96+
HALPriv->ep0_in = &USBHAL::EP0in;
97+
HALPriv->ep0_out = &USBHAL::EP0out;
98+
HALPriv->ep0_read = &USBHAL::EP0read;
99+
hpcd.pData = (void*)HALPriv;
100+
HALPriv->epCallback[0] = &USBHAL::EP1_OUT_callback;
101+
HALPriv->epCallback[1] = &USBHAL::EP1_IN_callback;
102+
HALPriv->epCallback[2] = &USBHAL::EP2_OUT_callback;
103+
HALPriv->epCallback[3] = &USBHAL::EP2_IN_callback;
104+
HALPriv->epCallback[4] = &USBHAL::EP3_OUT_callback;
105+
HALPriv->epCallback[5] = &USBHAL::EP3_IN_callback;
106+
instance = this;
107+
108+
109+
/* Configure USB VBUS GPIO */
110+
gpio_init_out(&HALPriv->usb_switch,PB_14);
111+
gpio_mode(&HALPriv->usb_switch,OpenDrain);
112+
/* Configure USB FS GPIOs */
113+
114+
/* Configure DM DP Pins
115+
* - USB-DP (D+ of the USB connector) <======> PA12 (Nucleo board)
116+
* Make sure to connect a 1.5KOhm pull up to USB-DP PA12 pin
117+
* (permanent pull-up)
118+
- USB-DM (D- of the USB connector) <======> PA11 (Nucleo board)
119+
*/
120+
121+
pin_function(PA_11, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_MODE_AF_INPUT));
122+
pin_function(PA_12, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_MODE_AF_INPUT));
123+
124+
__HAL_RCC_USB_CLK_ENABLE();
125+
126+
hpcd.State = HAL_PCD_STATE_RESET;
127+
128+
HAL_PCD_Init(&hpcd);
129+
/* hardcoded size of FIFO according definition*/
130+
HAL_PCDEx_PMAConfig(&hpcd , 0x00 , PCD_SNG_BUF, 0x30);
131+
HAL_PCDEx_PMAConfig(&hpcd , 0x80 , PCD_SNG_BUF, 0x70);
132+
HAL_PCDEx_PMAConfig(&hpcd , 0x01 , PCD_SNG_BUF, 0x90);
133+
HAL_PCDEx_PMAConfig(&hpcd , 0x81 , PCD_SNG_BUF, 0xb0);
134+
#if 0
135+
HAL_PCDEx_PMAConfig(&hpcd , 0x2, PCD_DBL_BUF, 0x018000b0);
136+
#else
137+
HAL_PCDEx_PMAConfig(&hpcd , 0x2, PCD_SNG_BUF, 0x100);
138+
#endif
139+
HAL_PCDEx_PMAConfig(&hpcd , 0x82, PCD_SNG_BUF, 0x120);
140+
141+
NVIC_SetVector(USBHAL_IRQn,(uint32_t)&_usbisr);
142+
NVIC_SetPriority( USBHAL_IRQn, 1);
143+
144+
HAL_PCD_Start(&hpcd);
145+
}
146+
147+
#endif
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHAL_STM32F103RB.h"
19+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHALHost_STM_144_64pins.h"
19+

features/unsupported/USBDevice/USBDevice/TARGET_STM/USBHAL_STM_TARGET.h renamed to targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/USBHAL_STM_TARGET.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,5 @@
1515
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1616
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1717
*/
18-
19-
#ifdef TARGET_STM32F303ZE
20-
#include "USBHAL_STM32F303ZE.h"
21-
#endif
22-
23-
#if defined(TARGET_STM32F207ZG) || \
24-
defined(TARGET_STM32F401RE) || \
25-
defined(TARGET_STM32F407VG) || \
26-
defined(TARGET_STM32F411RE) || \
27-
defined(TARGET_STM32F412ZG) || \
28-
defined(TARGET_STM32F429ZI) || \
29-
defined(TARGET_STM32F446ZE) || \
30-
defined(TARGET_STM32F746ZG) || \
31-
defined(TARGET_STM32F767ZI)
3218
#include "USBHAL_STM_144_64pins.h"
33-
#endif
34-
35-
#ifdef TARGET_STM32L476VG
36-
#include "USBHAL_STM32L476VG.h"
37-
#endif
3819

39-
#ifdef TARGET_STM32F769NI
40-
#include "USBHAL_STM32F769NI.h"
41-
#endif

features/unsupported/USBDevice/USBDevice/TARGET_STM/USBHAL_STM32F303ZE.h renamed to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/USBHAL_STM32F303ZE.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) {
6161
USBHAL *obj= priv->inst;
6262
uint32_t sofnum = (hpcd->Instance->FNR) & USB_FNR_FN;
6363
void (USBHAL::*func)(int frame) = priv->sof;
64-
/* fix me call with same frame number */
6564
(obj->*func)(sofnum);
6665
}
6766

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHAL_STM32F303ZE.h"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHAL_STM_144_64pins.h"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHALHost_DISCOF429ZI.h"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#define USBHALHOST_64pins
19+
#include "USBHALHost_STM_144_64pins.h"
20+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHAL_STM_144_64pins.h"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
19+
#include "USBHAL_STM_144_64pins.h"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* Copyright (c) 2016 mbed.org, MIT License
2+
*
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
4+
* and associated documentation files (the "Software"), to deal in the Software without
5+
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
6+
* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
7+
* Software is furnished to do so, subject to the following conditions:
8+
*
9+
* The above copyright notice and this permission notice shall be included in all copies or
10+
* substantial portions of the Software.
11+
*
12+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
13+
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17+
*/
18+
#include "USBHALHost_STM_144_64pins.h"
19+

0 commit comments

Comments
 (0)