![](/media/cache/group/Semtech_stack_color_logo_highres.jpg.50x50_q85.jpg)
This code holds the complete demo set for the sx1280: PingPong, PER and Ranging Outdoor demo application. >>>>> This code MUST run on the mbed library release 127 or everything will be painfully slow.
Dependencies: mbed SX1280Lib DmTftLibrary
* This code MUST run on the mbed library release 127 or everything will be painfully slow.*
Peripherals/Timers.h
- Committer:
- mverdy
- Date:
- 2018-11-08
- Revision:
- 20:626b92b70bf7
File content as of revision 20:626b92b70bf7:
/* ______ _ / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2016 Semtech Description: Timers header Maintainer: Gregory Cristian & Gilbert Menth */ #ifndef TIMERS_H #define TIMERS_H #define TIM_MSEC ( uint32_t )1 #define TIM_SEC ( uint32_t )1000 #define TIM_MIN ( uint32_t )60000 #define TIM_HOUR ( uint32_t )3600000 #define MAX_TIMER_VALUE ( TIM_MIN * 150 ) // maximum time for timer /*! * \brief Initialses the hardware and variables associated with the timers. */ void TimersInit( void ); /*! * \brief Sets a timer to a specific value * * \param [in] *STimer Pointer to the timer value to be set. * \param [in] TimeLength Value to set the timer to in milliseconds. */ void TimersSetTimer( uint32_t *sTimer, uint32_t timeLength ); /*! * \brief Checks if a timer has expired. * * \param [in] *STimer Pointer to the timer value to be read. * * \retval Status Non zero if the timer has not expired and is still * running. */ uint32_t TimersTimerHasExpired ( const uint32_t * sTimer ); /*! * \brief Returns the value of the current time in milliseconds * * \param [in] refresh Flag indicates refresh display required (touch) * * \retval Value value of current time in milliseconds */ uint32_t TimersTimerValue ( void ); #endif //TIMERS_H