You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/03/02 16:29:11 UTC

[mynewt-core] branch master updated: tinyusb: Setup pic32mz USB interrupt automatically

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 6eeb6b4  tinyusb: Setup pic32mz USB interrupt automatically
6eeb6b4 is described below

commit 6eeb6b49f3bf9e4430a33f3664ba572061ec1c34
Author: Jerzy Kasenberg <je...@apache.org>
AuthorDate: Tue Mar 1 16:59:31 2022 +0100

    tinyusb: Setup pic32mz USB interrupt automatically
    
    When hw/usb/tinyusb package is included for pic32mz based build,
    it will automatically pull pic32mz glue package that will
    setup interrupt.
    
    This is done same way as for other MCUs
---
 hw/mcu/microchip/pic32mz/syscfg.yml | 3 +++
 hw/usb/tinyusb/pkg.yml              | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/hw/mcu/microchip/pic32mz/syscfg.yml b/hw/mcu/microchip/pic32mz/syscfg.yml
index c70a30f..967f821 100644
--- a/hw/mcu/microchip/pic32mz/syscfg.yml
+++ b/hw/mcu/microchip/pic32mz/syscfg.yml
@@ -17,6 +17,9 @@
 #
 
 syscfg.defs:
+    MCU_PIC32MZ:
+        description: MCUs are of PIC32MZ family.
+        value: 1
     MCU_FLASH_MIN_WRITE_SIZE:
         description: >
             Specifies the required alignment for internal flash writes.
diff --git a/hw/usb/tinyusb/pkg.yml b/hw/usb/tinyusb/pkg.yml
index 44b5502..8238685 100644
--- a/hw/usb/tinyusb/pkg.yml
+++ b/hw/usb/tinyusb/pkg.yml
@@ -52,6 +52,8 @@ pkg.deps.MCU_STM32F1:
     - "@apache-mynewt-core/hw/usb/tinyusb/stm32_fsdev"
 pkg.deps.'(MCU_TARGET == "DA14691" || MCU_TARGET == "DA14695" || MCU_TARGET == "DA14697" || MCU_TARGET == "DA14699")':
     - "@apache-mynewt-core/hw/usb/tinyusb/da146xx"
+pkg.deps.MCU_PIC32MZ:
+    - "@apache-mynewt-core/hw/usb/tinyusb/pic32mz"
 pkg.deps.USBD_DFU_STD:
     - "@apache-mynewt-core/hw/usb/tinyusb/dfu"
 pkg.req_apis: