mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
Make wait_for_interrupt available to all atspi tools.
- tools/atspi-txrx/atspi-txrx.c: cleaned up includes - we need stdint.h but we don't need atspi/ep0.h - tools/atspi-txrx/atspi-txrx.c (wait_for_interrupt), tools/include/misctxrx.h (wait_for_interrupt), tools/lib/Makefile (OBJS), tools/lib/misctxrx.c (wait_for_interrupt): moved wait_for_interrupt from atspi-txrx to the atspi library, so that we can share it
This commit is contained in:
24
tools/include/misctxrx.h
Normal file
24
tools/include/misctxrx.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* include/misctxrx.h - Miscellaenous transceiver helper functions
|
||||
*
|
||||
* Written 2010 by Werner Almesberger
|
||||
* Copyright 2010 Werner Almesberger
|
||||
*
|
||||
* 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 MISCTXRX_H
|
||||
#define MISCTXRX_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "atspi.h"
|
||||
|
||||
|
||||
uint8_t wait_for_interrupt(struct atspi_dsc *dsc, uint8_t wait_for,
|
||||
uint8_t ignore, int sleep_us, int timeout);
|
||||
|
||||
#endif /* !MISCTXRX_H */
|
||||
Reference in New Issue
Block a user