diff --git a/docs/Board - KroozX.md b/docs/Board - KroozX.md new file mode 100755 index 0000000000..7167489c3b --- /dev/null +++ b/docs/Board - KroozX.md @@ -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) \ No newline at end of file diff --git a/src/main/target/KROOZX/config.c b/src/main/target/KROOZX/config.c deleted file mode 100755 index 6dd1ecef56..0000000000 --- a/src/main/target/KROOZX/config.c +++ /dev/null @@ -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 . - */ - -#include -#include - -#include - -#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 diff --git a/src/main/target/KROOZX/target.c b/src/main/target/KROOZX/target.c index 05fbcb7775..2467186c2e 100755 --- a/src/main/target/KROOZX/target.c +++ b/src/main/target/KROOZX/target.c @@ -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 {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 - //{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 }; diff --git a/src/main/target/KROOZX/target.h b/src/main/target/KROOZX/target.h index 1704630327..312904221d 100755 --- a/src/main/target/KROOZX/target.h +++ b/src/main/target/KROOZX/target.h @@ -160,6 +160,6 @@ #define TARGET_IO_PORTC 0xffff #define TARGET_IO_PORTD (BIT(2)) -#define MAX_PWM_OUTPUT_PORTS 9 -#define USABLE_TIMER_CHANNEL_COUNT 10 +#define MAX_PWM_OUTPUT_PORTS 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))