usb: add empty usb implementation
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ebed2b919f
commit
b31c0213b5
14
include/usb.h
Normal file
14
include/usb.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef __USB_H
|
||||
#define __USB_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void usb_isr(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
@ -1,7 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <irq.h>
|
||||
#include <printf.h>
|
||||
#include <uart.h>
|
||||
#include <irq.h>
|
||||
#include <usb.h>
|
||||
|
||||
#include <generated/csr.h>
|
||||
|
||||
@ -10,7 +11,10 @@ void isr(void) {
|
||||
|
||||
irqs = irq_pending() & irq_getmask();
|
||||
|
||||
if(irqs & (1 << UART_INTERRUPT))
|
||||
if (irqs & (1 << USB_INTERRUPT))
|
||||
usb_isr();
|
||||
|
||||
if (irqs & (1 << UART_INTERRUPT))
|
||||
uart_isr();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user