Ajout FishPeper

This commit is contained in:
Serge NOEL
2026-04-21 12:19:15 +02:00
parent 6744da3f88
commit 0c361a2440
2160 changed files with 589301 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
# tinyFISH target
this code runs on my custom tinyFISH all-in-one flight controller
more coming soon...

View File

@@ -0,0 +1,76 @@
// pin layout ISP header
#define ISP_DATA P2_1
#define ISP_CLOCK P2_2
// NOT USED
#define PPM_OUT_PIN 4
// NOT USED
#define ADC_PORT P0
#define ADC0 5
#define ADC1 6
// #define ADC1_USE_ACS712
// voltage divider on my board is 10 / 5.6 k, scale to 100 / 56 to avoid floating point calc
#define ADC0_DIVIDER_A 100
#define ADC0_DIVIDER_B 56
#define BIND_PORT P0
#define BIND_PIN 3
#define BIND2_PORT P2
#define BIND2_PIN 2
// LEDS
#define LED_GREEN_PORT P0
#define LED_GREEN_PIN 4
#define LED_RED_PORT P0
#define LED_RED_PIN 1
// DEBUG
#define DEBUG_UART USART1_P0
// SBUS
// enable SBUS output -> this will DISABLE ppm!
#define SBUS_ENABLED
#define SBUS_UART USART0_P1
// Note: default/futaba is INVERTED=1! (use this for a cc3d etc)
// inverted => idle = LOW
// non inverted => idle = high
// #define SBUS_INVERTED
// PPM (only used if sbus is disabled)
// invert SBUS output (normal is non inverted)
// #define PPM_INVERTED
// hub telemetry input (soft serial)
#define HUB_TELEMETRY_ON_SBUS_UART
// #define HUB_TELEMETRY_INVERTED
#ifndef HUB_TELEMETRY_ON_SBUS_UART
// if not shared with sbus, use any pin in softserial mode at 9600baud
#define HUB_TELEMETRY_PORT P1
#define HUB_TELEMETRY_PIN 3
#endif
// bootloader config
#define BOOTLOADER_LED_GREEN_PORT LED_GREEN_PORT
#define BOOTLOADER_LED_GREEN_PIN LED_GREEN_PIN
#define BOOTLOADER_LED_RED_PORT LED_RED_PORT
#define BOOTLOADER_LED_RED_PIN LED_RED_PIN
// bootloader runs on UART0 P1
#define BOOTLOADER_UART_NUM 0
#define BOOTLOADER_UART_PORT 1
#define BOOTLOADER_UART_INVERTED 0
#define BOOTLOADER_UART_BAUDRATE 100000
#define BOOTLOADER_UART_USE_PARITY 1
#define BOOTLOADER_UART_USE_2STOPBITS 1
// use ISP interface clock pin as bootloader enable pin
// pull this low during startup to enter bootloader mode
#define BOOTLOADER_ENABLE_PORT P2
#define BOOTLOADER_ENABLE_PIN 1
#define DEFAULT_FSCAL_VALUE -69

View File

@@ -0,0 +1,9 @@
# configuration of this board
# cc2510f16 has 16k flash -> 0x4000
# cc2510f32 has 32k flash -> 0x8000
FLASH_SIZE=0x8000
# continue with normal cc251x build
ARCH_DIR = arch/cc251x
ARCH_MAKEFILE =$(ARCH_DIR)/cc251x.mk