Skip to content

Commit

Permalink
ARMDebugAccessPort: converted to modern exception structure
Browse files Browse the repository at this point in the history
  • Loading branch information
azonenberg committed May 4, 2018
1 parent 6b07b0b commit 23fcab9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ARMDebugAccessPort.cpp
Expand Up @@ -55,8 +55,7 @@ ARMDebugAccessPort::ARMDebugAccessPort(ARMDebugPort* dp, uint8_t apnum, ARMDebug
{
throw JtagExceptionWrapper(
"JTAG-AP cannot be a MEM-AP",
"",
JtagException::EXCEPTION_TYPE_GIGO);
"");
}
break;

Expand All @@ -66,8 +65,7 @@ ARMDebugAccessPort::ARMDebugAccessPort(ARMDebugPort* dp, uint8_t apnum, ARMDebug
{
throw JtagExceptionWrapper(
"AHB bus must be a MEM-AP",
"",
JtagException::EXCEPTION_TYPE_GIGO);
"");
}

break;
Expand All @@ -78,17 +76,15 @@ ARMDebugAccessPort::ARMDebugAccessPort(ARMDebugPort* dp, uint8_t apnum, ARMDebug
{
throw JtagExceptionWrapper(
"APB bus must be a MEM-AP",
"",
JtagException::EXCEPTION_TYPE_GIGO);
"");
}

break;

default:
throw JtagExceptionWrapper(
"Unknown bus type",
"",
JtagException::EXCEPTION_TYPE_UNIMPLEMENTED);
"");
break;
}
}
Expand Down
1 change: 1 addition & 0 deletions jtaghal.h
Expand Up @@ -130,6 +130,7 @@
#include "XilinxDevice.h"

//Vendor device classes (and support stuff)
#include "ARMDebugPort.h"
#include "MicrochipMicrocontroller.h"
#include "XilinxCPLD.h"
#include "XilinxCPLDBitstream.h"
Expand Down

0 comments on commit 23fcab9

Please sign in to comment.