Design a high-level architecture for a system that must read sensor data every 1ms, log it to flash memory, and transmit it over CAN bus.