60 lines
1.9 KiB
C
60 lines
1.9 KiB
C
/* add user code begin Header */
|
|
/**
|
|
**************************************************************************
|
|
* @file wk_usbfs.c
|
|
* @brief work bench config program
|
|
**************************************************************************
|
|
* Copyright notice & Disclaimer
|
|
*
|
|
* The software Board Support Package (BSP) that is made available to
|
|
* download from Artery official website is the copyrighted work of Artery.
|
|
* Artery authorizes customers to use, copy, and distribute the BSP
|
|
* software and its related documentation for the purpose of design and
|
|
* development in conjunction with Artery microcontrollers. Use of the
|
|
* software is governed by this copyright notice and the following disclaimer.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
|
|
* GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
|
|
* TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
|
|
* STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
|
|
* INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
|
|
*
|
|
**************************************************************************
|
|
*/
|
|
/* add user code end Header */
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "includes.h"
|
|
|
|
/* add user code begin 0 */
|
|
|
|
/* add user code end 0 */
|
|
|
|
/**
|
|
* @brief init usbfs function
|
|
* @param none
|
|
* @retval none
|
|
*/
|
|
void wk_usbfs_init(void)
|
|
{
|
|
/* add user code begin usbfs_init 0 */
|
|
|
|
/* add user code end usbfs_init 0 */
|
|
/* add user code begin usbfs_init 1 */
|
|
|
|
/* add user code end usbfs_init 1 */
|
|
|
|
crm_usb_interrupt_remapping_set(CRM_USB_INT73_INT74);
|
|
|
|
crm_usb_clock_source_select(CRM_USB_CLOCK_SOURCE_HICK);
|
|
|
|
/* add user code begin usbfs_init 2 */
|
|
|
|
/* add user code end usbfs_init 2 */
|
|
}
|
|
|
|
/* add user code begin 1 */
|
|
|
|
/* add user code end 1 */
|