Go to the source code of this file.
|
#define | AT91C_BASE_SYS (0xfffff000) |
|
#define | NC (0) /* not connected */ |
|
#define | P0 (1 << 0) |
|
#define | P1 (1 << 1) |
|
#define | P10 (1 << 10) |
|
#define | P11 (1 << 11) |
|
#define | P12 (1 << 12) |
|
#define | P13 (1 << 13) |
|
#define | P14 (1 << 14) |
|
#define | P15 (1 << 15) |
|
#define | P16 (1 << 16) |
|
#define | P17 (1 << 17) |
|
#define | P18 (1 << 18) |
|
#define | P19 (1 << 19) |
|
#define | P2 (1 << 2) |
|
#define | P20 (1 << 20) |
|
#define | P21 (1 << 21) |
|
#define | P22 (1 << 22) |
|
#define | P23 (1 << 23) |
|
#define | P24 (1 << 24) |
|
#define | P25 (1 << 25) |
|
#define | P26 (1 << 26) |
|
#define | P27 (1 << 27) |
|
#define | P28 (1 << 28) |
|
#define | P29 (1 << 29) |
|
#define | P3 (1 << 3) |
|
#define | P30 (1 << 30) |
|
#define | P31 (1 << 31) |
|
#define | P4 (1 << 4) |
|
#define | P5 (1 << 5) |
|
#define | P6 (1 << 6) |
|
#define | P7 (1 << 7) |
|
#define | P8 (1 << 8) |
|
#define | P9 (1 << 9) |
|
#define | PIO_CODR (13) /* clear output data */ |
|
#define | PIO_ODR (5) /* output disable */ |
|
#define | PIO_OER (4) /* output enable */ |
|
#define | PIO_PDSR (15) /* pin data status */ |
|
#define | PIO_PER (0) /* PIO enable */ |
|
#define | PIO_PPUER (25) /* pull-up enable */ |
|
#define | PIO_SODR (12) /* set output data */ |
|
#define | PIOA (0 << 7) |
|
#define | PIOB (1 << 7) |
|
#define | PIOC (2 << 7) |
|
#define | PIOD (3 << 7) |
|
◆ AT91C_BASE_SYS
#define AT91C_BASE_SYS (0xfffff000) |
◆ NC
#define NC (0) /* not connected */ |
◆ P0
◆ P1
◆ P10
◆ P11
◆ P12
◆ P13
◆ P14
◆ P15
◆ P16
◆ P17
◆ P18
◆ P19
◆ P2
◆ P20
◆ P21
◆ P22
◆ P23
◆ P24
◆ P25
◆ P26
◆ P27
◆ P28
◆ P29
◆ P3
◆ P30
◆ P31
◆ P4
◆ P5
◆ P6
◆ P7
◆ P8
◆ P9
◆ PIO_CODR
#define PIO_CODR (13) /* clear output data */ |
◆ PIO_ODR
#define PIO_ODR (5) /* output disable */ |
◆ PIO_OER
#define PIO_OER (4) /* output enable */ |
◆ PIO_PDSR
#define PIO_PDSR (15) /* pin data status */ |
◆ PIO_PER
#define PIO_PER (0) /* PIO enable */ |
◆ PIO_PPUER
#define PIO_PPUER (25) /* pull-up enable */ |
◆ PIO_SODR
#define PIO_SODR (12) /* set output data */ |
◆ PIOA
◆ PIOB
◆ PIOC
◆ PIOD
◆ at91rm9200_init()
static int at91rm9200_init |
( |
void |
| ) |
|
|
static |
Definition at line 195 of file at91rm9200.c.
References AT91C_BASE_SYS, at91rm9200_bitbang, at91rm9200_device, dev_mem_fd, device, devices, ERROR_JTAG_INIT_FAILED, ERROR_OK, LOG_ERROR, LOG_WARNING, device_t::name, NULL, pio_base, PIO_CODR, PIO_ODR, PIO_OER, PIO_PER, PIO_PPUER, PIO_SODR, device_t::SRST_MASK, device_t::SRST_PIO, sys_controller, device_t::TCK_MASK, device_t::TCK_PIO, device_t::TDI_MASK, device_t::TDI_PIO, device_t::TDO_MASK, device_t::TDO_PIO, device_t::TMS_MASK, device_t::TMS_PIO, device_t::TRST_MASK, and device_t::TRST_PIO.
◆ at91rm9200_quit()
static int at91rm9200_quit |
( |
void |
| ) |
|
|
static |
◆ at91rm9200_read()
◆ at91rm9200_reset()
static int at91rm9200_reset |
( |
int |
trst, |
|
|
int |
srst |
|
) |
| |
|
static |
◆ at91rm9200_write()
static int at91rm9200_write |
( |
int |
tck, |
|
|
int |
tms, |
|
|
int |
tdi |
|
) |
| |
|
static |
Definition at line 118 of file at91rm9200.c.
References device, ERROR_OK, pio_base, PIO_CODR, PIO_SODR, device_t::TCK_MASK, device_t::TCK_PIO, device_t::TDI_MASK, device_t::TDI_PIO, device_t::TMS_MASK, and device_t::TMS_PIO.
◆ COMMAND_HANDLER()
COMMAND_HANDLER |
( |
at91rm9200_handle_device_command |
| ) |
|
◆ at91rm9200_adapter_driver
Initial value:= {
.name = "at91rm9200",
}
const char *const jtag_only[]
static const struct command_registration at91rm9200_command_handlers[]
static int at91rm9200_quit(void)
static int at91rm9200_init(void)
static int at91rm9200_reset(int trst, int srst)
static struct jtag_interface at91rm9200_interface
Definition at line 154 of file at91rm9200.c.
◆ at91rm9200_bitbang
Initial value:= {
.blink = 0
}
static int at91rm9200_write(int tck, int tms, int tdi)
static bb_value_t at91rm9200_read(void)
Definition at line 105 of file at91rm9200.c.
Referenced by at91rm9200_init().
◆ at91rm9200_command_handlers
Initial value:= {
{
.name = "at91rm9200_device",
.handler = &at91rm9200_handle_device_command,
.help = "Set at91rm9200 device [default \"rea_ecr\"]",
.usage = "<device>",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition at line 154 of file at91rm9200.c.
◆ at91rm9200_device
◆ at91rm9200_interface
Initial value:= {
}
int bitbang_execute_queue(void)
Definition at line 154 of file at91rm9200.c.
◆ dev_mem_fd
◆ device
Definition at line 94 of file at91rm9200.c.
Referenced by at91rm9200_init(), at91rm9200_read(), at91rm9200_reset(), at91rm9200_write(), COMMAND_HANDLER(), device_location_equal(), jtag_libusb_match_serial(), open_matching_device(), psoc5lp_find_device(), stlink_usb_get_alternate_serial(), string_descriptor_equal(), ulink_append_clock_tck_cmd(), ulink_append_clock_tms_cmd(), ulink_append_configure_tck_cmd(), ulink_append_get_signals_cmd(), ulink_append_led_cmd(), ulink_append_queue(), ulink_append_scan_cmd(), ulink_append_set_signals_cmd(), ulink_append_sleep_cmd(), ulink_append_test_cmd(), ulink_clear_queue(), ulink_cpu_reset(), ulink_execute_queued_commands(), ulink_get_queue_size(), ulink_load_firmware(), ulink_load_firmware_and_renumerate(), ulink_post_process_queue(), ulink_print_queue(), ulink_queue_reset(), ulink_queue_runtest(), ulink_queue_scan(), ulink_queue_sleep(), ulink_queue_stableclocks(), ulink_queue_statemove(), ulink_queue_tlr_reset(), ulink_write_firmware_section(), usb_connect(), and vsllink_usb_open().
◆ devices
Initial value:= {
{
"rea_ecr",
PIOD,
P27,
PIOA,
NC,
PIOD,
P23,
PIOD,
P24,
PIOD,
P26,
PIOC,
P5 },
}
Definition at line 1 of file at91rm9200.c.
Referenced by at91rm9200_init(), and kitprog_generic_acquire().
◆ pio_base
◆ sys_controller