Improve code style
This commit is contained in:
parent
1d97e7e11e
commit
f83c4e7286
|
@ -91,7 +91,7 @@ cc26xx_rtc_get_next_trigger()
|
||||||
if(HWREG(AON_RTC_BASE + AON_RTC_O_CHCTL) & AON_RTC_CHCTL_CH0_EN) {
|
if(HWREG(AON_RTC_BASE + AON_RTC_O_CHCTL) & AON_RTC_CHCTL_CH0_EN) {
|
||||||
rtimer_clock_t ch0 = ti_lib_aon_rtc_compare_value_get(AON_RTC_CH2);
|
rtimer_clock_t ch0 = ti_lib_aon_rtc_compare_value_get(AON_RTC_CH2);
|
||||||
|
|
||||||
return RTIMER_CLOCK_LT(ch0 ,ch2) ? ch0 : ch2;
|
return RTIMER_CLOCK_LT(ch0, ch2) ? ch0 : ch2;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ch2;
|
return ch2;
|
||||||
|
|
|
@ -273,7 +273,7 @@
|
||||||
* This will keep working while UIP_FALLBACK_INTERFACE and CMD_CONF_OUTPUT
|
* This will keep working while UIP_FALLBACK_INTERFACE and CMD_CONF_OUTPUT
|
||||||
* keep using SLIP
|
* keep using SLIP
|
||||||
*/
|
*/
|
||||||
#if defined (UIP_FALLBACK_INTERFACE) || defined (CMD_CONF_OUTPUT)
|
#if defined(UIP_FALLBACK_INTERFACE) || defined(CMD_CONF_OUTPUT)
|
||||||
#define SLIP_ARCH_CONF_ENABLED 1
|
#define SLIP_ARCH_CONF_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -332,14 +332,14 @@ typedef uint32_t clock_time_t;
|
||||||
typedef uint32_t uip_stats_t;
|
typedef uint32_t uip_stats_t;
|
||||||
|
|
||||||
/* Clock (time) comparison macro */
|
/* Clock (time) comparison macro */
|
||||||
#define CLOCK_LT(a,b) ((signed long)((a)-(b)) < 0)
|
#define CLOCK_LT(a, b) ((signed long)((a) - (b)) < 0)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define
|
* rtimer.h typedefs rtimer_clock_t as unsigned short. We need to define
|
||||||
* RTIMER_CLOCK_LT to override this
|
* RTIMER_CLOCK_LT to override this
|
||||||
*/
|
*/
|
||||||
typedef uint32_t rtimer_clock_t;
|
typedef uint32_t rtimer_clock_t;
|
||||||
#define RTIMER_CLOCK_LT(a,b) ((int32_t)((a)-(b)) < 0)
|
#define RTIMER_CLOCK_LT(a, b) ((int32_t)((a) - (b)) < 0)
|
||||||
/** @} */
|
/** @} */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* board.h assumes that basic configuration is done */
|
/* board.h assumes that basic configuration is done */
|
||||||
|
|
Loading…
Reference in a new issue