[riot-notifications] [RIOT-OS/RIOT] CC1312R Sub-GHz netdev driver (Proof of Concept) (#13295)

Jean Pierre Dudey notifications at github.com
Mon May 11 17:20:20 CEST 2020

@jeandudey commented on this pull request.

> +#include "cc26x2_cc13x2_rfc.h"
+#include "cc26xx_cc13xx_rfc_mailbox.h"
+#include "cc26xx_cc13xx_rfc_prop_mailbox.h"
+#include "cc26xx_cc13xx_rfc_queue.h"
+#include "vendor/rf_patch_cpe_prop.h"
+#define ENABLE_DEBUG (0)
+#include "debug.h"
+#include "cpu.h"
+#define TX_BUF_SIZE (144)
+static uint8_t _tx_buf0[TX_BUF_SIZE] __attribute__ ((aligned(4)));
+#define RX_BUF_SIZE (144)

Finally I managed to change this to the size of the frame + the size of the data entry + 1 byte so the buffers in the array get aligned correctly, this needs to be modified (so we don't manually pad it) may be using an union for the RX buffer.

Something like this:

typedef union {
    rfc_data_entry_t entry;
    uint8_t buf[IEEE802154G_FRAME_LEN_MAX + sizeof(rfc_data_entry_t)];
} rx_buf_t;

To avoid casting the bufer later to an `rfc_data_entry_t`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200511/7c96bd9b/attachment.htm>

More information about the notifications mailing list