From be0a29604912077aca68b10f2ae67f1291e95bba Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 9 Jul 2013 10:41:17 -0300 Subject: [PATCH] cpu/avr/radio/rf230bb/rf230bb.c (rf230_transmit): extend comment on tx sequence Explain that the transmission is intentionally started before copying the frame to the buffer. --- cpu/avr/radio/rf230bb/rf230bb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/avr/radio/rf230bb/rf230bb.c b/cpu/avr/radio/rf230bb/rf230bb.c index 65f961693..534b0c43d 100644 --- a/cpu/avr/radio/rf230bb/rf230bb.c +++ b/cpu/avr/radio/rf230bb/rf230bb.c @@ -964,7 +964,9 @@ rf230_transmit(unsigned short payload_len) /* No interrupts across frame download! */ HAL_ENTER_CRITICAL_REGION(); - /* Toggle the SLP_TR pin to initiate the frame transmission */ + /* Toggle the SLP_TR pin to initiate the frame transmission, then transfer + * the frame. We have about 16 us + the on-air transmission time of 40 bits + * (for the synchronization header) before the transceiver sends the PHR. */ hal_set_slptr_high(); hal_set_slptr_low(); hal_frame_write(buffer, total_len);