-
Notifications
You must be signed in to change notification settings - Fork 7
Specifiers
Hrisabh Yadav edited this page Nov 14, 2025
·
1 revision
Pin specification definitions for the MagisV2 system.
typedef enum unibus {
Pin1 = 1, Pin2, Pin3, Pin4, Pin5,
Pin6, Pin7, Pin8, Pin9, Pin10,
Pin11, Pin12, Pin13, Pin14, Pin15,
Pin16, Pin17, Pin18, Pin19, Pin20
} unibus_e;Defines the available pins on the MagisV2 system for GPIO, PWM, and other peripheral functions.
// Use pin identifiers for peripheral configuration
Peripheral_Init(GPIO_5, OUTPUT); // Configure Pin5 as GPIO output
Peripheral_Init(PWM_3, 50); // Configure Pin for PWM at 50Hz
// Pin mapping is handled internally by utility functions
int port = getGPIOport(Pin5);
GPIO_Pin pin = getGPIOpin(Pin5);
uint32_t clock = getGPIOclock(Pin5);The unibus_e enumeration provides a unified pin numbering system that maps to the actual hardware pins on the MagisV2 flight controller. The specific hardware mapping is handled internally by the system utilities.
Note: Pin assignments and capabilities may vary depending on the specific MagisV2 hardware revision. Refer to the hardware documentation for detailed pin specifications and limitations.
MagisV2 © 2025 Drona Aviation | Licensed under GPL-3.0 | Report Issues