[riot-notifications] [projects] added test application for nativenet transceiver (#25)

Christian Mehlis notifications at github.com
Tue Aug 20 20:55:30 CEST 2013


> +    radio_packet_t p;
> +
> +    mesg.type = SND_PKT;
> +    mesg.content.ptr = (char*) &tcmd;
> +
> +    tcmd.transceivers = TRANSCEIVER_NATIVE;
> +    tcmd.data = &p;
> +
> +    p.length = PACKET_SIZE;
> +    p.dst = 0;
> +    snd_buffer[0] = SENDER_ADDR;
> +
> +    puts("Start sending packets");
> +    while (1) {
> +        snd_buffer[1] = (i & 0xFF00) >> 8;
> +        snd_buffer[2] = i & 0x00FF;

please define two macros for the right hand code

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/projects/pull/25/files#r5877594
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130820/6883f5b6/attachment.html>


More information about the notifications mailing list