Date:2011-02-10 11:24:37 (8 years 7 months ago)
Author:Werner Almesberger
Commit:dcfa689936afb14fd0fdf804ba0aad08fa03f8f9
Message: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
Files: atusb/fw/include/atusb/ep0.h (2 diffs)
atusb/fw2/atusb.c (1 diff)
atusb/fw2/ep0.c (1 diff)

Change Details

atusb/fw/include/atusb/ep0.h
11/*
22 * include/atusb/ep0.h - EP0 extension protocol
33 *
4 * Written 2008-2010 by Werner Almesberger
5 * Copyright 2008-2010 Werner Almesberger
4 * Written 2008-2011 by Werner Almesberger
5 * Copyright 2008-2011 Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
4545
4646#define HW_TYPE_100813 0 /* 2010-08-13 */
4747#define HW_TYPE_101216 1 /* 2010-12-16 */
48#define HW_TYPE_110131 2 /* 2011-01-31, ATmega32U2-based */
4849
4950
5051/*
atusb/fw2/atusb.c
1010#include "at86rf230.h"
1111#include "board.h"
1212#include "spi.h"
13
14
15void ep0_init(void);
13#include "atusb/ep0.h"
1614
1715
1816int main(void)
atusb/fw2/ep0.c
3131#include "spi.h"
3232
3333
34#define HW_TYPE 2 /* @@@ needs more work */
34#define HW_TYPE HW_TYPE_110131
3535static const char *build_date = "today";
3636static unsigned build_number = 42;
3737

Archive Download the corresponding diff file



interactive