In the previous implementation, we assumed that we were running on Keil,
so for tools such as OpenOCD, they would not be able to establish a
connection using the SPI rate.
(cherry picked from commit ef71750678aaddbb4d55eb2b428c44b3af122556)
Connection problems may occur at SPI speeds when DAP_Connect and
DAP_SWJ_Clock are called in different orders.
Let's setup SWD at SPI rates to avoid potential timing issues.
(cherry picked from commit a89be4248eb7676109183183b0360dd57e02f039)