-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added missing static keyword to inline definitions * Update MIPS requirements in docs to match testing * Removed use definition and use of REF_CLK_FREQ in favour of PLATFORM_REFERENCE_MHZ from platform.h * Remove implementations for inlined functions when XUD_WEAK_API=1 * Changelog update and version bump
- Loading branch information
Showing
9 changed files
with
41 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
// Copyright 2015-2022 XMOS LIMITED. | ||
// Copyright 2015-2023 XMOS LIMITED. | ||
// This Software is subject to the terms of the XMOS Public Licence: Version 1. | ||
#ifndef _XUD_USB_DEFINES_H_ | ||
#define _XUD_USB_DEFINES_H_ | ||
#ifndef _XUD_TIMING_DEFINES_H_ | ||
#define _XUD_TIMING_DEFINES_H_ | ||
|
||
#ifndef REF_CLK_FREQ | ||
#define REF_CLK_FREQ (100) | ||
#endif | ||
#include <platform.h> | ||
|
||
// Defines relating to USB/ULPI/UTMI/Phy specs | ||
#ifndef SUSPEND_TIMEOUT_us | ||
#define SUSPEND_TIMEOUT_us (3000) | ||
#endif | ||
#define SUSPEND_TIMEOUT_ticks (SUSPEND_TIMEOUT_us * REF_CLK_FREQ) | ||
#define SUSPEND_TIMEOUT_ticks (SUSPEND_TIMEOUT_us * PLATFORM_REFERENCE_MHZ) | ||
|
||
// Device attach timing defines | ||
#define T_UCHEND_T_UCH_us (1000000) // 1000ms | ||
#define T_UCHEND_T_UCH (T_UCHEND_T_UCH_us * REF_CLK_FREQ) | ||
#define T_UCHEND_T_UCH (T_UCHEND_T_UCH_us * PLATFORM_REFERENCE_MHZ) | ||
|
||
#ifndef T_FILT_us | ||
#define T_FILT_us (3) // 2.5us | ||
#endif | ||
#define T_FILT_ticks (T_FILT_us * REF_CLK_FREQ) | ||
#define T_FILT_ticks (T_FILT_us * PLATFORM_REFERENCE_MHZ) | ||
|
||
#ifndef SUSPEND_T_WTWRSTHS_us | ||
#define SUSPEND_T_WTWRSTHS_us (200) // 200us Time beforechecking for J after asserting XcvrSelect and Termselect: T_WTRSTHS: 100-875us | ||
#endif | ||
#define SUSPEND_T_WTWRSTHS_ticks (SUSPEND_T_WTWRSTHS_us * REF_CLK_FREQ) | ||
#define SUSPEND_T_WTWRSTHS_ticks (SUSPEND_T_WTWRSTHS_us * PLATFORM_REFERENCE_MHZ) | ||
|
||
#define OUT_TIMEOUT_us (500) // How long we wait for data after OUT token | ||
#define OUT_TIMEOUT_ticks (OUT_TIMEOUT_us * REF_CLK_FREQ) | ||
#define OUT_TIMEOUT_ticks (OUT_TIMEOUT_us * PLATFORM_REFERENCE_MHZ) | ||
#define TX_HANDSHAKE_TIMEOUT_us (5) // How long we wait for handshake after sending tx data | ||
#define TX_HANDSHAKE_TIMEOUT_ticks (TX_HANDSHAKE_TIMEOUT_us * REF_CLK_FREQ) | ||
#define TX_HANDSHAKE_TIMEOUT_ticks (TX_HANDSHAKE_TIMEOUT_us * PLATFORM_REFERENCE_MHZ) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
LIBDIR = ../../lib_xud | ||
|
||
all: | ||
xcc -target=XCORE-200-EXPLORER -Os -D XUD_SERIES_SUPPORT=4 -D REF_CLK_FREQ=100 -D T_WTRSTFS=0 -D SUSPEND_VBUS_POLL_TIMER_TICKS=0 -D write_sswitch_reg=test_write_sswitch_reg -I read_sswitch_reg=test_read_sswitch_reg -I ${LIBDIR}/src/user -I ${LIBDIR}/api ${LIBDIR}/src/core/XUD_Main.xc ${LIBDIR}/src/core/XUD_PowerSig.xc ${LIBDIR}/src/core/XUD_Ports.xc test.xc strings.xc stubs.xc | ||
xcc -target=XCORE-200-EXPLORER -Os -D XUD_SERIES_SUPPORT=4 -DT_WTRSTFS=0 -D SUSPEND_VBUS_POLL_TIMER_TICKS=0 -D write_sswitch_reg=test_write_sswitch_reg -I read_sswitch_reg=test_read_sswitch_reg -I ${LIBDIR}/src/user -I ${LIBDIR}/api ${LIBDIR}/src/core/XUD_Main.xc ${LIBDIR}/src/core/XUD_PowerSig.xc ${LIBDIR}/src/core/XUD_Ports.xc test.xc strings.xc stubs.xc | ||
xobjdump -d a.xe > objdump |