Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: FreeMASTER_HelloWorld FreeMASTER_HelloWorld2 FreeMASTER_HelloWorld3
Fork of freemaster_lib by
Diff: class/freemaster_class.cpp
- Revision:
- 11:d1de61dc3766
- Parent:
- 10:ee28cf2ae687
- Child:
- 14:b2f3414a55d3
--- a/class/freemaster_class.cpp Wed Jun 04 14:48:34 2014 +0000
+++ b/class/freemaster_class.cpp Wed Jun 04 17:06:21 2014 +0000
@@ -1,12 +1,10 @@
#include "mbed.h"
-#include "freemaster_cfg.h"
#include "freemaster_class.h"
#if DEVICE_SERIAL
#define FMSTR_USE_TSA_DYNAMIC 1
#define FMSTR_REC_OWNBUFF 1
-uint8_t tsabuff[200];
namespace mbed {
Freemaster::Freemaster(PinName tx, PinName rx, uint32_t tsaMembers, uint32_t recBufferSize, uint32_t flags) {
serial_init(&_serial, tx, rx);
@@ -21,8 +19,7 @@
#endif
#if (FMSTR_USE_TSA_DYNAMIC)
tsaTable=malloc(tsaMembers*sizeof(FMSTR_TSA_ENTRY));
- //FMSTR_SetUpTsaBuff((FMSTR_ADDR)tsaTable, (tsaMembers)*sizeof(FMSTR_TSA_ENTRY));
- FMSTR_SetUpTsaBuff((FMSTR_ADDR)tsabuff, 200);
+ FMSTR_SetUpTsaBuff((FMSTR_ADDR)tsaTable, (tsaMembers)*sizeof(FMSTR_TSA_ENTRY));
#endif
