ca13734bf0
Add kernel (Cortex-M0/M3/M4, Tricore, S32K, RISC-V ports), drivers, middleware (CAN stack, diagnostics, safety), applications, board support, build/test tooling, and documentation.
244 lines
7.1 KiB
Markdown
244 lines
7.1 KiB
Markdown
automotive_rtos/
|
|
│
|
|
├── README.md
|
|
├── LICENSE
|
|
├── Makefile
|
|
├── CMakeLists.txt
|
|
│
|
|
├── docs/
|
|
│ ├── architecture/
|
|
│ │ ├── system_architecture.md
|
|
│ │ ├── task_model.md
|
|
│ │ └── memory_map.md
|
|
│ ├── api/
|
|
│ │ ├── kernel_api.md
|
|
│ │ └── driver_api.md
|
|
│ ├── safety/
|
|
│ │ ├── safety_manual.md
|
|
│ │ ├── hazard_analysis.md
|
|
│ │ └── iso26262_compliance.md
|
|
│ └── user_guide/
|
|
│ ├── getting_started.md
|
|
│ └── configuration_guide.md
|
|
│
|
|
├── kernel/
|
|
│ ├── include/
|
|
│ │ ├── kernel.h
|
|
│ │ ├── task.h
|
|
│ │ ├── scheduler.h
|
|
│ │ ├── semaphore.h
|
|
│ │ ├── mutex.h
|
|
│ │ ├── queue.h
|
|
│ │ ├── timer.h
|
|
│ │ └── isr.h
|
|
│ │
|
|
│ ├── src/
|
|
│ │ ├── kernel_init.c
|
|
│ │ ├── scheduler.c
|
|
│ │ ├── task.c
|
|
│ │ ├── semaphore.c
|
|
│ │ ├── mutex.c
|
|
│ │ ├── queue.c
|
|
│ │ ├── timer.c
|
|
│ │ └── fault_handler.c
|
|
│ │
|
|
│ └── arch/
|
|
│ ├── arm/
|
|
│ │ ├── cortex-m0/
|
|
│ │ │ ├── port.c
|
|
│ │ │ ├── port_asm.s
|
|
│ │ │ └── portmacro.h
|
|
│ │ ├── cortex-m3/
|
|
│ │ │ ├── port.c
|
|
│ │ │ ├── port_asm.s
|
|
│ │ │ └── portmacro.h
|
|
│ │ └── cortex-m4/
|
|
│ │ ├── port.c
|
|
│ │ ├── port_asm.s
|
|
│ │ └── portmacro.h
|
|
│ │
|
|
│ └── riscv/
|
|
│ └── rv32/
|
|
│ ├── port.c
|
|
│ └── portmacro.h
|
|
│
|
|
├── drivers/
|
|
│ ├── include/
|
|
│ │ ├── can_driver.h
|
|
│ │ ├── uart_driver.h
|
|
│ │ ├── spi_driver.h
|
|
│ │ ├── i2c_driver.h
|
|
│ │ ├── gpio_driver.h
|
|
│ │ ├── adc_driver.h
|
|
│ │ └── pwm_driver.h
|
|
│ │
|
|
│ ├── src/
|
|
│ │ ├── can_driver.c
|
|
│ │ ├── uart_driver.c
|
|
│ │ ├── spi_driver.c
|
|
│ │ ├── i2c_driver.c
|
|
│ │ ├── gpio_driver.c
|
|
│ │ ├── adc_driver.c
|
|
│ │ └── pwm_driver.c
|
|
│ │
|
|
│ └── mcu_specific/
|
|
│ ├── stm32f4/
|
|
│ │ ├── stm32f4xx_hal.c
|
|
│ │ └── stm32f4xx_config.h
|
|
│ ├── nxp_s32k/
|
|
│ │ ├── s32k14x_hal.c
|
|
│ │ └── s32k14x_config.h
|
|
│ └── infineon_tricore/
|
|
│ ├── tc3xx_hal.c
|
|
│ └── tc3xx_config.h
|
|
│
|
|
├── middleware/
|
|
│ ├── can_stack/
|
|
│ │ ├── include/
|
|
│ │ │ ├── can_tp.h
|
|
│ │ │ ├── can_nm.h
|
|
│ │ │ └── uds.h
|
|
│ │ └── src/
|
|
│ │ ├── can_tp.c
|
|
│ │ ├── can_nm.c
|
|
│ │ └── uds.c
|
|
│ │
|
|
│ ├── diagnostics/
|
|
│ │ ├── include/
|
|
│ │ │ ├── dtc_manager.h
|
|
│ │ │ └── obd_ii.h
|
|
│ │ └── src/
|
|
│ │ ├── dtc_manager.c
|
|
│ │ └── obd_ii.c
|
|
│ │
|
|
│ └── safety/
|
|
│ ├── watchdog_manager.c
|
|
│ ├── memory_protection.c
|
|
│ └── e2e_protection.c
|
|
│
|
|
├── applications/
|
|
│ ├── engine_control/
|
|
│ │ ├── include/
|
|
│ │ │ ├── engine_control.h
|
|
│ │ │ └── engine_parameters.h
|
|
│ │ └── src/
|
|
│ │ ├── engine_control_task.c
|
|
│ │ ├── fuel_injection.c
|
|
│ │ └── ignition_control.c
|
|
│ │
|
|
│ ├── brake_control/
|
|
│ │ ├── include/
|
|
│ │ │ └── brake_control.h
|
|
│ │ └── src/
|
|
│ │ ├── brake_task.c
|
|
│ │ └── abs_control.c
|
|
│ │
|
|
│ ├── body_control/
|
|
│ │ ├── include/
|
|
│ │ └── src/
|
|
│ │ ├── body_control_task.c
|
|
│ │ ├── door_control.c
|
|
│ │ └── lighting_control.c
|
|
│ │
|
|
│ └── dashboard/
|
|
│ ├── include/
|
|
│ └── src/
|
|
│ ├── display_task.c
|
|
│ └── gauge_control.c
|
|
│
|
|
├── config/
|
|
│ ├── kernel_config.h
|
|
│ ├── task_config.h
|
|
│ ├── memory_config.h
|
|
│ ├── can_config.h
|
|
│ ├── mcu_config.h
|
|
│ └── board_config.h
|
|
│
|
|
├── board/
|
|
│ ├── stm32f407_discovery/
|
|
│ │ ├── board_init.c
|
|
│ │ ├── board.h
|
|
│ │ └── linker_script.ld
|
|
│ │
|
|
│ ├── nxp_s32k144_evb/
|
|
│ │ ├── board_init.c
|
|
│ │ ├── board.h
|
|
│ │ └── linker_script.ld
|
|
│ │
|
|
│ └── custom_ecu/
|
|
│ ├── board_init.c
|
|
│ ├── board.h
|
|
│ └── linker_script.ld
|
|
│
|
|
├── tests/
|
|
│ ├── unit/
|
|
│ │ ├── test_scheduler.c
|
|
│ │ ├── test_task.c
|
|
│ │ ├── test_semaphore.c
|
|
│ │ ├── test_mutex.c
|
|
│ │ └── test_queue.c
|
|
│ │
|
|
│ ├── integration/
|
|
│ │ ├── test_can_communication.c
|
|
│ │ ├── test_timing.c
|
|
│ │ └── test_fault_handling.c
|
|
│ │
|
|
│ ├── system/
|
|
│ │ ├── test_full_system.c
|
|
│ │ └── test_stress.c
|
|
│ │
|
|
│ └── hardware/
|
|
│ ├── test_gpio.c
|
|
│ ├── test_adc.c
|
|
│ └── test_pwm.c
|
|
│
|
|
├── tools/
|
|
│ ├── build_scripts/
|
|
│ │ ├── build_all.sh
|
|
│ │ ├── build_target.sh
|
|
│ │ └── flash_target.sh
|
|
│ │
|
|
│ ├── analysis/
|
|
│ │ ├── stack_usage_analyzer.py
|
|
│ │ ├── timing_analyzer.py
|
|
│ │ └── misra_checker.sh
|
|
│ │
|
|
│ ├── debugging/
|
|
│ │ ├── gdb_init.gdb
|
|
│ │ └── trace_analyzer.py
|
|
│ │
|
|
│ └── configuration/
|
|
│ ├── config_generator.py
|
|
│ └── task_priority_calculator.py
|
|
│
|
|
├── third_party/
|
|
│ ├── unity/ # Unit testing framework
|
|
│ ├── cmock/ # Mock objects for testing
|
|
│ └── cmsis/ # ARM CMSIS headers
|
|
│
|
|
├── scripts/
|
|
│ ├── setup_environment.sh
|
|
│ ├── generate_docs.sh
|
|
│ ├── run_tests.sh
|
|
│ └── static_analysis.sh
|
|
│
|
|
├── .github/
|
|
│ ├── workflows/
|
|
│ │ ├── build.yml
|
|
│ │ ├── test.yml
|
|
│ │ └── static-analysis.yml
|
|
│ └── ISSUE_TEMPLATE/
|
|
│ ├── bug_report.md
|
|
│ └── feature_request.md
|
|
│
|
|
├── .vscode/
|
|
│ ├── launch.json
|
|
│ ├── tasks.json
|
|
│ └── settings.json
|
|
│
|
|
├── .gitignore
|
|
├── .gitattributes
|
|
├── CHANGELOG.md
|
|
├── CONTRIBUTING.md
|
|
└── SECURITY.md
|