/*************************************************************************** * Copyright (C) 2003-2004 Alain Gibaud * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #include "direct_pic.h" #include "common/common/misc.h" //----------------------------------------------------------------------------- Direct::PulseEngine::PulseEngine(::Programmer::Base &base) : _pbase(base) { _clockDelay = 0; } BitValue Direct::PulseEngine::pulseEngine(const TQString &cmd, BitValue value) { _pbase.log(Log::DebugLevel::Extra, TQString("pulse engine: %1").tqarg(cmd)); TQByteArray a = toAscii(cmd); BitValue res = 0; for (const char *ptr=a.data(); (ptr-a.data())