How macformula/racecar works
Main System Components
a) Hardware Layer
• STM32F767 microcontrollers
• CAN bus network
• Various peripherals (ADC, PWM, GPIO, etc.)
• Sensors and actuators
b) MCAL (Microcontroller Abstraction Layer)
• Platform-specific implementations (stm32f767, linux, raspi, cli)
• Peripheral drivers (CAN, ADC, GPIO, PWM)
• OS abstractions (RTOS features)
c) Shared Components
• Communication protocols (CAN messaging)
• Control algorithms
• Utility functions
• OS abstractions
d) Application Layer
• Project-specific implementations:
• FrontController
• LVController (Low Voltage)
• TMS (Thermal Management System)
• Demo projects
Relationships and Data Flow
• Hardware interfaces between components
• CAN message flow between controllers
• Driver abstraction layers
• Control signal paths
Specific Implementation Details
Specialized sections for:
• RTOS implementation
• CAN message routing
• Platform abstraction architecture
• Error handling system
[Application Layer]
• ↑↓
[Shared Components]
• ↑↓
[MCAL Abstraction]
• ↑↓
[Hardware Layer]
Key Elements to Highlight
• Cross-platform support (STM32, Linux, Raspberry Pi, CLI)
• Real-time operating system capabilities
• CAN bus communication network
• Sensor and actuator interfaces
• Control system implementation