This commit is contained in:
Triss 2021-05-31 12:51:07 +02:00
parent 7c698b5d8a
commit 54d6095269
2 changed files with 16 additions and 7 deletions

View File

@ -56,7 +56,7 @@ The pin mapping is as follows:
| GP9 | | nRESET |
The UART pins are for connecting to the device to be debugged, the data is
echoed back over the USB CDC interface (typically a `/dev/ttyAMAx` device on
echoed back over the USB CDC interface (typically a `/dev/ttyACMx` device on
Linux).
In SWD mode, the pin mapping is entirely as with the standard Picoprobe setup,

View File

@ -155,8 +155,11 @@ This information includes:
\return String length.
*/
__STATIC_INLINE uint8_t DAP_GetVendorString (char *str) {
(void)str;
return (0U);
const static char vnd[] = "Raspberry Pi";
for (size_t i = 0; i < sizeof(vnd); ++i) str[i] = vnd[i];
return sizeof(vnd)-1;
//(void)str;
//return (0U);
}
/** Get Product ID string.
@ -164,8 +167,11 @@ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) {
\return String length.
*/
__STATIC_INLINE uint8_t DAP_GetProductString (char *str) {
(void)str;
return (0U);
const static char prd[] = "RP2040 DapperMime-JTAG";
for (size_t i = 0; i < sizeof(prd); ++i) str[i] = prd[i];
return sizeof(prd)-1;
//(void)str;
//return (0U);
}
/** Get Serial Number string.
@ -173,8 +179,11 @@ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) {
\return String length.
*/
__STATIC_INLINE uint8_t DAP_GetSerNumString (char *str) {
(void)str;
return (0U);
const static char ser[] = "1337";
for (size_t i = 0; i < sizeof(ser); ++i) str[i] = ser[i];
return sizeof(ser)-1;
//(void)str;
//return (0U);
}
///@}