mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/opendsme: fix compilation with LLVM
This commit is contained in:
parent
d2e04ed14c
commit
a95be634d1
@ -51,25 +51,25 @@ static void _handle_rx_offload(event_t *ev);
|
|||||||
static void _start_of_cfp_handler(event_t *ev);
|
static void _start_of_cfp_handler(event_t *ev);
|
||||||
|
|
||||||
/* Event used for ACK Timeout */
|
/* Event used for ACK Timeout */
|
||||||
static event_t acktimer_ev = {0, _acktimer_ev_handler};
|
static event_t acktimer_ev = {{}, _acktimer_ev_handler};
|
||||||
|
|
||||||
/* Event used for CCA Done */
|
/* Event used for CCA Done */
|
||||||
static event_t cca_ev = {0, _cca_ev_handler};
|
static event_t cca_ev = {{}, _cca_ev_handler};
|
||||||
|
|
||||||
/* Event used for timer events */
|
/* Event used for timer events */
|
||||||
static event_t timer_event = {0, _timer_ev_handler};
|
static event_t timer_event = {{}, _timer_ev_handler};
|
||||||
|
|
||||||
/* Event used for TX Done */
|
/* Event used for TX Done */
|
||||||
static event_t tx_done_event = {0, _tx_done_handler};
|
static event_t tx_done_event = {{}, _tx_done_handler};
|
||||||
|
|
||||||
/* Event used for RX Done */
|
/* Event used for RX Done */
|
||||||
static event_t rx_done_event = {0, _rx_done_handler};
|
static event_t rx_done_event = {{}, _rx_done_handler};
|
||||||
|
|
||||||
/* Event used for offloading the receive procedure */
|
/* Event used for offloading the receive procedure */
|
||||||
static event_t rx_offload_ev = {0, _handle_rx_offload};
|
static event_t rx_offload_ev = {{}, _handle_rx_offload};
|
||||||
|
|
||||||
/* Event used for offloading the start of a CFP */
|
/* Event used for offloading the start of a CFP */
|
||||||
static event_t start_of_cfp_ev = {0, _start_of_cfp_handler};
|
static event_t start_of_cfp_ev = {{}, _start_of_cfp_handler};
|
||||||
|
|
||||||
void _handle_rx_offload(event_t *ev)
|
void _handle_rx_offload(event_t *ev)
|
||||||
{
|
{
|
||||||
|
@ -117,6 +117,8 @@ static int _set(gnrc_netif_t *netif, const gnrc_netapi_opt_t *opt)
|
|||||||
case NETOPT_LINK:
|
case NETOPT_LINK:
|
||||||
m_dsme.initialize(_pan_coord);
|
m_dsme.initialize(_pan_coord);
|
||||||
m_dsme.start();
|
m_dsme.start();
|
||||||
|
assert(*(netopt_enable_t *)opt->data == NETOPT_ENABLE);
|
||||||
|
res = sizeof(netopt_enable_t);
|
||||||
break;
|
break;
|
||||||
case NETOPT_PAN_COORD:
|
case NETOPT_PAN_COORD:
|
||||||
if (*((bool *)opt->data) == true) {
|
if (*((bool *)opt->data) == true) {
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief check whether the message has payload
|
* @brief check whether the message has payload
|
||||||
*/
|
*/
|
||||||
bool hasPayload()
|
bool hasPayload() override
|
||||||
{
|
{
|
||||||
return this->pkt != NULL && this->pkt->size > 0;
|
return this->pkt != NULL && this->pkt->size > 0;
|
||||||
}
|
}
|
||||||
@ -93,7 +93,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief get the total number of symbols in current frame
|
* @brief get the total number of symbols in current frame
|
||||||
*/
|
*/
|
||||||
uint16_t getTotalSymbols()
|
uint16_t getTotalSymbols() override
|
||||||
{
|
{
|
||||||
DSME_ASSERT(pkt);
|
DSME_ASSERT(pkt);
|
||||||
/* Hardcoded to O-QPSK */
|
/* Hardcoded to O-QPSK */
|
||||||
@ -116,7 +116,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief get IEEE 802.15.4 header
|
* @brief get IEEE 802.15.4 header
|
||||||
*/
|
*/
|
||||||
IEEE802154eMACHeader& getHeader()
|
IEEE802154eMACHeader& getHeader() override
|
||||||
{
|
{
|
||||||
return macHdr;
|
return macHdr;
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief callback to offload the start of CFP
|
* @brief callback to offload the start of CFP
|
||||||
*/
|
*/
|
||||||
void scheduleStartOfCFP();
|
void scheduleStartOfCFP() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the minimum LQI. Beacons with LQI lower than this will not be
|
* @brief Get the minimum LQI. Beacons with LQI lower than this will not be
|
||||||
@ -321,12 +321,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief turn on transceiver
|
* @brief turn on transceiver
|
||||||
*/
|
*/
|
||||||
void turnTransceiverOn();
|
void turnTransceiverOn() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief turn off transceiver
|
* @brief turn off transceiver
|
||||||
*/
|
*/
|
||||||
void turnTransceiverOff();
|
void turnTransceiverOff() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief get extended address
|
* @brief get extended address
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user