示例#1
0
文件: up_boot.c 项目: KimMui/i2sTest
void board_initialize(void)
{
  /* Perform NSH initialization here instead of from the NSH.  This
   * alternative NSH initialization is necessary when NSH is ran in user-space
   * but the initialization function must run in kernel space.
   */

#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT)
	  nsh_archinitialize();
	  wireless_archinitialize(0);

#endif

}
示例#2
0
void board_initialize(void)
{
  /* Perform NSH initialization here instead of from the NSH.  This
   * alternative NSH initialization is necessary when NSH is ran in user-space
   * but the initialization function must run in kernel space.
   */

#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL)
  board_app_initialize();
#endif

  /* CC3000 wireless initialization */

#ifdef CONFIG_WL_CC3000
  wireless_archinitialize(0);
#endif
}
void CC3000_Init(void)
{
  static bool once = false;

  if (!once)
     {
       wireless_archinitialize();
       once = true;
     }

  cc3000_wlan_init( CC3000_AsyncCallback,
    SendFirmwarePatch,
    SendDriverPatch,
    SendBootloaderPatch);

  wlan_start(0);
}