Skip to content

Commit

Permalink
Merge pull request #921 from microbit-foundation/microbit-macros
Browse files Browse the repository at this point in the history
microbit: Set CDC ACM default baud rate for micro:bit v1 and v2.0.
  • Loading branch information
mathias-arm authored Jan 5, 2022
2 parents 8dff8e0 + 1776d33 commit 3dcc986
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions records/board/microbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ common:
- CDC_LED_DEF=GPIO_LED_ON
- MSC_LED_DEF=GPIO_LED_ON
- USB_PROD_STR="BBC micro:bit CMSIS-DAP"
- CDC_ACM_DEFAULT_BAUDRATE=115200
sources:
board:
- source/board/microbit.c
Expand Down
2 changes: 1 addition & 1 deletion records/board/microbitv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ common:
- DELAY_FAST_CYCLES=2U # Fast delay needed to reach 8MHz SWD clock speed
- DAP_DEFAULT_SWJ_CLOCK=8000000
- BOARD_USB_BMAXPOWER=0x96
- BOARD_EXTRA_BUFFER=100
- CDC_ACM_DEFAULT_BAUDRATE=115200
includes:
- source/board/microbitv2/
- source/board/microbitv2/kl27z/
Expand Down
1 change: 0 additions & 1 deletion records/board/microbitv2_nrf52820.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ common:
- USB_PROD_STR="BBC micro:bit CMSIS-DAP"
# - DELAY_FAST_CYCLES=2U # Fast delay needed to reach 8MHz SWD clock speed
# - DAP_DEFAULT_SWJ_CLOCK=8000000
- BOARD_EXTRA_BUFFER=100
- CDC_ACM_DEFAULT_BAUDRATE=115200
includes:
- source/board/microbitv2/
Expand Down
5 changes: 0 additions & 5 deletions source/daplink/drag-n-drop/vfs_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
//! device. This is to accomodate for hex file programming.
#define VFS_DISK_SIZE (MB(64))

// Additional buffer space to display more than 512 bytes in DETAILS.TXT
#if !defined(BOARD_EXTRA_BUFFER)
#define BOARD_EXTRA_BUFFER 0
#endif

//! @brief Constants for magic action or config files.
//!
//! The "magic files" are files with a special name that if created on the USB MSC volume, will
Expand Down

0 comments on commit 3dcc986

Please sign in to comment.