Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
non-destructive text micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
badge fixer
non-destructive text micropython
Commits
baea43bb
Commit
baea43bb
authored
5 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
stm32/boards/B_L072Z_LRWAN1: Enable USB VCP support.
parent
64aebca1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.h
+8
-0
8 additions, 0 deletions
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.h
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.mk
+1
-0
1 addition, 0 deletions
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.mk
with
9 additions
and
0 deletions
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.h
+
8
−
0
View file @
baea43bb
...
...
@@ -19,6 +19,7 @@
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_ADC (0)
#define MICROPY_HW_ENABLE_USB (1)
#define MICROPY_HW_HAS_SWITCH (1)
// UART config
...
...
@@ -58,3 +59,10 @@
#define MICROPY_HW_LED4 (pin_B7) // Red
#define MICROPY_HW_LED_ON(pin) (mp_hal_pin_high(pin))
#define MICROPY_HW_LED_OFF(pin) (mp_hal_pin_low(pin))
// USB config (need to bridge SB15/SB16)
#define MICROPY_HW_USB_FS (1)
#define MICROPY_HW_USB_MSC (0)
#define MICROPY_HW_USB_HID (0)
#define USBD_CDC_RX_DATA_SIZE (256)
#define USBD_CDC_TX_DATA_SIZE (256)
This diff is collapsed.
Click to expand it.
ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.mk
+
1
−
0
View file @
baea43bb
MCU_SERIES
=
l0
CMSIS_MCU
=
STM32L072xx
MICROPY_FLOAT_IMPL
=
none
AF_FILE
=
boards/stm32l072_af.csv
LD_FILES
=
boards/stm32l072xz.ld boards/common_basic.ld
...
...
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