From 723e59264c65d1bb6ff662c70c5051fc3f170679 Mon Sep 17 00:00:00 2001 From: Edvard Pettersen Date: Thu, 15 Feb 2018 12:51:15 +0100 Subject: [PATCH] Added TX power table sizes for RF-prop settings --- arch/cpu/simplelink/rf-settings/rf-prop-settings.c | 2 ++ arch/cpu/simplelink/rf-settings/rf-prop-settings.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/cpu/simplelink/rf-settings/rf-prop-settings.c b/arch/cpu/simplelink/rf-settings/rf-prop-settings.c index 4deeca8d3..2c654cf24 100644 --- a/arch/cpu/simplelink/rf-settings/rf-prop-settings.c +++ b/arch/cpu/simplelink/rf-settings/rf-prop-settings.c @@ -68,6 +68,7 @@ RF_TxPower RF_propTxPower779_930[] = { { -10, 0x08c0 }, {-128, 0xFFFF }, }; +const size_t RF_propTxPower779_930Size = sizeof(RF_propTxPower779_930) / sizeof(RF_propTxPower779_930[0]); /*---------------------------------------------------------------------------*/ /* Default TX power settings for the 431-527MHz band */ RF_TxPower RF_propTxPower431_527[] = { @@ -78,6 +79,7 @@ RF_TxPower RF_propTxPower431_527[] = { { 6, 0x22c4 }, {-128, 0xFFFF }, }; +const size_t RF_propTxPower431_527Size = sizeof(RF_propTxPower431_527) / sizeof(RF_propTxPower431_527[0]); /*---------------------------------------------------------------------------*/ /** * @} diff --git a/arch/cpu/simplelink/rf-settings/rf-prop-settings.h b/arch/cpu/simplelink/rf-settings/rf-prop-settings.h index d897449ce..947c5254e 100644 --- a/arch/cpu/simplelink/rf-settings/rf-prop-settings.h +++ b/arch/cpu/simplelink/rf-settings/rf-prop-settings.h @@ -17,7 +17,10 @@ // RF TX power table extern RF_TxPower RF_propTxPower779_930[]; +extern const size_t RF_propTxPower779_930Size; + extern RF_TxPower RF_propTxPower431_527[]; +extern const size_t RF_propTxPower431_527Size; // TI-RTOS RF Mode Object extern RF_Mode RF_propMode;