mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ba3088c4bd
into separate patch files
60 lines
1.9 KiB
Diff
60 lines
1.9 KiB
Diff
*** stock_iot-lab_M3/openwsn/02b-MAChigh/res.h Thu Apr 24 11:01:36 2014
|
|
--- riot-openwsn-wip/openwsn/02b-MAChigh/res.h Thu Apr 24 16:55:54 2014
|
|
***************
|
|
*** 7,28 ****
|
|
\addtogroup RES
|
|
\{
|
|
*/
|
|
|
|
//=========================== define ==========================================
|
|
|
|
//=========================== typedef =========================================
|
|
|
|
! //=========================== variables =======================================
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void res_init();
|
|
! bool debugPrint_myDAGrank();
|
|
// from upper layer
|
|
! error_t res_send(OpenQueueEntry_t *msg);
|
|
// from lower layer
|
|
! void task_resNotifSendDone();
|
|
! void task_resNotifReceive();
|
|
|
|
/**
|
|
\}
|
|
--- 7,38 ----
|
|
\addtogroup RES
|
|
\{
|
|
*/
|
|
+ #include "opentimers.h"
|
|
|
|
//=========================== define ==========================================
|
|
|
|
//=========================== typedef =========================================
|
|
|
|
! //=========================== module variables ================================
|
|
!
|
|
! typedef struct {
|
|
! uint16_t periodMaintenance;
|
|
! bool busySendingKa; // TRUE when busy sending a keep-alive
|
|
! bool busySendingAdv; // TRUE when busy sending an advertisement
|
|
! uint8_t dsn; // current data sequence number
|
|
! uint8_t MacMgtTaskCounter; // counter to determine what management task to do
|
|
! opentimer_id_t timerId;
|
|
! } res_vars_t;
|
|
|
|
//=========================== prototypes ======================================
|
|
|
|
! void res_init(void);
|
|
! uint8_t debugPrint_myDAGrank(void); // TODO: was bool but complained "conflicting types"
|
|
// from upper layer
|
|
! owerror_t res_send(OpenQueueEntry_t *msg);
|
|
// from lower layer
|
|
! void task_resNotifSendDone(void);
|
|
! void task_resNotifReceive(void);
|
|
|
|
/**
|
|
\}
|