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:
- 10:ee28cf2ae687
- Parent:
- 9:61b2beb811bf
- Child:
- 11:d1de61dc3766
diff -r 61b2beb811bf -r ee28cf2ae687 class/freemaster_class.cpp
--- a/class/freemaster_class.cpp Tue Jun 03 22:56:38 2014 +0000
+++ b/class/freemaster_class.cpp Wed Jun 04 14:48:34 2014 +0000
@@ -6,6 +6,7 @@
#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);
@@ -15,11 +16,14 @@
FMSTR_Init();
#if !(FMSTR_POLL_DRIVEN)
serial_irq_set(&_serial, RxIrq, 1);
- serial_irq_set(&_serial, TxIrq, 1);
+ serial_irq_set(&_serial, TxIrq, 0);
+// serial_readable(&_serial);
#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)tsaTable, (tsaMembers)*sizeof(FMSTR_TSA_ENTRY));
+ FMSTR_SetUpTsaBuff((FMSTR_ADDR)tsabuff, 200);
+
#endif
#if (FMSTR_REC_OWNBUFF)
