mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
Code re-organisation: src/platform/xxx for the MCU type (#13955)
This commit is contained in:
parent
7158ff7081
commit
b21cfe3282
311 changed files with 645 additions and 917 deletions
36
src/platform/APM32/debug.c
Normal file
36
src/platform/APM32/debug.c
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is free software. You can redistribute this software
|
||||
* and/or modify this software under the terms of the GNU General
|
||||
* Public License as published by the Free Software Foundation,
|
||||
* either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this software.
|
||||
*
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "platform.h"
|
||||
#include "build/debug.h"
|
||||
#include "drivers/io.h"
|
||||
|
||||
void debugInit(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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue