1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 11:29:56 +03:00

Added KroozX description

This commit is contained in:
Sergey Krukovski 2017-03-27 23:50:58 +02:00
parent 2533a004a7
commit 7cd273144f
4 changed files with 26 additions and 44 deletions

23
docs/Board - KroozX.md Executable file
View file

@ -0,0 +1,23 @@
# Board - KroozX
![KroozX](https://farm4.staticflickr.com/3844/33558972311_507c7d6e36_h.jpg)
## Features
* MCU: STM32F4RGT6
* IMU: MPU6000 (SPI bus), ICM20608 (I2C bus)
* BARO: MS5611
* VCP: Yes
* Hardware UARTS: 5 (RX6/RX1/TX1 with onboard inverters)
* PWM outputs: 10
* OSD: MAX7456 with a switch for 2 video channel
* Blackbox: MicroSD card slot (SD/SDHC, upto 64GB)
* PPM/SBUS: RX6 with onboard inverter
* Wireless: HC-12 onboard transceiver
* Battery Voltage Sensor: Yes, up to 6S input
* Current Sensor: Yes
* Integrated Voltage Regulator: 5V 2000mA, 10V 2000mA with LC filter
* Buttons: No (powering the board with plugged USB starts STM DFU bootloader)
* Buzzer driver: Yes
* RSSI Analog/PWM port: Yes
* SWD port: Yes (SWIO, SWCLK, RST pins)

View file

@ -1,41 +0,0 @@
/*
* 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 <stdbool.h>
#include <stdint.h>
#include <platform.h>
#include "config/config_master.h"
#define VBAT_SCALE 113
#define CURRENT_SCALE 1000
#define CURRENT_OFFSET 0
#define OSD_POS(x,y) (x | (y << 5))
#ifdef TARGET_CONFIG
void targetConfiguration(master_t *config)
{
config->batteryConfig.vbatscale = VBAT_SCALE;
config->batteryConfig.currentMeterScale = CURRENT_SCALE;
config->batteryConfig.currentMeterOffset = CURRENT_OFFSET;
config->barometerConfig.baro_hardware = 0;
config->compassConfig.mag_hardware = 0;
config->osdConfig.item_pos[OSD_MAIN_BATT_VOLTAGE] = OSD_POS(12, 1) | VISIBLE_FLAG;
}
#endif

View file

@ -92,6 +92,6 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
{TIM3, IO_TAG(PB0), TIM_Channel_3, TIM3_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM3 }, // PWM6 {TIM3, IO_TAG(PB0), TIM_Channel_3, TIM3_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM3 }, // PWM6
{TIM4, IO_TAG(PB8), TIM_Channel_3, TIM4_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM4 }, // PWM7 {TIM4, IO_TAG(PB8), TIM_Channel_3, TIM4_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM4 }, // PWM7
{TIM4, IO_TAG(PB9), TIM_Channel_4, TIM4_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM4 }, // PWM8 {TIM4, IO_TAG(PB9), TIM_Channel_4, TIM4_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM4 }, // PWM8
//{TIM3, IO_TAG(PC6), TIM_Channel_1, TIM3_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM3 }, // PWM9 {TIM12, IO_TAG(PB14), TIM_Channel_1, TIM8_BRK_TIM12_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM12}, // PWM9
{TIM12, IO_TAG(PB15), TIM_Channel_2, TIM8_BRK_TIM12_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM12}, // PWM10 {TIM12, IO_TAG(PB15), TIM_Channel_2, TIM8_BRK_TIM12_IRQn, 1, IOCFG_AF_PP_PD, GPIO_AF_TIM12}, // PWM10
}; };

View file

@ -160,6 +160,6 @@
#define TARGET_IO_PORTC 0xffff #define TARGET_IO_PORTC 0xffff
#define TARGET_IO_PORTD (BIT(2)) #define TARGET_IO_PORTD (BIT(2))
#define MAX_PWM_OUTPUT_PORTS 9 #define MAX_PWM_OUTPUT_PORTS 10
#define USABLE_TIMER_CHANNEL_COUNT 10 #define USABLE_TIMER_CHANNEL_COUNT 11
#define USED_TIMERS (TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(8) | TIM_N(12)) #define USED_TIMERS (TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(8) | TIM_N(12))