1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 00:14:59 +02:00

atusb/fw2/: assigned hardware revision code point; some cleanup

- fw/include/atusb/ep0.h (HW_TYPE_110131): defined hardware type 2 for
  ATmega32U2-based boards
- fw/ep0.c: define HW_TYPE as HW_TYPE_110131, not directly as 2
- fw2/atusb.c: include atusb/ep0.h instead of declaring ep0_init locally
This commit is contained in:
Werner Almesberger 2011-02-10 07:24:37 -03:00
parent 4f0af39d4d
commit dcfa689936
3 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,8 @@
/* /*
* include/atusb/ep0.h - EP0 extension protocol * include/atusb/ep0.h - EP0 extension protocol
* *
* Written 2008-2010 by Werner Almesberger * Written 2008-2011 by Werner Almesberger
* Copyright 2008-2010 Werner Almesberger * Copyright 2008-2011 Werner Almesberger
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -45,6 +45,7 @@
#define HW_TYPE_100813 0 /* 2010-08-13 */ #define HW_TYPE_100813 0 /* 2010-08-13 */
#define HW_TYPE_101216 1 /* 2010-12-16 */ #define HW_TYPE_101216 1 /* 2010-12-16 */
#define HW_TYPE_110131 2 /* 2011-01-31, ATmega32U2-based */
/* /*

View File

@ -10,9 +10,7 @@
#include "at86rf230.h" #include "at86rf230.h"
#include "board.h" #include "board.h"
#include "spi.h" #include "spi.h"
#include "atusb/ep0.h"
void ep0_init(void);
int main(void) int main(void)

View File

@ -31,7 +31,7 @@
#include "spi.h" #include "spi.h"
#define HW_TYPE 2 /* @@@ needs more work */ #define HW_TYPE HW_TYPE_110131
static const char *build_date = "today"; static const char *build_date = "today";
static unsigned build_number = 42; static unsigned build_number = 42;