2011-05-10 23:23:08 +03:00
|
|
|
/*
|
|
|
|
* fw/sernum.h - ATUSB serial number
|
|
|
|
*
|
2013-03-30 00:14:11 +02:00
|
|
|
* Written 2011, 2013 by Werner Almesberger
|
|
|
|
* Copyright 2011, 2013 Werner Almesberger
|
2011-05-10 23:23:08 +03:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SERNUM_H
|
|
|
|
#define SERNUM_H
|
|
|
|
|
2013-03-30 00:14:11 +02:00
|
|
|
#include <stdbool.h>
|
2011-05-10 23:23:08 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAS_BOARD_SERNUM
|
|
|
|
|
2013-03-30 00:14:11 +02:00
|
|
|
bool sernum_get_descr(uint8_t type, uint8_t index, const uint8_t **reply,
|
2011-05-10 23:23:08 +03:00
|
|
|
uint8_t *size);
|
|
|
|
|
|
|
|
#else /* HAS_BOARD_SERNUM */
|
|
|
|
|
2013-03-30 00:14:11 +02:00
|
|
|
static inline bool sernum_get_descr(uint8_t type, uint8_t index,
|
2011-05-10 23:23:08 +03:00
|
|
|
const uint8_t **reply, uint8_t *size)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* !HAS_BOARD_SERNUM */
|
|
|
|
|
|
|
|
#endif /* !SERNUM_H */
|