Skip to content

Commit 6039780

Browse files
committed
samhs fixups
Signed-off-by: Rafael Silva <[email protected]>
1 parent be531f7 commit 6039780

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/portable/microchip/samhs/dcd_samhs.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@
2727

2828
#include "tusb_option.h"
2929

30-
// #if CFG_TUD_ENABLED && TU_CHECK_MCU(OPT_MCU_SAMX7X, OPT_MCU_SAM3U)
31-
#if 1
30+
#if CFG_TUD_ENABLED && TU_CHECK_MCU(OPT_MCU_SAMX7X)
3231

3332
#include "device/dcd.h"
3433
#include "sam.h"
3534

36-
// #if TU_CHECK_MCU(OPT_MCU_SAMX7X)
35+
#if TU_CHECK_MCU(OPT_MCU_SAMX7X)
3736
#include "samhs_samx7x.h"
38-
// #endif
37+
#endif
3938
//--------------------------------------------------------------------+
4039
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
4140
//--------------------------------------------------------------------+

src/portable/microchip/samhs/samhs_samx7x.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,11 +2089,11 @@ typedef struct
20892089
__O uint32_t SAMHS_SFR; /**< (USBHS Offset: 0x80C) General Status Set Register */
20902090
} samhs_reg_t;
20912091

2092-
#define SAMHS_BASE_REG (0x40038000U) /**< \brief (USBHS) Base Address */
2092+
#define SAMHS_BASE_REG (0x40038000U) /**< \brief (USBHS) Base Address */
20932093

2094-
#define EP_MAX 10
2094+
#define EP_MAX 10
20952095

2096-
#define FIFO_RAM_ADDR 0xA0100000U
2096+
#define FIFO_RAM_ADDR (0xA0100000U)
20972097

20982098
// Errata: The DMA feature is not available for Pipe/Endpoint 7
20992099
#define EP_DMA_SUPPORT(epnum) (epnum >= 1 && epnum <= 6)

0 commit comments

Comments
 (0)