diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ao_dbg.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ao_dbg.c b/src/ao_dbg.c index e7fbd7ad..0d9ec8c0 100644 --- a/src/ao_dbg.c +++ b/src/ao_dbg.c @@ -164,6 +164,12 @@ ao_dbg_read_byte(void)  static void  ao_dbg_set_pins(void)  { +	/* Make the DBG pins GPIOs. On TeleMetrum, this will +	 * disable the SPI link, so don't expect SPI to work after +	 * using the debugger. +	 */ +	DBG_PORT_SEL &= ~(DBG_CLOCK|DBG_DATA|DBG_RESET_N); +  	/* make DBG_DATA tri-state */  	DBG_PORT_INP |= DBG_DATA;  | 
