Skip to content

Commit

Permalink
picoprobe: use GPIO definitions for the new debug adapter, PCB R2
Browse files Browse the repository at this point in the history
Limitations:
- Power LED doesn't yet do anything sensible
- The level-shifted SWDIO input isn't utilised by the PIO SM, so only 3.3v I/O

Signed-off-by: Jonathan Bell <[email protected]>
  • Loading branch information
P33M committed Feb 27, 2023
1 parent e187e57 commit db24224
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/picoprobe_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,24 @@

// PIO config
#define PROBE_SM 0
#define PROBE_PIN_OFFSET 2
#define PROBE_PIN_OFFSET 12
#define PROBE_PIN_SWCLK (PROBE_PIN_OFFSET + 0) // 2
#define PROBE_PIN_SWDIO (PROBE_PIN_OFFSET + 1) // 3
#define PROBE_PIN_SWDIO (PROBE_PIN_OFFSET + 2) // 3

// Target reset config
#define PROBE_PIN_RESET 6
#define PROBE_PIN_RESET 0

// UART config
#define PICOPROBE_UART_TX 4
#define PICOPROBE_UART_RX 5
#define PICOPROBE_UART_INTERFACE uart1
#define PICOPROBE_UART_BAUDRATE 115200

#define PICOPROBE_DAP_CONNECTED_LED 15
#define PICOPROBE_DAP_RUNNING_LED 16
#define PICOPROBE_UART_RX_LED 7
#define PICOPROBE_UART_TX_LED 8

// LED config
#ifndef PICOPROBE_LED

Expand Down

0 comments on commit db24224

Please sign in to comment.