oops
This commit is contained in:
parent
7c698b5d8a
commit
54d6095269
|
@ -56,7 +56,7 @@ The pin mapping is as follows:
|
||||||
| GP9 | | nRESET |
|
| GP9 | | nRESET |
|
||||||
|
|
||||||
The UART pins are for connecting to the device to be debugged, the data is
|
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).
|
Linux).
|
||||||
|
|
||||||
In SWD mode, the pin mapping is entirely as with the standard Picoprobe setup,
|
In SWD mode, the pin mapping is entirely as with the standard Picoprobe setup,
|
||||||
|
|
|
@ -155,8 +155,11 @@ This information includes:
|
||||||
\return String length.
|
\return String length.
|
||||||
*/
|
*/
|
||||||
__STATIC_INLINE uint8_t DAP_GetVendorString (char *str) {
|
__STATIC_INLINE uint8_t DAP_GetVendorString (char *str) {
|
||||||
(void)str;
|
const static char vnd[] = "Raspberry Pi";
|
||||||
return (0U);
|
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.
|
/** Get Product ID string.
|
||||||
|
@ -164,8 +167,11 @@ __STATIC_INLINE uint8_t DAP_GetVendorString (char *str) {
|
||||||
\return String length.
|
\return String length.
|
||||||
*/
|
*/
|
||||||
__STATIC_INLINE uint8_t DAP_GetProductString (char *str) {
|
__STATIC_INLINE uint8_t DAP_GetProductString (char *str) {
|
||||||
(void)str;
|
const static char prd[] = "RP2040 DapperMime-JTAG";
|
||||||
return (0U);
|
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.
|
/** Get Serial Number string.
|
||||||
|
@ -173,8 +179,11 @@ __STATIC_INLINE uint8_t DAP_GetProductString (char *str) {
|
||||||
\return String length.
|
\return String length.
|
||||||
*/
|
*/
|
||||||
__STATIC_INLINE uint8_t DAP_GetSerNumString (char *str) {
|
__STATIC_INLINE uint8_t DAP_GetSerNumString (char *str) {
|
||||||
(void)str;
|
const static char ser[] = "1337";
|
||||||
return (0U);
|
for (size_t i = 0; i < sizeof(ser); ++i) str[i] = ser[i];
|
||||||
|
return sizeof(ser)-1;
|
||||||
|
//(void)str;
|
||||||
|
//return (0U);
|
||||||
}
|
}
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
Loading…
Reference in New Issue