summaryrefslogtreecommitdiffstats
path: root/src/progs/pickit1/base/pickit1_prog.cpp
blob: 91453769c3f4c651fd26fa9b9cb0ffc2eb2e1d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/***************************************************************************
 * Copyright (C) 2006 Nicolas Hadacek <hadacek@kde.org>                    *
 *                                                                         *
 *   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 "pickit1_prog.h"

#include "pickit1.h"

//----------------------------------------------------------------------------
bool Pickit1::Base::deviceHasOsccalRegeneration() const
{
  return data(device()->name()).regenerateOsccal;
}

bool Pickit1::Base::setTarget()
{
  return static_cast<Pickit::DeviceSpecific *>(_specific)->init();
}

//----------------------------------------------------------------------------
Programmer::Hardware *Pickit1::Group::createHardware(Programmer::Base &base, const ::Programmer::HardwareDescription &) const
{
  return new Hardware(base);
}

#include "pickit1_prog.moc"