*** stock_iot-lab_M3/openwsn/radio.h Thu Apr 24 11:01:37 2014 --- riot-openwsn-wip/openwsn/radio.h Thu Apr 24 16:55:54 2014 *************** *** 1,12 **** /** \brief Cross-platform declaration "radio" bsp module. \author Thomas Watteyne , February 2012. */ - #ifndef __RADIO_H - #define __RADIO_H - #include "radiotimer.h" //=========================== define ========================================== --- 1,17 ---- + #ifndef __RADIO_H + #define __RADIO_H + /** + \addtogroup BSP + \{ + \addtogroup radio + \{ + \brief Cross-platform declaration "radio" bsp module. \author Thomas Watteyne , February 2012. */ #include "radiotimer.h" //=========================== define ========================================== *************** *** 44,72 **** //=========================== prototypes ====================================== // admin ! void radio_init(); void radio_setOverflowCb(radiotimer_compare_cbt cb); void radio_setCompareCb(radiotimer_compare_cbt cb); void radio_setStartFrameCb(radiotimer_capture_cbt cb); void radio_setEndFrameCb(radiotimer_capture_cbt cb); // reset ! void radio_reset(); // timer void radio_startTimer(PORT_TIMER_WIDTH period); ! PORT_TIMER_WIDTH radio_getTimerValue(); void radio_setTimerPeriod(PORT_TIMER_WIDTH period); ! PORT_TIMER_WIDTH radio_getTimerPeriod(); // RF admin void radio_setFrequency(uint8_t frequency); ! void radio_rfOn(); ! void radio_rfOff(); // TX void radio_loadPacket(uint8_t* packet, uint8_t len); ! void radio_txEnable(); ! void radio_txNow(); // RX ! void radio_rxEnable(); ! void radio_rxNow(); void radio_getReceivedFrame(uint8_t* bufRead, uint8_t* lenRead, uint8_t maxBufLen, --- 49,77 ---- //=========================== prototypes ====================================== // admin ! void radio_init(void); void radio_setOverflowCb(radiotimer_compare_cbt cb); void radio_setCompareCb(radiotimer_compare_cbt cb); void radio_setStartFrameCb(radiotimer_capture_cbt cb); void radio_setEndFrameCb(radiotimer_capture_cbt cb); // reset ! void radio_reset(void); // timer void radio_startTimer(PORT_TIMER_WIDTH period); ! PORT_TIMER_WIDTH radio_getTimerValue(void); void radio_setTimerPeriod(PORT_TIMER_WIDTH period); ! PORT_TIMER_WIDTH radio_getTimerPeriod(void); // RF admin void radio_setFrequency(uint8_t frequency); ! void radio_rfOn(void); ! void radio_rfOff(void); // TX void radio_loadPacket(uint8_t* packet, uint8_t len); ! void radio_txEnable(void); ! void radio_txNow(void); // RX ! void radio_rxEnable(void); ! void radio_rxNow(void); void radio_getReceivedFrame(uint8_t* bufRead, uint8_t* lenRead, uint8_t maxBufLen, *************** *** 75,80 **** uint8_t* crc); // interrupt handlers ! kick_scheduler_t radio_isr(); #endif --- 80,90 ---- uint8_t* crc); // interrupt handlers ! kick_scheduler_t radio_isr(void); ! ! /** ! \} ! \} ! */ #endif