OpenOCD
io.h File Reference
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLEAR_COM_LED()   (OUTA |= PIN_COM_LED)
 
#define CLEAR_RUN_LED()   (OUTA |= PIN_RUN_LED)
 
#define GET_BRKOUT()   (PINSA & PIN_BRKOUT)
 
#define GET_RTCK()   (PINSC & PIN_RTCK)
 
#define GET_TCK()   (PINSB & PIN_TCK)
 
#define GET_TDO()   (PINSA & PIN_TDO)
 
#define GET_TMS()   (PINSB & PIN_TMS)
 
#define GET_TRAP()   (PINSB & PIN_TRAP)
 
#define MASK_PORTB_DIRECTION_OUT   (PIN_TDI | PIN_TMS | PIN_TCK | PIN_TRST | PIN_BRKIN | PIN_RESET | PIN_OCDSE)
 
#define PIN_BRKIN   OUTB4
 
#define PIN_BRKOUT   PINA6
 
#define PIN_COM_LED   OUTA7
 
#define PIN_OCDSE   OUTB6
 
#define PIN_OE   OUTA2
 
#define PIN_RESET   OUTB5
 
#define PIN_RESET_2   PINC2
 
#define PIN_RTCK   PINC5
 
#define PIN_RUN_LED   OUTA4
 
#define PIN_RXD0   PINC0
 
#define PIN_TCK   OUTB2
 
#define PIN_TDI   OUTB0
 
#define PIN_TDO   PINA5
 
#define PIN_TMS   OUTB1
 
#define PIN_TRAP   PINB7
 
#define PIN_TRST   OUTB3
 
#define PIN_TXD0   OUTC1
 
#define PIN_U_OE   OUTA0
 
#define PIN_WR   OUTC6
 
#define SET_BRKIN_HIGH()   (OUTB |= PIN_BRKIN)
 
#define SET_BRKIN_LOW()   (OUTB &= ~PIN_BRKIN)
 
#define SET_COM_LED()   (OUTA &= ~PIN_COM_LED)
 
#define SET_OCDSE_HIGH()   (OUTB |= PIN_OCDSE)
 
#define SET_OCDSE_LOW()   (OUTB &= ~PIN_OCDSE)
 
#define SET_RESET_HIGH()   (OUTB |= PIN_RESET)
 
#define SET_RESET_LOW()   (OUTB &= ~PIN_RESET)
 
#define SET_RUN_LED()   (OUTA &= ~PIN_RUN_LED)
 
#define SET_TCK_HIGH()   (OUTB |= PIN_TCK)
 
#define SET_TCK_LOW()   (OUTB &= ~PIN_TCK)
 
#define SET_TDI_HIGH()   (OUTB |= PIN_TDI)
 
#define SET_TDI_LOW()   (OUTB &= ~PIN_TDI)
 
#define SET_TMS_HIGH()   (OUTB |= PIN_TMS)
 
#define SET_TMS_LOW()   (OUTB &= ~PIN_TMS)
 
#define SET_TRST_HIGH()   (OUTB |= PIN_TRST)
 
#define SET_TRST_LOW()   (OUTB &= ~PIN_TRST)
 

Macro Definition Documentation

◆ CLEAR_COM_LED

#define CLEAR_COM_LED ( )    (OUTA |= PIN_COM_LED)

Definition at line 77 of file io.h.

◆ CLEAR_RUN_LED

#define CLEAR_RUN_LED ( )    (OUTA |= PIN_RUN_LED)

Definition at line 74 of file io.h.

◆ GET_BRKOUT

#define GET_BRKOUT ( )    (PINSA & PIN_BRKOUT)

Definition at line 84 of file io.h.

◆ GET_RTCK

#define GET_RTCK ( )    (PINSC & PIN_RTCK)

Definition at line 86 of file io.h.

◆ GET_TCK

#define GET_TCK ( )    (PINSB & PIN_TCK)

Definition at line 81 of file io.h.

◆ GET_TDO

#define GET_TDO ( )    (PINSA & PIN_TDO)

Definition at line 83 of file io.h.

◆ GET_TMS

#define GET_TMS ( )    (PINSB & PIN_TMS)

Definition at line 80 of file io.h.

◆ GET_TRAP

#define GET_TRAP ( )    (PINSB & PIN_TRAP)

Definition at line 85 of file io.h.

◆ MASK_PORTB_DIRECTION_OUT

#define MASK_PORTB_DIRECTION_OUT   (PIN_TDI | PIN_TMS | PIN_TCK | PIN_TRST | PIN_BRKIN | PIN_RESET | PIN_OCDSE)

Definition at line 60 of file io.h.

