#include <iostream>
Go to the source code of this file.
Classes | |
class | SystemConsoleHandler |
Class, that handle messages to console and also exit/abort calls. More... | |
Defines | |
#define | ATTRIBUTE_NORETURN |
#define | ATTRIBUTE_PRINTF(string_arg, first_arg) |
#define | traceOut sysConHandler.traceOutStream() |
#define | avr_message(fmt,...) sysConHandler.vfmessage(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
#define | avr_warning(fmt,...) sysConHandler.vfwarning(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
#define | avr_failure(fmt,...) sysConHandler.vferror(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
#define | avr_error(fmt,...) sysConHandler.vffatal(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
Functions | |
void | trioaccess (const char *t, unsigned char val) |
Helper function for writing trace (trace IO access). | |
Variables | |
SystemConsoleHandler | sysConHandler |
The SystemConsoleHandler instance for common usage. | |
int | global_verbose_on |
Verbose enable flag. |
#define ATTRIBUTE_NORETURN |
Definition at line 38 of file avrerror.h.
#define ATTRIBUTE_PRINTF | ( | string_arg, | |||
first_arg | ) |
Definition at line 39 of file avrerror.h.
#define avr_error | ( | fmt, | |||
... | ) | sysConHandler.vffatal(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
Definition at line 129 of file avrerror.h.
Referenced by TraceValueRegister::_tvr_registerTraceValues(), AdcPin::AdcPin(), DumpManager::addDumper(), DumpManager::appendDeviceName(), GdbServer::avr_core_flash_write(), GdbServer::avr_core_flash_write_hi8(), GdbServer::avr_core_flash_write_lo8(), avr_malloc(), avr_malloc0(), avr_realloc(), avr_strdup(), AvrDevice::AvrDevice(), BasicTimerUnit::BasicTimerUnit(), TraceValue::cycle(), GdbServer::gdb_extract_hex_num(), GdbServer::gdb_receive_and_process_packet(), GdbServer::gdb_send_reply(), GdbServerSocketUnix::GdbServerSocketUnix(), InvalidMem::get(), Memory::GetAddressAtSymbol(), AvrFlash::GetInstruction(), TimerIRQRegister::getLine(), AvrDevice::GetPin(), GdbServer::hex2nib(), PrescalerMultiplexerExt::isClock(), PrescalerMultiplexer::isClock(), DumpManager::load(), AvrDevice::Load(), AvrFactory::makeDevice(), Socket::OpenSocket(), avr_op_ILLEGAL::operator()(), avr_op_ST_Z_incr::operator()(), avr_op_ST_Z_decr::operator()(), avr_op_ST_Y_incr::operator()(), avr_op_ST_Y_decr::operator()(), avr_op_ST_X_incr::operator()(), avr_op_ST_X_decr::operator()(), avr_op_SLEEP::operator()(), avr_op_LD_Z_decr::operator()(), avr_op_LD_Z_incr::operator()(), avr_op_LD_Y_incr::operator()(), avr_op_LD_Y_decr::operator()(), avr_op_LD_X_incr::operator()(), avr_op_LD_X_decr::operator()(), ThreeLevelStack::Pop(), ThreeLevelStack::Push(), RAM::RAM(), GdbServerSocketUnix::ReadByte(), AvrFactory::reg(), TraceValueRegister::RegisterTraceValue(), AvrDevice::ReplaceIoRegister(), RWMemoryMember::RWMemoryMember(), InvalidMem::set(), DumpVCD::setActiveSignals(), SetDumpTraceArgs(), DumpManager::SetSingleDeviceApp(), SpiSource::SpiSource(), UserInterface::Step(), SerialTxBuffered::Step(), Keyboard::Step(), AvrDevice::Step(), SystemClock::SystemClock(), and GdbServerSocketUnix::Write().
#define avr_failure | ( | fmt, | |||
... | ) | sysConHandler.vferror(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
Definition at line 128 of file avrerror.h.
#define avr_message | ( | fmt, | |||
... | ) | sysConHandler.vfmessage(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
Definition at line 126 of file avrerror.h.
Referenced by HWIrqSystem::DebugDumpTable().
#define avr_warning | ( | fmt, | |||
... | ) | sysConHandler.vfwarning(__FILE__, __LINE__, fmt, ## __VA_ARGS__) |
Definition at line 127 of file avrerror.h.
Referenced by ExternalIRQSingle::ChangeMode(), GdbServer::gdb_break_point(), GdbServer::gdb_read_memory(), GdbServer::gdb_read_register(), GdbServer::gdb_receive_and_process_packet(), GdbServer::gdb_write_memory(), GdbServer::gdb_write_register(), IOReg< HWTimer8_0C >::get(), NotSimulatedRegister::get(), InvalidMem::get(), PrescalerMultiplexerT15::isClock(), AvrDevice::Load(), ThreeLevelStack::PopAddr(), ThreeLevelStack::PushAddr(), GdbServerSocketUnix::ReadByte(), AvrFlash::ReadMem(), AvrFlash::ReadMemWord(), IOReg< HWTimer8_0C >::set(), NotSimulatedRegister::set(), InvalidMem::set(), GdbServerSocketUnix::SetBlockingMode(), HWTimer16::SetComplexRegister(), HWPort::SetPin(), BasicTimerUnit::SetPWMCompareOutput(), and HWStackSram::SetSph().
#define traceOut sysConHandler.traceOutStream() |
Definition at line 116 of file avrerror.h.
Referenced by HWIrqSystem::ClearIrqFlag(), HWSpi::CpuCycle(), HWEeprom::CpuCycle(), HWAd::CpuCycle(), HWIrqSystem::IrqHandlerFinished(), HWIrqSystem::IrqHandlerStarted(), HWStackSram::Pop(), HWStackSram::Push(), HWEeprom::SetEearh(), HWEeprom::SetEearl(), HWEeprom::SetEecr(), HWEeprom::SetEedr(), HWIrqSystem::SetIrqFlag(), HWStackSram::SetSph(), HWStackSram::SetSpl(), HWSpi::SetSPSR(), AvrDevice::Step(), avr_op_ILLEGAL::Trace(), avr_op_BREAK::Trace(), avr_op_WDR::Trace(), avr_op_SWAP::Trace(), avr_op_SUBI::Trace(), avr_op_SUB::Trace(), avr_op_ST_Z_incr::Trace(), avr_op_ST_Z_decr::Trace(), avr_op_ST_Y_incr::Trace(), avr_op_ST_Y_decr::Trace(), avr_op_ST_X_incr::Trace(), avr_op_ST_X_decr::Trace(), avr_op_ST_X::Trace(), avr_op_STS::Trace(), avr_op_STD_Z::Trace(), avr_op_STD_Y::Trace(), avr_op_SPM::Trace(), avr_op_SLEEP::Trace(), avr_op_SBRS::Trace(), avr_op_SBRC::Trace(), avr_op_SBIW::Trace(), avr_op_SBIS::Trace(), avr_op_SBIC::Trace(), avr_op_SBI::Trace(), avr_op_SBCI::Trace(), avr_op_SBC::Trace(), avr_op_ROR::Trace(), avr_op_RJMP::Trace(), avr_op_RETI::Trace(), avr_op_RET::Trace(), avr_op_RCALL::Trace(), avr_op_PUSH::Trace(), avr_op_POP::Trace(), avr_op_OUT::Trace(), avr_op_ORI::Trace(), avr_op_OR::Trace(), avr_op_NOP::Trace(), avr_op_NEG::Trace(), avr_op_MULSU::Trace(), avr_op_MULS::Trace(), avr_op_MUL::Trace(), avr_op_MOVW::Trace(), avr_op_MOV::Trace(), avr_op_LSR::Trace(), avr_op_LPM_Z_incr::Trace(), avr_op_LPM::Trace(), avr_op_LPM_Z::Trace(), avr_op_LD_Z_decr::Trace(), avr_op_LD_Z_incr::Trace(), avr_op_LD_Y_incr::Trace(), avr_op_LD_Y_decr::Trace(), avr_op_LD_X_incr::Trace(), avr_op_LD_X_decr::Trace(), avr_op_LD_X::Trace(), avr_op_LDS::Trace(), avr_op_LDI::Trace(), avr_op_LDD_Z::Trace(), avr_op_LDD_Y::Trace(), avr_op_JMP::Trace(), avr_op_INC::Trace(), avr_op_IN::Trace(), avr_op_IJMP::Trace(), avr_op_ICALL::Trace(), avr_op_FMULSU::Trace(), avr_op_FMULS::Trace(), avr_op_FMUL::Trace(), avr_op_ESPM::Trace(), avr_op_EOR::Trace(), avr_op_ELPM::Trace(), avr_op_ELPM_Z_incr::Trace(), avr_op_ELPM_Z::Trace(), avr_op_EIJMP::Trace(), avr_op_EICALL::Trace(), avr_op_DEC::Trace(), avr_op_CPSE::Trace(), avr_op_CPI::Trace(), avr_op_CPC::Trace(), avr_op_CP::Trace(), avr_op_COM::Trace(), avr_op_CBI::Trace(), avr_op_CALL::Trace(), avr_op_BST::Trace(), avr_op_BSET::Trace(), avr_op_BRBS::Trace(), avr_op_BRBC::Trace(), avr_op_BLD::Trace(), avr_op_BCLR::Trace(), avr_op_ASR::Trace(), avr_op_ANDI::Trace(), avr_op_AND::Trace(), avr_op_ADIW::Trace(), avr_op_ADD::Trace(), avr_op_ADC::Trace(), and HWSpi::trxend().
void trioaccess | ( | const char * | t, | |
unsigned char | val | |||
) |
Helper function for writing trace (trace IO access).
Definition at line 222 of file avrerror.cpp.
References SystemConsoleHandler::traceOutStream().
Verbose enable flag.
Definition at line 220 of file avrerror.cpp.
Referenced by main(), ThreadList::OnPop(), and AvrDevice::Step().
The SystemConsoleHandler instance for common usage.
Definition at line 218 of file avrerror.cpp.
Referenced by avr_trace_tf(), RWAbort::get(), RWExit::get(), main(), RWAbort::set(), RWExit::set(), and AvrDevice::Step().