mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
Spirit: Commit some trivial changes in preparation for a more substantial change.
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
|
||||
#if CONFIG_SPIRIT_PKTLEN < 2
|
||||
# define PKT_LENGTH_WIDTH 1 /* 0 - 1 */
|
||||
#if CONFIG_SPIRIT_PKTLEN < 4
|
||||
#elif CONFIG_SPIRIT_PKTLEN < 4
|
||||
# define PKT_LENGTH_WIDTH 2 /* 2 - 3 */
|
||||
#elif CONFIG_SPIRIT_PKTLEN < 8
|
||||
# define PKT_LENGTH_WIDTH 3 /* 4 - 7 */
|
||||
@@ -1082,6 +1082,10 @@ static void spirit_interrupt_work(FAR void *arg)
|
||||
pktmeta->pm_dest.pa_addr[0] =
|
||||
spirit_pktcommon_get_nodeaddress(spirit);
|
||||
|
||||
wlinfo("RX srcaddr=%02 destaddr=%02\n",
|
||||
pktmeta->pm_src.pa_addr[0],
|
||||
pktmeta->pm_dest.pa_addr[0]);
|
||||
|
||||
/* Add the contained IOB to the tail of the queue of
|
||||
* completed RX transfers.
|
||||
*/
|
||||
|
||||
@@ -138,7 +138,7 @@ struct spirit_pktstack_init_s
|
||||
* fixvarlen is set to STACK_LENGTH_VAR. For STack
|
||||
* packets the length width is log2( max payload
|
||||
* length + control length (0 to 4) + address length
|
||||
* (always 2)). This parameter is an FAR uint8_t */
|
||||
* (always 2)). */
|
||||
uint8_t crcmode; /* Specifies the CRC word length of packet. This
|
||||
* parameter can be any value of enum pkt_crcmode_e */
|
||||
uint8_t ctrllen; /* Specifies the length of a control field to be
|
||||
|
||||
Reference in New Issue
Block a user