Fyzický přístup na SWD port.
...
#include "baselayer.h"
#include "gpio.h"
#include "config.h"
Zobrazit zdrojový text tohoto souboru.
|
| struct | swdPacket |
| | SWD Paket pro základní komunikaci. ...
|
| |
| class | Swdp |
| | Fyzický přístup na SWD piny. ...
|
| |
|
|
#define | SWD_ACK 0b001 |
| | SWD status responses. SWD_ACK is good.
|
| |
|
#define | SWD_WAIT 0b010 |
| |
|
#define | SWD_FAULT 0b100 |
| |
|
#define | SWD_PARITY 0b1000 |
| |
|
| uint8_t | APnDP |
| | < Init / IO ...
|
| |
|
uint8_t | RnW |
| | Read / Write.
|
| |
|
uint8_t | adr |
| | Adresa.
|
| |
|
uint32_t | val |
| | DATA.
|
| |
|
Swdp | __attribute__ |
| |
| Hodnoty výčtu |
|---|
| cmdInit |
init
|
| cmdLowAccess |
čtení / zápis na základní úrovni SWD.
|