◆ PIN_BRKIN

#define PIN_BRKIN   OUTB4

Definition at line 54 of file io.h.

◆ PIN_BRKOUT

#define PIN_BRKOUT   PINA6

Definition at line 46 of file io.h.

◆ PIN_COM_LED

#define PIN_COM_LED   OUTA7

Definition at line 47 of file io.h.

◆ PIN_OCDSE

#define PIN_OCDSE   OUTB6

Definition at line 56 of file io.h.

◆ PIN_OE

#define PIN_OE   OUTA2

Definition at line 42 of file io.h.

◆ PIN_RESET

#define PIN_RESET   OUTB5

Definition at line 55 of file io.h.

◆ PIN_RESET_2

#define PIN_RESET_2   PINC2

Definition at line 65 of file io.h.

◆ PIN_RTCK

#define PIN_RTCK   PINC5

Definition at line 68 of file io.h.

◆ PIN_RUN_LED

#define PIN_RUN_LED   OUTA4

Definition at line 44 of file io.h.

◆ PIN_RXD0

#define PIN_RXD0   PINC0

Definition at line 63 of file io.h.

◆ PIN_TCK

#define PIN_TCK   OUTB2

Definition at line 52 of file io.h.

◆ PIN_TDI

#define PIN_TDI   OUTB0

Definition at line 50 of file io.h.

◆ PIN_TDO

#define PIN_TDO   PINA5

Definition at line 45 of file io.h.

◆ PIN_TMS

#define PIN_TMS   OUTB1

Definition at line 51 of file io.h.

◆ PIN_TRAP

#define PIN_TRAP   PINB7

Definition at line 57 of file io.h.

◆ PIN_TRST

#define PIN_TRST   OUTB3

Definition at line 53 of file io.h.

◆ PIN_TXD0

#define PIN_TXD0   OUTC1

Definition at line 64 of file io.h.

◆ PIN_U_OE

#define PIN_U_OE   OUTA0

Definition at line 40 of file io.h.

◆ PIN_WR

#define PIN_WR   OUTC6

Definition at line 69 of file io.h.

◆ SET_BRKIN_HIGH

#define SET_BRKIN_HIGH ( )    (OUTB |= PIN_BRKIN)

Definition at line 108 of file io.h.

◆ SET_BRKIN_LOW

#define SET_BRKIN_LOW ( )    (OUTB &= ~PIN_BRKIN)

Definition at line 109 of file io.h.

◆ SET_COM_LED

#define SET_COM_LED ( )    (OUTA &= ~PIN_COM_LED)

Definition at line 76 of file io.h.

◆ SET_OCDSE_HIGH

#define SET_OCDSE_HIGH ( )    (OUTB |= PIN_OCDSE)

Definition at line 105 of file io.h.

◆ SET_OCDSE_LOW

#define SET_OCDSE_LOW ( )    (OUTB &= ~PIN_OCDSE)

Definition at line 106 of file io.h.

◆ SET_RESET_HIGH

#define SET_RESET_HIGH ( )    (OUTB |= PIN_RESET)

Definition at line 102 of file io.h.

◆ SET_RESET_LOW

#define SET_RESET_LOW ( )    (OUTB &= ~PIN_RESET)

Definition at line 103 of file io.h.

◆ SET_RUN_LED

#define SET_RUN_LED ( )    (OUTA &= ~PIN_RUN_LED)

Definition at line 73 of file io.h.

◆ SET_TCK_HIGH

#define SET_TCK_HIGH ( )    (OUTB |= PIN_TCK)

Definition at line 91 of file io.h.

◆ SET_TCK_LOW

#define SET_TCK_LOW ( )    (OUTB &= ~PIN_TCK)

Definition at line 92 of file io.h.

◆ SET_TDI_HIGH

#define SET_TDI_HIGH ( )    (OUTB |= PIN_TDI)

Definition at line 94 of file io.h.

◆ SET_TDI_LOW

#define SET_TDI_LOW ( )    (OUTB &= ~PIN_TDI)

Definition at line 95 of file io.h.

◆ SET_TMS_HIGH

#define SET_TMS_HIGH ( )    (OUTB |= PIN_TMS)

Definition at line 88 of file io.h.

◆ SET_TMS_LOW

#define SET_TMS_LOW ( )    (OUTB &= ~PIN_TMS)

Definition at line 89 of file io.h.

◆ SET_TRST_HIGH

#define SET_TRST_HIGH ( )    (OUTB |= PIN_TRST)

Definition at line 99 of file io.h.

◆ SET_TRST_LOW

#define SET_TRST_LOW ( )    (OUTB &= ~PIN_TRST)

Definition at line 100 of file io.h.