From 299b9fd9f88493a1a31df115e3a962a8251722a0 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Mon, 4 Oct 2021 15:31:17 -0500 Subject: [PATCH 1/3] add CONTRIBUTING info about crate metadata --- .github/pull_request_template.md | 4 ++-- CONTRIBUTING.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d9424a59381..aec9ba590a5 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -7,5 +7,5 @@ - [ ] No new warnings or clippy suggestions have been introduced (see CI or check locally) ## If Adding a new Board - - [ ] Board CI added to `crates.json` - - [ ] Board is properly following "Tier 2" conventions, unless otherwise decided to be "Tier 1" \ No newline at end of file + - [ ] Board `Cargo.toml` includes a `[package.metadata.atsamd.bsp]` with appropriate build and suppport instructions + - [ ] Board is properly following "Tier 2" conventions, unless otherwise decided to be "Tier 1" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000000..c5330f8076f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,30 @@ +### Adding a new BSP/PAC + +The build and release workflows will automatically recognize any new crate added to the repo, +but you will need to add some metadata to the crates's `Cargo.toml`. + + +```toml +# example of metadata for a BSP +[package.metadata.atsamd] +# also_build (optional): indicate if any additional crates (HAL | PAC | BSP's) should be built +# to properly test this crate +# also_build = ["crate", "crate2"] + +[package.metadata.atsamd.bsp] + +# tier (required) +# see: https://github.com/atsamd-rs/atsamd#how-to-use-a-bsp-ie-getting-started-writing-your-own-code +# for determining what tier your BSP is +tier = 2 + +# build_command (required) +# used to invoke the appropriate build command for the bsp +build_command = "cargo build --examples --features=unproven" + +[package.metadata.atsamd.pac] +# target (required): the build target, used to configure the runner properly +target = "thumbv6m-none-eabi" +# features to build the pac with +features = ["samd21g", "unproven", "usb"] +``` From e320af3f35f177a738e94123a89ce7348514ee4c Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 16 Oct 2021 09:58:21 -0500 Subject: [PATCH 2/3] add package.metadata for bsp's --- boards/arduino_mkr1000/Cargo.toml | 5 +++++ boards/arduino_mkrvidor4000/Cargo.toml | 4 ++++ boards/arduino_mkrzero/Cargo.toml | 4 ++++ boards/arduino_nano33iot/Cargo.toml | 4 ++++ boards/atsame54_xpro/Cargo.toml | 4 ++++ boards/circuit_playground_express/Cargo.toml | 4 ++++ boards/edgebadge/Cargo.toml | 4 ++++ boards/feather_m0/Cargo.toml | 5 +++++ boards/feather_m4/Cargo.toml | 4 ++++ boards/gemma_m0/Cargo.toml | 4 ++++ boards/grand_central_m4/Cargo.toml | 4 ++++ boards/itsybitsy_m0/Cargo.toml | 4 ++++ boards/itsybitsy_m4/Cargo.toml | 4 ++++ boards/metro_m0/Cargo.toml | 4 ++++ boards/metro_m4/Cargo.toml | 4 ++++ boards/p1am_100/Cargo.toml | 4 ++++ boards/pfza_proto1/Cargo.toml | 4 ++++ boards/pygamer/Cargo.toml | 4 ++++ boards/pyportal/Cargo.toml | 4 ++++ boards/qt_py_m0/Cargo.toml | 4 ++++ boards/samd11_bare/Cargo.toml | 4 ++++ boards/samd21_mini/Cargo.toml | 4 ++++ boards/serpente/Cargo.toml | 4 ++++ boards/sodaq_one/Cargo.toml | 4 ++++ boards/sodaq_sara_aff/Cargo.toml | 4 ++++ boards/trellis_m4/Cargo.toml | 4 ++++ boards/trinket_m0/Cargo.toml | 4 ++++ boards/wio_lite_mg126/Cargo.toml | 4 ++++ boards/wio_terminal/Cargo.toml | 4 ++++ boards/xiao_m0/Cargo.toml | 4 ++++ 30 files changed, 122 insertions(+) diff --git a/boards/arduino_mkr1000/Cargo.toml b/boards/arduino_mkr1000/Cargo.toml index 317a489a3e9..42de4e1be32 100644 --- a/boards/arduino_mkr1000/Cargo.toml +++ b/boards/arduino_mkr1000/Cargo.toml @@ -45,3 +45,8 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21G18A" + +[package.metadata.atsamd.bsp] + +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" diff --git a/boards/arduino_mkrvidor4000/Cargo.toml b/boards/arduino_mkrvidor4000/Cargo.toml index 96fca7385d7..632e59ace6c 100644 --- a/boards/arduino_mkrvidor4000/Cargo.toml +++ b/boards/arduino_mkrvidor4000/Cargo.toml @@ -37,3 +37,7 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21G18A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" diff --git a/boards/arduino_mkrzero/Cargo.toml b/boards/arduino_mkrzero/Cargo.toml index 7058923df92..fe77bd74118 100644 --- a/boards/arduino_mkrzero/Cargo.toml +++ b/boards/arduino_mkrzero/Cargo.toml @@ -46,6 +46,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/arduino_nano33iot/Cargo.toml b/boards/arduino_nano33iot/Cargo.toml index 818291ea3db..c056d1ea9f0 100644 --- a/boards/arduino_nano33iot/Cargo.toml +++ b/boards/arduino_nano33iot/Cargo.toml @@ -54,6 +54,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/atsame54_xpro/Cargo.toml b/boards/atsame54_xpro/Cargo.toml index 70e98211b20..86343eeebc2 100644 --- a/boards/atsame54_xpro/Cargo.toml +++ b/boards/atsame54_xpro/Cargo.toml @@ -45,6 +45,10 @@ rt = ["cortex-m-rt", "atsamd-hal/same54p-rt"] unproven = ["atsamd-hal/unproven"] usb = ["atsamd-hal/usb", "usb-device", "usbd-serial"] +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [profile.dev] incremental = false codegen-units = 1 diff --git a/boards/circuit_playground_express/Cargo.toml b/boards/circuit_playground_express/Cargo.toml index 0cfd365d9e6..c87a050d7dd 100644 --- a/boards/circuit_playground_express/Cargo.toml +++ b/boards/circuit_playground_express/Cargo.toml @@ -33,3 +33,7 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21G18A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/edgebadge/Cargo.toml b/boards/edgebadge/Cargo.toml index cd1a565bd68..6037f936cb8 100644 --- a/boards/edgebadge/Cargo.toml +++ b/boards/edgebadge/Cargo.toml @@ -69,6 +69,10 @@ opt-level = 's' [package.metadata] chip = "ATSAMD51J19A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "usb_serial" required-features = ["usb"] diff --git a/boards/feather_m0/Cargo.toml b/boards/feather_m0/Cargo.toml index a9c962a523c..3e25753c22e 100644 --- a/boards/feather_m0/Cargo.toml +++ b/boards/feather_m0/Cargo.toml @@ -93,6 +93,11 @@ opt-level = "s" [package.metadata] chip = "ATSAMD21G18A" +# for build and release automation +[package.metadata.atsamd.bsp] +tier =1 +build_command = "cargo build --examples --features=unproven,dma,usb,rtic,sdmmc,adalogger" + [[example]] name = "blinky_basic" diff --git a/boards/feather_m4/Cargo.toml b/boards/feather_m4/Cargo.toml index 639f7541705..d96bf364633 100644 --- a/boards/feather_m4/Cargo.toml +++ b/boards/feather_m4/Cargo.toml @@ -63,6 +63,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD51J19A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "pwm" required-features = ["unproven"] diff --git a/boards/gemma_m0/Cargo.toml b/boards/gemma_m0/Cargo.toml index 93dd7f0ecd3..17be5511e8e 100644 --- a/boards/gemma_m0/Cargo.toml +++ b/boards/gemma_m0/Cargo.toml @@ -35,3 +35,7 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21E18A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/grand_central_m4/Cargo.toml b/boards/grand_central_m4/Cargo.toml index 9c6e394a87e..76fc317c691 100644 --- a/boards/grand_central_m4/Cargo.toml +++ b/boards/grand_central_m4/Cargo.toml @@ -61,6 +61,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD51P20A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/itsybitsy_m0/Cargo.toml b/boards/itsybitsy_m0/Cargo.toml index d4499c9b879..dde3d208bc4 100644 --- a/boards/itsybitsy_m0/Cargo.toml +++ b/boards/itsybitsy_m0/Cargo.toml @@ -54,6 +54,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/itsybitsy_m4/Cargo.toml b/boards/itsybitsy_m4/Cargo.toml index 812c4cc56d6..1c69725a19b 100644 --- a/boards/itsybitsy_m4/Cargo.toml +++ b/boards/itsybitsy_m4/Cargo.toml @@ -66,6 +66,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD51G19A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb,use_rtt" + [[example]] name = "blinky_basic" diff --git a/boards/metro_m0/Cargo.toml b/boards/metro_m0/Cargo.toml index f9090a932c1..932dceee41f 100644 --- a/boards/metro_m0/Cargo.toml +++ b/boards/metro_m0/Cargo.toml @@ -68,6 +68,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=unproven,usb,rtic" + [[example]] name = "usb_echo" required-features = ["usb", "unproven"] diff --git a/boards/metro_m4/Cargo.toml b/boards/metro_m4/Cargo.toml index fc65909a675..b353a6675c8 100644 --- a/boards/metro_m4/Cargo.toml +++ b/boards/metro_m4/Cargo.toml @@ -65,6 +65,10 @@ opt-level = 3 [package.metadata] chip = "ATSAMD51J19A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/p1am_100/Cargo.toml b/boards/p1am_100/Cargo.toml index df52305256e..ab369771bfd 100644 --- a/boards/p1am_100/Cargo.toml +++ b/boards/p1am_100/Cargo.toml @@ -70,6 +70,10 @@ debug = true lto = true opt-level = "s" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/pfza_proto1/Cargo.toml b/boards/pfza_proto1/Cargo.toml index aa48275ada4..39a62f605c3 100644 --- a/boards/pfza_proto1/Cargo.toml +++ b/boards/pfza_proto1/Cargo.toml @@ -46,3 +46,7 @@ opt-level = "s" # for cargo flash [package.metadata] chip = "ATSAME54P20A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/pygamer/Cargo.toml b/boards/pygamer/Cargo.toml index e896f4f259e..5d9ce055320 100644 --- a/boards/pygamer/Cargo.toml +++ b/boards/pygamer/Cargo.toml @@ -77,6 +77,10 @@ opt-level = 's' [package.metadata] chip = "ATSAMD51J19A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=unproven,usb,math" + [[example]] name = "usb_serial" required-features = ["usb"] diff --git a/boards/pyportal/Cargo.toml b/boards/pyportal/Cargo.toml index 0585385c317..42b9a31b9d2 100644 --- a/boards/pyportal/Cargo.toml +++ b/boards/pyportal/Cargo.toml @@ -56,3 +56,7 @@ opt-level = "s" # for cargo flash [package.metadata] chip = "ATSAMD51J20A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/qt_py_m0/Cargo.toml b/boards/qt_py_m0/Cargo.toml index 57cab447c3b..da023a2b346 100644 --- a/boards/qt_py_m0/Cargo.toml +++ b/boards/qt_py_m0/Cargo.toml @@ -32,3 +32,7 @@ rt = ["cortex-m-rt", "atsamd-hal/samd21e-rt"] unproven = ["atsamd-hal/unproven"] use_semihosting = [] usb = ["atsamd-hal/usb", "usb-device", "usbd-serial"] + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" diff --git a/boards/samd11_bare/Cargo.toml b/boards/samd11_bare/Cargo.toml index f2aacdacbfd..c9db295e105 100644 --- a/boards/samd11_bare/Cargo.toml +++ b/boards/samd11_bare/Cargo.toml @@ -50,6 +50,10 @@ debug = true [package.metadata] chip = "ATSAMD11C14A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=unproven,rt,use_semihosting" + [[example]] name = "adc" required-features = ["unproven", "rt", "use_semihosting"] diff --git a/boards/samd21_mini/Cargo.toml b/boards/samd21_mini/Cargo.toml index f2eea87ebb2..61cb26f440e 100644 --- a/boards/samd21_mini/Cargo.toml +++ b/boards/samd21_mini/Cargo.toml @@ -38,3 +38,7 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21G18A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/serpente/Cargo.toml b/boards/serpente/Cargo.toml index bde385ad507..3b74d8843d8 100644 --- a/boards/serpente/Cargo.toml +++ b/boards/serpente/Cargo.toml @@ -36,6 +36,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21E18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" + [[example]] name = "blinky_basic" diff --git a/boards/sodaq_one/Cargo.toml b/boards/sodaq_one/Cargo.toml index dc5bcb5de41..eaf85404073 100644 --- a/boards/sodaq_one/Cargo.toml +++ b/boards/sodaq_one/Cargo.toml @@ -40,6 +40,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" + [profile.dev] incremental = false codegen-units = 1 diff --git a/boards/sodaq_sara_aff/Cargo.toml b/boards/sodaq_sara_aff/Cargo.toml index 82ed496b211..a6faf76f2a0 100644 --- a/boards/sodaq_sara_aff/Cargo.toml +++ b/boards/sodaq_sara_aff/Cargo.toml @@ -35,3 +35,7 @@ use_semihosting = [] # for cargo flash [package.metadata] chip = "ATSAMD21J18A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven" diff --git a/boards/trellis_m4/Cargo.toml b/boards/trellis_m4/Cargo.toml index 2a8259c7a80..6e81bade056 100644 --- a/boards/trellis_m4/Cargo.toml +++ b/boards/trellis_m4/Cargo.toml @@ -69,6 +69,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD51G19A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=keypad-unproven" + [[example]] name = "neopixel_accel" required-features = ["adxl343"] diff --git a/boards/trinket_m0/Cargo.toml b/boards/trinket_m0/Cargo.toml index 2e85fffd82f..433fda572b9 100644 --- a/boards/trinket_m0/Cargo.toml +++ b/boards/trinket_m0/Cargo.toml @@ -48,6 +48,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21E18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "blinky_basic" diff --git a/boards/wio_lite_mg126/Cargo.toml b/boards/wio_lite_mg126/Cargo.toml index 2dbf7401483..404972cb804 100644 --- a/boards/wio_lite_mg126/Cargo.toml +++ b/boards/wio_lite_mg126/Cargo.toml @@ -57,6 +57,10 @@ use_semihosting = [] [package.metadata] chip = "ATSAMD21G18A" +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=unproven,usb" + [[example]] name = "pwm" required-features = ["unproven"] diff --git a/boards/wio_terminal/Cargo.toml b/boards/wio_terminal/Cargo.toml index 9f173fd44fe..da0744fc731 100644 --- a/boards/wio_terminal/Cargo.toml +++ b/boards/wio_terminal/Cargo.toml @@ -73,6 +73,10 @@ opt-level = "s" [package.metadata] chip = "ATSAMD51P19A" +[package.metadata.atsamd.bsp] +tier = 1 +build_command = "cargo build --examples --features=usb" + [[example]] name = "blinky" diff --git a/boards/xiao_m0/Cargo.toml b/boards/xiao_m0/Cargo.toml index 3020dc6bf53..aa19f8a1b11 100644 --- a/boards/xiao_m0/Cargo.toml +++ b/boards/xiao_m0/Cargo.toml @@ -53,3 +53,7 @@ opt-level = "s" # for cargo flash [package.metadata] chip = "ATSAMD51P19A" + +[package.metadata.atsamd.bsp] +tier = 2 +build_command = "cargo build --examples --features=usb" From 00cdd7a2c3129920061bf15792ecc1c3346140d1 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Sat, 16 Oct 2021 10:17:24 -0500 Subject: [PATCH 3/3] add atsamd pac metadata --- pac/atsamd11c/Cargo.toml | 4 ++++ pac/atsamd11d/Cargo.toml | 4 ++++ pac/atsamd21e/Cargo.toml | 4 ++++ pac/atsamd21g/Cargo.toml | 4 ++++ pac/atsamd21j/Cargo.toml | 4 ++++ pac/atsamd51g/Cargo.toml | 4 ++++ pac/atsamd51j/Cargo.toml | 4 ++++ pac/atsamd51n/Cargo.toml | 4 ++++ pac/atsamd51p/Cargo.toml | 4 ++++ 9 files changed, 36 insertions(+) diff --git a/pac/atsamd11c/Cargo.toml b/pac/atsamd11c/Cargo.toml index d66b35641bc..4903a71ae27 100644 --- a/pac/atsamd11c/Cargo.toml +++ b/pac/atsamd11c/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv6m-none-eabi" +features = ["samd11c", "unproven"] diff --git a/pac/atsamd11d/Cargo.toml b/pac/atsamd11d/Cargo.toml index 6dc005ea40b..4e3cc89622d 100644 --- a/pac/atsamd11d/Cargo.toml +++ b/pac/atsamd11d/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv6m-none-eabi" +features = ["samd11d", "unproven"] diff --git a/pac/atsamd21e/Cargo.toml b/pac/atsamd21e/Cargo.toml index bd6226cbf70..19e06ecaac6 100644 --- a/pac/atsamd21e/Cargo.toml +++ b/pac/atsamd21e/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv6m-none-eabi" +features = ["samd21e", "unproven", "usb"] diff --git a/pac/atsamd21g/Cargo.toml b/pac/atsamd21g/Cargo.toml index 23026a57363..5e253f6250a 100644 --- a/pac/atsamd21g/Cargo.toml +++ b/pac/atsamd21g/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv6m-none-eabi" +features = ["samd21g", "unproven", "usb"] diff --git a/pac/atsamd21j/Cargo.toml b/pac/atsamd21j/Cargo.toml index 1acfe83a218..7b19414d368 100644 --- a/pac/atsamd21j/Cargo.toml +++ b/pac/atsamd21j/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv6m-none-eabi" +features = ["samd21j", "unproven", "usb"] diff --git a/pac/atsamd51g/Cargo.toml b/pac/atsamd51g/Cargo.toml index f423d312e43..20d34c40e41 100644 --- a/pac/atsamd51g/Cargo.toml +++ b/pac/atsamd51g/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv7em-none-eabihf" +features = ["samd51g", "unproven", "usb"] diff --git a/pac/atsamd51j/Cargo.toml b/pac/atsamd51j/Cargo.toml index cc2b4faec44..7389302ffb7 100644 --- a/pac/atsamd51j/Cargo.toml +++ b/pac/atsamd51j/Cargo.toml @@ -19,3 +19,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv7em-none-eabihf" +features = ["samd51j", "unproven", "usb"] diff --git a/pac/atsamd51n/Cargo.toml b/pac/atsamd51n/Cargo.toml index 2f75bda4d60..ad977b3f3a9 100644 --- a/pac/atsamd51n/Cargo.toml +++ b/pac/atsamd51n/Cargo.toml @@ -23,3 +23,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv7em-none-eabihf" +features = ["samd51n", "unproven", "usb"] diff --git a/pac/atsamd51p/Cargo.toml b/pac/atsamd51p/Cargo.toml index 21afc726388..3575a6e7689 100644 --- a/pac/atsamd51p/Cargo.toml +++ b/pac/atsamd51p/Cargo.toml @@ -20,3 +20,7 @@ optional = true [features] rt = ["cortex-m-rt/device"] + +[package.metadata.atsamd.pac] +target = "thumbv7em-none-eabihf" +features = ["samd51p", "unproven", "usb"]