mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
labsw/sw/: basic firmware - just enumerates
This commit is contained in:
35
labsw/fw/labsw.c
Normal file
35
labsw/fw/labsw.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* labsw.c - Lab Switch initialization and main loop
|
||||
*
|
||||
* Written 2011 by Werner Almesberger
|
||||
* Copyright 2011 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "regs.h"
|
||||
#include "usb.h"
|
||||
|
||||
|
||||
static void init_io(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void main(void)
|
||||
{
|
||||
init_io();
|
||||
|
||||
usb_init();
|
||||
// ep0_init();
|
||||
|
||||
while (1) {
|
||||
usb_poll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user