mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Remove USE_SWDIO, simply refer to DEBUG (#12361)
Remove USE_SWDIO, simply refer to debug Command line of `make TARGET=STM32F405 DEBUG=GDB` will trigger this. Alternative is simply `make TARGET=STM32F405 EXTRA_FLAGS="-DDEBUG"`
This commit is contained in:
parent
4fe980384c
commit
3598f3e41a
8 changed files with 84 additions and 16 deletions
|
@ -256,20 +256,6 @@ static void sdCardAndFSInit(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_SWDIO
|
||||
static void swdPinsInit(void)
|
||||
{
|
||||
IO_t io = IOGetByTag(DEFIO_TAG_E(PA13)); // SWDIO
|
||||
if (IOGetOwner(io) == OWNER_FREE) {
|
||||
IOInit(io, OWNER_SWD, 0);
|
||||
}
|
||||
io = IOGetByTag(DEFIO_TAG_E(PA14)); // SWCLK
|
||||
if (IOGetOwner(io) == OWNER_FREE) {
|
||||
IOInit(io, OWNER_SWD, 0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void init(void)
|
||||
{
|
||||
#ifdef SERIAL_PORT_COUNT
|
||||
|
@ -1030,8 +1016,8 @@ void init(void)
|
|||
spiInitBusDMA();
|
||||
#endif
|
||||
|
||||
#ifdef USE_SWDIO
|
||||
swdPinsInit();
|
||||
#ifdef DEBUG
|
||||
debugInit();
|
||||
#endif
|
||||
|
||||
unusedPinsInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue