Example #1
0
void HAL_Init(void)
{
    MCUSR = 0;
    wdt_disable();
    SYS_EnableInterrupts();

    HAL_TimerInit();
}
Example #2
0
/*************************************************************************//**
*****************************************************************************/
void HAL_Init(void)
{
    halSetSystemFrequency();
    PMIC.CTRL = PMIC_HILVLEN_bm | PMIC_MEDLVLEN_bm| PMIC_LOLVLEN_bm;
    SYS_EnableInterrupts();

    HAL_TimerInit();
    halPhyInit();
}
Example #3
0
/*************************************************************************//**
*****************************************************************************/
void HAL_Init(void)
{
  // Switch to 8MHz clock (disable prescaler)
  SYSCTRL->OSC8M.bit.PRESC = 0; // WAS UNCOMMENTED!

  SYS_EnableInterrupts();

  HAL_TimerInit();
  halPhyInit();
}
Example #4
0
File: hal.c Project: alesuarez/PF
/*************************************************************************//**
*****************************************************************************/
void HAL_Init(void)
{
  // Switch to 8MHz clock (disable prescaler)
  SYSCTRL_OSC8M = (SYSCTRL_OSC8M & ~SYSCTRL_OSC8M_PRESC_MSK) | SYSCTRL_OSC8M_PRESC(0);

  SYS_EnableInterrupts();

  HAL_TimerInit();
  halPhyInit();
}
void HAL_Init(void)
{
  LPC_SYSCON->SYSAHBCLKCTRL |= (1 << 16/*IOCON*/);
  LPC_SYSCON->SYSAHBCLKDIV = 1;

  HAL_TimerInit();
  HAL_PhyInit();

  __enable_irq();
}
Example #6
0
File: hal.c Project: alesuarez/PF
/*************************************************************************//**
*****************************************************************************/
void HAL_Init(void)
{
  MCUSR = 0;
  wdt_disable();

  CLKPR = 1 << CLKPCE;
  CLKPR = 0;

  SYS_EnableInterrupts();

  HAL_TimerInit();
}
Example #7
0
/*************************************************************************//**
*****************************************************************************/
void HAL_Init(void)
{
	MCUSR = 0;
	wdt_disable();

	CLKPR = 1 << CLKPCE;
	CLKPR = 0;

	// sysclk_init(); ****disable transceiver
	board_init();
  
	sleepmgr_init();
	
	delay_init(sysclk_get_cpu_hz());

	SYS_EnableInterrupts();

	HAL_TimerInit();
}