summaryrefslogtreecommitdiff
path: root/firmware/src/os/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/os/main.c')
-rw-r--r--firmware/src/os/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/src/os/main.c b/firmware/src/os/main.c
index 3e05a7d..ce611bc 100644
--- a/firmware/src/os/main.c
+++ b/firmware/src/os/main.c
@@ -24,9 +24,18 @@
#include <os/led.h>
#include <os/main.h>
#include <os/power.h>
+#include <os/usbcmd_generic.h>
#include <os/pcd_enumerate.h>
#include "../openpcd.h"
+#include <compile.h>
+
+const struct openpcd_compile_version opcd_version = {
+ .svnrev = COMPILE_SVNREV,
+ .date = COMPILE_DATE,
+ .by = COMPILE_BY,
+};
+
int main(void)
{
/* initialize LED and debug unit */
@@ -34,10 +43,13 @@ int main(void)
AT91F_DBGU_Init();
AT91F_PIOA_CfgPMC();
+
/* call application specific init function */
_init_func();
/* initialize USB */
+ req_ctx_init();
+ usbcmd_gen_init();
udp_open();
// Enable User Reset and set its minimal assertion to 960 us
personal git repositories of Harald Welte. Your mileage may vary