summaryrefslogtreecommitdiff
path: root/src/portable/chipidea/ci_fs/ci_fs_kinetis.h
blob: e9370140d8819a34103a27788baef2d69160d099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * SPDX-FileCopyrightText: Copyright (c) 2023 Ha Thach (tinyusb.org)
 * SPDX-License-Identifier: MIT
 *
 * This file is part of the TinyUSB stack.
 */

#ifndef _CI_FS_KINETIS_H
#define _CI_FS_KINETIS_H

#include "fsl_device_registers.h"

//static const ci_fs_controller_t _ci_controller[] = {
//    {.reg_base = USB0_BASE, .irqnum = USB0_IRQn}
//};

#define CI_FS_REG(_port)        ((ci_fs_regs_t*) USB0_BASE)
#define CI_REG                  CI_FS_REG(0)

void dcd_int_enable(uint8_t rhport) {
  (void) rhport;
  NVIC_EnableIRQ(USB0_IRQn);
}

void dcd_int_disable(uint8_t rhport) {
  (void) rhport;
  NVIC_DisableIRQ(USB0_IRQn);
}

#endif