/* RTT configuration function. 
Configures the RTT to generate a one second tick, which triggers the RTT alarms interrupt.  */
static void gpbr_test_configure_rtt(void)
/* RTT configuration function. 
Configures the RTT to generate a one second tick, which triggers the RTT alarms interrupt.  */
static void gpbr_test_configure_rtt(void)
{
	uint32_t ul_previous_time;
	rtt_init(RTT, 32768);
	ul_previous_time = rtt_read_timer_value(RTT);
	while (ul_previous_time == rtt_read_timer_value(RTT));
	NVIC_DisableIRQ(RTT_IRQn);
	NVIC_ClearPendingIRQ(RTT_IRQn);
	NVIC_SetPriority(RTT_IRQn, 0);
	NVIC_EnableIRQ(RTT_IRQn);
	rtt_enable_interrupt(RTT, RTT_MR_ALMIEN);
}