1
0
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:
Werner Almesberger
2011-09-03 06:14:29 -03:00
parent 14f70fd819
commit e73383b7d8
6 changed files with 169 additions and 0 deletions

35
labsw/fw/labsw.c Normal file
View 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();
}
}