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
081d251b
Commit
081d251b
authored
1 year ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Removed the static modifier from the F4 usb module.
parent
d7f4981b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
f4/usb/src/usb.c
+5
-5
5 additions, 5 deletions
f4/usb/src/usb.c
with
5 additions
and
5 deletions
f4/usb/src/usb.c
+
5
−
5
View file @
081d251b
...
...
@@ -22,7 +22,7 @@ unsigned short int usb_dma_phase_write_ptr;
* @param None
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
*/
static
int8_t
usb_cdc_init
(
void
)
int8_t
usb_cdc_init
(
void
)
{
/* USER CODE BEGIN 3 */
/* Set Application Buffers */
...
...
@@ -45,7 +45,7 @@ static int8_t usb_cdc_init(void)
* @param None
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
*/
static
int8_t
usb_cdc_deinit
(
void
)
int8_t
usb_cdc_deinit
(
void
)
{
/* USER CODE BEGIN 4 */
return
(
USBD_OK
);
...
...
@@ -60,7 +60,7 @@ static int8_t usb_cdc_deinit(void)
* @param length: Number of data to be sent (in bytes)
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
*/
static
int8_t
usb_cdc_control
(
uint8_t
cmd
,
uint8_t
*
pbuf
,
uint16_t
length
)
int8_t
usb_cdc_control
(
uint8_t
cmd
,
uint8_t
*
pbuf
,
uint16_t
length
)
{
/* USER CODE BEGIN 5 */
switch
(
cmd
)
...
...
@@ -138,7 +138,7 @@ static int8_t usb_cdc_control(uint8_t cmd, uint8_t* pbuf, uint16_t length)
* @param Len: Number of data received (in bytes)
* @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
*/
static
int8_t
usb_cdc_receive
(
uint8_t
*
Buf
,
uint32_t
*
Len
)
int8_t
usb_cdc_receive
(
uint8_t
*
Buf
,
uint32_t
*
Len
)
{
int
i
=
0
;
...
...
@@ -165,7 +165,7 @@ static int8_t usb_cdc_receive(uint8_t* Buf, uint32_t *Len)
/* USER CODE END 6 */
}
static
int8_t
usb_cdc_tx_complete
(
uint8_t
*
pbuf
,
uint32_t
*
Len
,
uint8_t
epnum
)
int8_t
usb_cdc_tx_complete
(
uint8_t
*
pbuf
,
uint32_t
*
Len
,
uint8_t
epnum
)
{
return
(
USBD_OK
);
}
...
...
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