数据传递概述
这些页面涵盖了可用于在线程和isr之间传递数据的内核对象。
下表总结了它们的高级特性。
Object |
Bidirectional? | Data structure | Data item size | Data Alignment | ISRs can receive? | ISRs can send? | Overrun handling |
---|---|---|---|---|---|---|---|
FIFO | No | Queue | Arbitrary [1] | 4 B [2] | Yes [3] | Yes | N/A |
LIFO | No | Queue | Arbitrary [1] | 4 B [2] | Yes [3] | Yes | N/A |
Stack | No | Array | Word | Word | Yes [3] | Yes | Undefined behavior |
Message queue | No | Ring buffer | Power of two | Power of two | Y |