Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stm32_libraries
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
humanoides
tools
stm32_libraries
Commits
1f0d5dac
Commit
1f0d5dac
authored
6 years ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Changed the name of the USB handle.
parent
d8a68085
No related branches found
No related tags found
1 merge request
!6
Dynamixel manager
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
f4/usb/src/usb.c
+4
-4
4 additions, 4 deletions
f4/usb/src/usb.c
with
4 additions
and
4 deletions
f4/usb/src/usb.c
+
4
−
4
View file @
1f0d5dac
...
...
@@ -5,7 +5,7 @@
#define TX_DATA_SIZE 1024
// private variables
extern
PCD_HandleTypeDef
PCDHandle
;
extern
PCD_HandleTypeDef
hpcd_USB_OTG_FS
;
USBD_HandleTypeDef
USBHandle
;
TComm
*
usb_comm_dev
;
uint8_t
usb_rx_buffer
[
RX_DATA_SIZE
];
...
...
@@ -178,7 +178,7 @@ void OTG_FS_IRQHandler(void)
/* USER CODE BEGIN USB_LP_CAN1_RX0_IRQn 0 */
/* USER CODE END USB_LP_CAN1_RX0_IRQn 0 */
HAL_PCD_IRQHandler
(
&
PCDHandle
);
HAL_PCD_IRQHandler
(
&
hpcd_USB_OTG_FS
);
/* USER CODE BEGIN USB_LP_CAN1_RX0_IRQn 1 */
/* USER CODE END USB_LP_CAN1_RX0_IRQn 1 */
...
...
@@ -215,12 +215,12 @@ void usb_init(TComm *comm_dev,USBD_DescriptorsTypeDef *pdesc,USBD_ClassTypeDef *
void
usb_disconnect
(
void
)
{
HAL_PCD_DevDisconnect
(
&
PCDHandle
);
HAL_PCD_DevDisconnect
(
&
hpcd_USB_OTG_FS
);
}
void
usb_connect
(
void
)
{
HAL_PCD_DevConnect
(
&
PCDHandle
);
HAL_PCD_DevConnect
(
&
hpcd_USB_OTG_FS
);
}
/* IRQ functions */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment