summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzyh <[email protected]>2018-04-27 16:55:11 +0800
committerzyh <[email protected]>2018-04-27 16:55:11 +0800
commit6c00531044fd32b464ba680f8a71524cb75e6138 (patch)
tree6568e76dbab283d2ab451c9e93a3397a0f075ae2
parentf68c80126e8c789b935f2dfa469c1bb8e2a26ded (diff)
parent363291f8151d79ea8393fce90b58d9ac21c26ac1 (diff)
Merge remote-tracking branch 'upstream/master'
-rw-r--r--bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s4
-rw-r--r--bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s4
-rw-r--r--bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f756xx.s4
-rw-r--r--components/drivers/usb/usbhost/class/udisk.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s
index 04fc2d7f53..28b646b3cc 100644
--- a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s
+++ b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s
@@ -110,9 +110,9 @@ LoopFillZerobss:
/* Call the clock system initialization function.*/
bl SystemInit
/* Call static constructors */
- bl __libc_init_array
+/* bl __libc_init_array */
/* Call the application's entry point.*/
- bl main
+ bl entry
bx lr
.size Reset_Handler, .-Reset_Handler
diff --git a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s
index 1e51e127fa..f38586036d 100644
--- a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s
+++ b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s
@@ -110,9 +110,9 @@ LoopFillZerobss:
/* Call the clock system initialization function.*/
bl SystemInit
/* Call static constructors */
- bl __libc_init_array
+/* bl __libc_init_array */
/* Call the application's entry point.*/
- bl main
+ bl entry
bx lr
.size Reset_Handler, .-Reset_Handler
diff --git a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f756xx.s b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f756xx.s
index 738be86959..2f5dc8982a 100644
--- a/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f756xx.s
+++ b/bsp/stm32f7-disco/Libraries/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f756xx.s
@@ -110,9 +110,9 @@ LoopFillZerobss:
/* Call the clock system intitialization function.*/
bl SystemInit
/* Call static constructors */
- bl __libc_init_array
+/* bl __libc_init_array */
/* Call the application's entry point.*/
- bl main
+ bl entry
bx lr
.size Reset_Handler, .-Reset_Handler
diff --git a/components/drivers/usb/usbhost/class/udisk.c b/components/drivers/usb/usbhost/class/udisk.c
index 6a4e02fa9c..f8f47890f4 100644
--- a/components/drivers/usb/usbhost/class/udisk.c
+++ b/components/drivers/usb/usbhost/class/udisk.c
@@ -306,9 +306,9 @@ rt_err_t rt_udisk_run(struct uhintf* intf)
rt_memset(data, 0, sizeof(struct ustor_data));
data->intf = intf;
data->udisk_id = udisk_get_id();
- data->part.lock = rt_sem_create(sname, 1, RT_IPC_FLAG_FIFO);
rt_snprintf(dname, 6, "ud%d-%d", data->udisk_id, i);
rt_snprintf(sname, 8, "sem_ud%d", i);
+ data->part.lock = rt_sem_create(sname, 1, RT_IPC_FLAG_FIFO);
/* register sdcard device */
stor->dev[i].type = RT_Device_Class_Block;