BT driver added (I only converted Adela's one to STM32F2 and got rid of

FreeRTOS)
This commit is contained in:
bsongis
2015-01-31 14:20:56 +01:00
parent d7472c0b07
commit abe631b1eb
5 changed files with 176 additions and 5 deletions
+4 -2
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef fifo_h
#define fifo_h
#ifndef _FIFO_H_
#define _FIFO_H_
template <int N>
class Fifo
@@ -65,9 +65,11 @@ class Fifo
return true;
}
}
bool empty() {
return (ridx == widx);
}
void flush() {
while (!empty()) {};
}