Skip to content

Commit

Permalink
Merge pull request iNavFlight#7574 from sdellava/Add-pinio-to-FLYVOOF457
Browse files Browse the repository at this point in the history
Added PINIO and USER1 mode to FLYWOOF745 and FLYWOOF745
  • Loading branch information
DzikuVx authored Nov 8, 2021
2 parents c4ecdd7 + ed4d232 commit 3b77031
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/main/target/FLYWOOF745/config.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* This file is part of Cleanflight.
*
* Cleanflight is free software: you can redistribute it and/or modify
* it 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.
*
* Cleanflight 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 Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdint.h>
#include "platform.h"

#include "fc/fc_msp_box.h"

#include "io/piniobox.h"

void targetConfiguration(void)
{
pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1;
}
1 change: 1 addition & 0 deletions src/main/target/FLYWOOF745/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "drivers/pwm_mapping.h"
#include "drivers/timer.h"
#include "drivers/bus.h"
#include "drivers/pinio.h"

const timerHardware_t timerHardware[] = {
DEF_TIM(TIM1, CH3, PE13, TIM_USE_PPM, 0, 1), // PPM, DMA2_ST6
Expand Down
5 changes: 5 additions & 0 deletions src/main/target/FLYWOOF745/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,8 @@
#define TARGET_IO_PORTE 0xffff

#define MAX_PWM_OUTPUT_PORTS 8

// *************** PINIO ***************************
#define USE_PINIO
#define USE_PINIOBOX
#define PINIO1_PIN PC0

0 comments on commit 3b77031

Please sign in to comment.