/* The function initializes a CC3000 device and triggers it to start operation. 
initDriver */
static int initDriver(unsigned short cRequestPatch)
/* The function initializes a CC3000 device and triggers it to start operation. 
initDriver */
static int initDriver(unsigned short cRequestPatch)
{
    wlan_init(CC3000_UsynchCallback, sendWLFWPatch, sendDriverPatch, sendBootLoaderPatch,
              ReadWlanInterruptPin, SpiResumeSpi, SpiPauseSpi, WriteWlanPin);
    wlan_start(cRequestPatch);
    wlan_smart_config_set_prefix((char*)aucCC3000_prefix);
    wlan_ioctl_set_connection_policy(0, 0, 0);
    wlan_ioctl_del_profile(255);
    wlan_set_event_mask(HCI_EVNT_WLAN_KEEPALIVE|
                        HCI_EVNT_WLAN_UNSOL_INIT|
                        HCI_EVNT_WLAN_ASYNC_PING_REPORT);
    systick_sleep(100);
    return(0);
}