How sergegrin/grin_fly_sky works
This is firmware for the FlySky FS-i6 transmitter. The principal workflow is: radio input and model settings feed transmitter runtime logic, which emits the selected PPM, internal A7105/AFHDS, or external CRSF/ExpressLRS output; telemetry and configuration return through the display and menus. Other documented capabilities include model persistence, telemetry screens, and DFPlayer voice output. Edges reflect README statements and SOURCE INDEX references; unsampled protocol and runtime details are represented at subsystem level where the tree supports them.
Main entry points: menus.cpp Setup and telemetry menus · er9x.cpp Transmitter core · crossfire.cpp CRSF link and telemetry · pulses.cpp Pulse generation
Components 28
Radio platform
- FS-i6 board I/O
Sources/I6/BoardI6.cpp - Peripheral drivers
Sources/drivers.cpp - MKL16Z4 device definitions
CMSIS_4/CMSIS/Include/MKL16Z4.h - Device feature definitions
CMSIS_4/CMSIS/Include/MKL16Z4_features.h - Cortex-M0+ core support
CMSIS_4/CMSIS/Include/core_cm0plus.h - CMSIS GCC intrinsics
CMSIS_4/CMSIS/Include/cmsis_gcc.h - Device register selection
CMSIS_4/CMSIS/Include/fsl_device_registers.h - Clock and system setup
Kinetis_KL/CMSIS/Device/Source/system_MKL16Z4.c - Cortex-M startup
gcc/startup_MKL16Z4.c
Transmitter runtime
- Firmware entry
Sources/main.cpp - Transmitter core
Sources/er9x.cpp - Pulse generation
Sources/pulses.cpp - Model templates
Sources/templates.cpp
RF and telemetry
- A7105 RF interface
Sources/A7105_SPI.cpp - AFHDS protocol
Sources/AFHDS.cpp - AFHDS2A protocol
Sources/AFHDS2A_a7105.cpp - CRSF link and telemetry
Sources/crossfire/crossfire.cpp - CRSF CRC
Sources/crossfire/crc_crsf.cpp
User interface
- Setup and telemetry menus
Sources/menus.cpp - LCD rendering
Sources/lcd.cpp - ExpressLRS setup menu
Sources/crossfire/elrs.cpp
Persistence and audio
- Model and radio storage
Sources/pers.cpp - EEPROM file access
Sources/file.cpp - Audio and voice
Sources/audio.cpp
Other components
- Radio operator
- DFPlayer voice module
- External ExpressLRS TX
- Internal A7105 module
Connections 34
- Radio operator → Setup and telemetry menus: operates
- Firmware entry → Transmitter core: starts
Sources/main.cpp - Transmitter core → Setup and telemetry menus: dispatches
Sources/er9x.cpp - Transmitter core → Pulse generation: uses
Sources/er9x.cpp - Transmitter core → LCD rendering: updates
Sources/er9x.cpp - Transmitter core → Audio and voice: triggers
Sources/er9x.cpp - Setup and telemetry menus → LCD rendering: renders
Sources/menus.cpp - Setup and telemetry menus → Model templates: uses
Sources/menus.cpp - Setup and telemetry menus → Pulse generation: configures
Sources/menus.cpp - Setup and telemetry menus → ExpressLRS setup menu: opens
Sources/menus.cpp - FS-i6 board I/O → CRSF link and telemetry: dispatches
Sources/I6/BoardI6.cpp - FS-i6 board I/O → Pulse generation: provides I/O
Sources/I6/BoardI6.cpp - FS-i6 board I/O → A7105 RF interface: provides I/O
Sources/I6/BoardI6.cpp - Peripheral drivers → Pulse generation: supports
Sources/drivers.cpp - Peripheral drivers → Audio and voice: supports
Sources/drivers.cpp - Pulse generation → A7105 RF interface: drives
- A7105 RF interface → AFHDS protocol: supports
- A7105 RF interface → AFHDS2A protocol: supports
Sources/AFHDS2A_a7105.cpp - Pulse generation → CRSF link and telemetry: drives
- CRSF link and telemetry → External ExpressLRS TX: exchanges frames
- CRSF link and telemetry → CRSF CRC: checks frames
Sources/crossfire/crossfire.cpp - ExpressLRS setup menu → CRSF link and telemetry: sends configuration
- CRSF link and telemetry → Setup and telemetry menus: provides telemetry
- A7105 RF interface → Internal A7105 module: controls
- Transmitter core → Model and radio storage: loads settings
Sources/er9x.cpp - Model and radio storage → EEPROM file access: uses
Sources/pers.cpp - Audio and voice → DFPlayer voice module: drives UART
- Device register selection → MKL16Z4 device definitions: selects
CMSIS_4/CMSIS/Include/fsl_device_registers.h - Device register selection → Device feature definitions: includes
CMSIS_4/CMSIS/Include/fsl_device_registers.h - MKL16Z4 device definitions → Cortex-M0+ core support: includes core
CMSIS_4/CMSIS/Include/MKL16Z4.h - Cortex-M0+ core support → CMSIS GCC intrinsics: uses intrinsics
CMSIS_4/CMSIS/Include/core_cm0plus.h - Clock and system setup → MKL16Z4 device definitions: configures
Kinetis_KL/CMSIS/Device/Source/system_MKL16Z4.c - Cortex-M startup → Clock and system setup: initializes system
- FS-i6 board I/O → MKL16Z4 device definitions: uses registers