/* Initialize re200b sensor in order to detect motion.  */
void re200b_motion_detect_init(uint32_t ul_acc_minus, uint32_t ul_acc_plus)
/* Initialize re200b sensor in order to detect motion.  */
void re200b_motion_detect_init(uint32_t ul_acc_minus, uint32_t ul_acc_plus)
{
	pmc_enable_periph_clk(ID_ACC);
	acc_init(ACC, ul_acc_plus, ul_acc_minus, ACC_MR_EDGETYP_ANY, ACC_MR_INV_DIS);
	acc_get_interrupt_status(ACC);
	g_compare_result = CMP_EQUAL;
	g_ul_compare_event_flag = false;
}