forked from PAWPAW-Mirror/lib_xua
Initial move to lib structure
This commit is contained in:
34
lib_xua/module_build_info
Normal file
34
lib_xua/module_build_info
Normal file
@@ -0,0 +1,34 @@
|
||||
# You can set flags specifically for your module by using the MODULE_XCC_FLAGS
|
||||
# variable. So the following
|
||||
#
|
||||
# MODULE_XCC_FLAGS = $(XCC_FLAGS) -O3
|
||||
#
|
||||
# specifies that everything in the modules should have the application
|
||||
# build flags with -O3 appended (so the files will build at
|
||||
# optimization level -O3).
|
||||
#
|
||||
# You can also set MODULE_XCC_C_FLAGS, MODULE_XCC_XC_FLAGS etc..
|
||||
|
||||
MODULE_XCC_FLAGS = $(XCC_FLAGS) -O3 -DREF_CLK_FREQ=100 -fasm-linenum -fcomment-asm -fsubword-select -DXUD_FULL_PIDTABLE=1
|
||||
|
||||
OPTIONAL_HEADERS += xua_conf.h
|
||||
|
||||
VERSION = 1.0.0
|
||||
|
||||
DEPENDENT_MODULES = lib_logging(>=2.0.0) lib_xassert(>=2.0.0) lib_xud(>=1.0.0)
|
||||
|
||||
|
||||
#usb_audio
|
||||
EXCLUDE_FILES += descriptors_2.rst
|
||||
XCC_FLAGS_endpoint0.c = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_dbcalc.xc = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_audiorequests.xc = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_flashlib_user.c = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_audioports.c = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_audioports.xc = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
|
||||
#dfu
|
||||
XCC_FLAGS_dfu.xc = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
XCC_FLAGS_flash_interface.c = -Os -mno-dual-issue $(XCC_FLAGS)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#define _DFU_H_ 1
|
||||
|
||||
#include <xccompat.h>
|
||||
#include "usb_std_descriptors.h"
|
||||
#include "xud_device.h"
|
||||
|
||||
#ifndef DFU_VENDOR_ID
|
||||
#error DFU_VENDOR_ID not defined!
|
||||
@@ -3,13 +3,10 @@
|
||||
#include "devicedefines.h"
|
||||
|
||||
#ifndef NO_USB
|
||||
#include "xud.h"
|
||||
#include "usb_std_requests.h"
|
||||
|
||||
#include "xud_device.h"
|
||||
#include "dfu_types.h"
|
||||
#include "flash_interface.h"
|
||||
|
||||
#include <dfu_interface.h>
|
||||
#include "dfu_interface.h"
|
||||
|
||||
#if (XUD_SERIES_SUPPORT==4)
|
||||
/* xCORE-200 */
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef __DFU_INTERFACE_H__
|
||||
#define __DFU_INTERFACE_H__
|
||||
|
||||
#include "usb_std_requests.h"
|
||||
#include "xud_device.h"
|
||||
|
||||
interface i_dfu
|
||||
{
|
||||
@@ -4,8 +4,7 @@
|
||||
*/
|
||||
#ifndef NO_USB
|
||||
#include <xs1.h>
|
||||
#include "xud.h"
|
||||
#include "usb_std_requests.h"
|
||||
#include "xud_device.h"
|
||||
#include "usbaudio20.h"
|
||||
#include "usbaudio10.h"
|
||||
#include "dbcalc.h"
|
||||
@@ -12,9 +12,8 @@
|
||||
#include "descriptor_defs.h"
|
||||
#include "usbaudio20.h" /* Defines from the USB Audio 2.0 Specifications */
|
||||
#include "usbaudiocommon.h"
|
||||
#include "usb_std_descriptors.h"
|
||||
#include "xud_device.h"
|
||||
#include "usbaudio20.h" /* Defines from USB Audio 2.0 spec */
|
||||
#include "usb_defs.h"
|
||||
|
||||
#ifdef IAP_EA_NATIVE_TRANS
|
||||
#include "iap2.h" /* Defines iAP EA Native Transport protocol name */
|
||||
@@ -8,12 +8,9 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#ifndef NO_USB
|
||||
#include "xud.h" /* XUD user defines and functions */
|
||||
#include "usb_std_requests.h"
|
||||
#include "xud_device.h" /* Standard descriptor requests */
|
||||
#include "usbaudio20.h" /* Defines from USB Audio 2.0 spec */
|
||||
|
||||
#include "devicedefines.h"
|
||||
#include "usb_device.h" /* Standard descriptor requests */
|
||||
#include "descriptors.h" /* This devices descriptors */
|
||||
#include "commands.h"
|
||||
#include "audiostream.h"
|
||||
@@ -3,8 +3,7 @@
|
||||
|
||||
#include <xccompat.h>
|
||||
#include "devicedefines.h"
|
||||
#include "xud.h"
|
||||
#include "usb_std_requests.h"
|
||||
#include "xud_device.h"
|
||||
|
||||
/* Functions that handle vustomer vendor requests.
|
||||
*
|
||||
@@ -322,11 +322,11 @@ VENDOR_REQUESTS_PARAMS_DEC_
|
||||
#endif
|
||||
/* USB Interface Core */
|
||||
#if (AUDIO_CLASS==2)
|
||||
XUD_Manager(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
|
||||
XUD_Main(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
|
||||
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
||||
clk, 1, XUD_SPEED_HS, XUD_PWR_CFG);
|
||||
#else
|
||||
XUD_Manager(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
|
||||
XUD_Main(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
|
||||
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
||||
clk, 1, XUD_SPEED_FS, XUD_PWR_CFG);
|
||||
#endif
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user