Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions DLL430_v3/src/DLL430_OldApiV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ bool DLL430_OldApiV3::Initialize(char* port, long* version)
}

if(notifyCallback!=NULL)
handle->addSystemNotifyCallback( boost::bind(&DLL430_OldApiV3::iNotifyCallback, this, _1, _2, _3, _4) );
handle->addSystemNotifyCallback( boost::bind(&DLL430_OldApiV3::iNotifyCallback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4) );

if (version) // pointer not 0
{
Expand Down Expand Up @@ -332,7 +332,7 @@ bool DLL430_OldApiV3::SetSystemNotfyCallback(SYSTEM_NOTIFY_CALLBACK parSystemNot

if(handle && singleDevice)
{
handle->addSystemNotifyCallback( boost::bind(&DLL430_OldApiV3::iNotifyCallback, this, _1, _2, _3, _4) );
handle->addSystemNotifyCallback( boost::bind(&DLL430_OldApiV3::iNotifyCallback, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4) );

if ( DebugManager* db_man = singleDevice->getDebugManager() )
{
Expand Down Expand Up @@ -2769,7 +2769,7 @@ bool DLL430_OldApiV3::FET_FwUpdate(
}

ConfigManager *config = handle->getConfigManager();
bool success = config->firmWareUpdate(lpszFileName, boost::bind(callback, _1, _2, _3, clientHandle));
bool success = config->firmWareUpdate(lpszFileName, boost::bind(callback, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, clientHandle));

//Only perform retries when not using user specified file
int retries = 2;
Expand All @@ -2781,7 +2781,7 @@ bool DLL430_OldApiV3::FET_FwUpdate(
{
//Initialize will invalidate the old config manager
config = handle->getConfigManager();
success = config->firmWareUpdate(lpszFileName, boost::bind(callback, _1, _2, _3, clientHandle));
success = config->firmWareUpdate(lpszFileName, boost::bind(callback, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, clientHandle));
}
}

Expand Down
8 changes: 4 additions & 4 deletions DLL430_v3/src/TI/DLL430/DebugManagerV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ DebugManagerV3::DebugManagerV3 (DeviceHandleV3* parent, const DeviceInfo* devInf
, resetCycleCounterBeforeNextStep(true)
, storagePollingActive(false)
{
this->waitForEem.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, _1, _2), 0 );
this->waitForEem.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, boost::placeholders::_1, boost::placeholders::_2), 0 );
this->waitForEem.setAsyncMode(false);

this->waitForJState.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, _1, _2), 0 );
this->waitForJState.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, boost::placeholders::_1, boost::placeholders::_2), 0 );
this->waitForJState.setAsyncMode(true);

this->waitForStorage.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, _1, _2), 0 );
this->waitForStorage.setCallBack( boost::bind(&DebugManagerV3::localCallback, this, boost::placeholders::_1, boost::placeholders::_2), 0 );
this->waitForStorage.setAsyncMode(true);

createModuleStrings(devInfo->getClockMapping());
createClockStrings(devInfo->getClockNames());

eventNotifier.setEventHandler( boost::bind(&DebugManagerV3::runEvent, this, _1) );
eventNotifier.setEventHandler( boost::bind(&DebugManagerV3::runEvent, this, boost::placeholders::_1) );
eventNotifier.startProcessingEvents();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,43 +135,43 @@ VariableWatchPtr EmulationManager430::getVariableWatch() const

bool EmulationManager430::hasTriggerConditionManager() const
{
return mTriggerConditionManager;
return mTriggerConditionManager.get(); // JMF
}


bool EmulationManager430::hasBreakpointManager() const
{
return mBreakpointManager;
return mBreakpointManager.get(); // JMF
}


bool EmulationManager430::hasClockControl() const
{
return mClockControl;
return mClockControl.get(); // JMF
}


bool EmulationManager430::hasCycleCounter() const
{
return mCycleCounter;
return mCycleCounter.get(); // JMF
}


bool EmulationManager430::hasSequencer() const
{
return mSequencer;
return mSequencer.get(); // JMF
}


bool EmulationManager430::hasTrace() const
{
return mTrace;
return mTrace.get(); // JMF
}


bool EmulationManager430::hasVariableWatch() const
{
return mVariableWatch;
return mVariableWatch.get();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#endif

#include <vector>
#include <boost/tr1/tuple.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/assign/list_of.hpp>

Expand Down
16 changes: 11 additions & 5 deletions DLL430_v3/src/TI/DLL430/UsbCdcIoChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,18 @@ bool UsbCdcIoChannel::isOpen ()

boost::mutex readWriteMutex;

#if BOOST_VERSION >= 107000
#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context())
#else
#define GET_IO_SERVICE(s) ((s).get_io_service())
#endif

class AsyncTransferHandler
{
public:
AsyncTransferHandler(serial_port& port) :
port(port),
timer(port.get_io_service()),
timer(GET_IO_SERVICE(port)),
result(RES_NONE),
bytesTransfered(0) {}

Expand All @@ -332,11 +338,11 @@ class AsyncTransferHandler
async_read(port, buffer(buf, bufSize),
boost::bind(&AsyncTransferHandler::onTransferComplete, this, _1, _2) );

port.get_io_service().reset();
GET_IO_SERVICE(port).reset();

#if defined(_WIN32) || defined(_WIN64)
while ( result == RES_NONE )
port.get_io_service().run_one();
GET_IO_SERVICE(port).run_one();

if (result != RES_COMPLETE)
{
Expand All @@ -349,9 +355,9 @@ class AsyncTransferHandler
timer.cancel();
#else
while ( result == RES_NONE )
port.get_io_service().run();
GET_IO_SERVICE(port).run();
#endif
port.get_io_service().stop();
GET_IO_SERVICE(port).stop();

return (result == RES_COMPLETE) ? static_cast<int>(bytesTransfered) : -1;
}
Expand Down
3 changes: 2 additions & 1 deletion DLL430_v3/src/TI/DLL430/UsbCdcIoChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ namespace TI
std::string name;
bool isXoffFlowOn;
Status status;
boost::asio::io_service* ioService;
// boost::asio::io_service* ioService;
boost::asio::io_context* ioService;
boost::asio::serial_port* port;
ComState comState;

Expand Down