|
|
@ -20,8 +20,7 @@ |
|
|
|
#include "general.h" |
|
|
|
#include "swdptap.h" |
|
|
|
|
|
|
|
uint32_t __attribute__((weak)) |
|
|
|
swdptap_seq_in(int ticks) |
|
|
|
uint32_t swdptap_seq_in(int ticks) |
|
|
|
{ |
|
|
|
uint32_t index = 1; |
|
|
|
uint32_t ret = 0; |
|
|
@ -35,8 +34,7 @@ swdptap_seq_in(int ticks) |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
bool __attribute__((weak)) |
|
|
|
swdptap_seq_in_parity(uint32_t *ret, int ticks) |
|
|
|
bool swdptap_seq_in_parity(uint32_t *ret, int ticks) |
|
|
|
{ |
|
|
|
uint32_t index = 1; |
|
|
|
uint8_t parity = 0; |
|
|
@ -55,8 +53,7 @@ swdptap_seq_in_parity(uint32_t *ret, int ticks) |
|
|
|
return parity; |
|
|
|
} |
|
|
|
|
|
|
|
void __attribute__((weak)) |
|
|
|
swdptap_seq_out(uint32_t MS, int ticks) |
|
|
|
void swdptap_seq_out(uint32_t MS, int ticks) |
|
|
|
{ |
|
|
|
while (ticks--) { |
|
|
|
swdptap_bit_out(MS & 1); |
|
|
@ -64,8 +61,7 @@ swdptap_seq_out(uint32_t MS, int ticks) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void __attribute__((weak)) |
|
|
|
swdptap_seq_out_parity(uint32_t MS, int ticks) |
|
|
|
void swdptap_seq_out_parity(uint32_t MS, int ticks) |
|
|
|
{ |
|
|
|
uint8_t parity = 0; |
|
|
|
|
|
|
|