IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
Source at commit 85f60de9d52195afb3a0232a03e850d96584bb9a created 12 years 10 months ago. By Werner Almesberger, atusb/fw: use the unique serial number of the ATmega8/16/32U2 for iSerialNumber | |
---|---|
1 | /* |
2 | * fw/sernum.h - ATUSB serial number |
3 | * |
4 | * Written 2011 by Werner Almesberger |
5 | * Copyright 2011 Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | #ifndef SERNUM_H |
14 | #define SERNUM_H |
15 | |
16 | #include <stdint.h> |
17 | |
18 | #include "board.h" |
19 | |
20 | |
21 | #ifdef HAS_BOARD_SERNUM |
22 | |
23 | int sernum_get_descr(uint8_t type, uint8_t index, const uint8_t **reply, |
24 | uint8_t *size); |
25 | |
26 | #else /* HAS_BOARD_SERNUM */ |
27 | |
28 | static inline int sernum_get_descr(uint8_t type, uint8_t index, |
29 | const uint8_t **reply, uint8_t *size) |
30 | { |
31 | return 0; |
32 | } |
33 | |
34 | #endif /* !HAS_BOARD_SERNUM */ |
35 | |
36 | #endif /* !SERNUM_H */ |
37 |