CMSIS-DAP: CMSIS-DAP Initialization

| CMSIS-DAP Version 1.2.0 (Proposal) Interface Firmware for CoreSight Debug Access Port

- Main Page
- Usage and Description
- Reference

All Functions Groups Pages
Functions
CMSIS-DAP Initialization
Configure I/O Ports and Debug Unit

CMSIS-DAP Hardware I/O and LED Pins are initialized with the function DAP_SETUP. More...

## Functions
static __inline void | DAP_SETUP (void)
| Setup of the Debug Unit I/O pins and LEDs (called when Debug Unit is initialized). More...
static __inline uint8_t | RESET_TARGET (void)
| Reset Target Device with custom specific I/O pin or command sequence. More...

## Description

CMSIS-DAP Hardware I/O and LED Pins are initialized with the function DAP_SETUP.

## Function Documentation

static __inline void DAP_SETUP | ( | void |  | ) |
| static

Setup of the Debug Unit I/O pins and LEDs (called when Debug Unit is initialized).

This function performs the initialization of the CMSIS-DAP Hardware I/O Pins and the Status LEDs. In detail the operation of Hardware I/O and LED pins are enabled and set:

- I/O clock system enabled.
- all I/O pins: input buffer enabled, output pins are set to HighZ mode.
- for nTRST, nRESET a weak pull-up (if available) is enabled.
- LED output pins are enabled and LEDs are turned off.

static __inline uint8_t RESET_TARGET | ( | void |  | ) |
| static

Reset Target Device with custom specific I/O pin or command sequence.

This function allows the optional implementation of a device specific reset sequence. It is called when the command DAP_ResetTarget and is for example required when a device needs a time-critical unlock sequence that enables the debug port.

Returns
  0 = no device specific reset sequence is implemented.
  1 = a device specific reset sequence is implemented.