avr_monitor_data_s Struct Reference
[Monitor Data]


Detailed Description

Data used by the target monitor to save registers and to do communication

Some advantages and disadvantages

Todo:
jbirkler. One idea is to skip the regs in avr_monitor_data_t and only use a dedicated stack that can hold all registers too. The monitor entry and exit block should be a little simpler: -Push to get some temp working regs -Set SP to dedicated area -Push everything to dedicated area -Host knows in what order the monitor pushes things on the dedicated stack and can restore registers .

Data Fields


Field Documentation

avr_registers_t avr_monitor_data_s::regs
 

0x00: Saved registers

avr_hw_bp_flag_t avr_monitor_data_s::hw_bp_flags
 

0x25: Enabled hardware breakpoints, each bit correspond to a hw break point

uint8_t avr_monitor_data_s::continue_cmd
 

avr_monitor_run_mode_t

avr_breakpoint_t avr_monitor_data_s::breakpoint[AVR_MONITOR_NUM_BREAKPOINTS]
 

0x27: Software bp addresses. 0 if entry not used

uint8_t avr_monitor_data_s::stack[AVR_MONITOR_STACK_SIZE]
 

0x2F: Make sure the monitor stack is large enough. When the size is changed here, remember to also change the value used in the inline assembly. 15 bytes is used right now.


Copyright 2002 Jörgen Birkler. For accelR8 Accelerometer on Mon Jan 19 21:43:19 2004 by Doxygen 1.3.5.