Skip to content

Commit 8f27513

Browse files
committed
Relocate RingBuff.h to VirtualSerial folder.
1 parent 73a655a commit 8f27513

File tree

1 file changed

+4
-7
lines changed
  • targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial

1 file changed

+4
-7
lines changed

targets/TARGET_Infineon/tools/RingBuff.h renamed to targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial/RingBuff.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17-
// library provided by https://github.com/wizard97/Embedded_RingBuf_CPP
18-
19-
#ifndef MBED_OS_CIRCULAR_BUFFER_H_
20-
#define MBED_OS_CIRCULAR_BUFFER_H_
17+
#ifndef RING_BUFF_H_
18+
#define RING_BUFF_H_
2119

2220
#include "mbed.h"
23-
#include "rtos.h"
2421

2522
template <typename Type, size_t MaxElements>
2623
class RingBuff
@@ -38,7 +35,7 @@ RingBuff()
3835
}
3936

4037
/**
41-
* Add element obj to the buffer
38+
* Add element obj to the buffer
4239
* Return: true on success
4340
*/
4441
bool add(const Type &obj)
@@ -174,6 +171,6 @@ size_t _numElements;
174171

175172
};
176173

177-
#endif /* MBED_OS_CIRCULAR_BUFFER_H_ */
174+
#endif /* RING_BUFF_H_ */
178175

179176
/*EOF*/

0 commit comments

Comments
 (0)