/* Main application function. 
Application entry point. Initialize board and WINC3400 Wi-Fi module. Display WINC3400 chip id and rf revision id. */
int main(void)
/* Main application function. 
Application entry point. Initialize board and WINC3400 Wi-Fi module. Display WINC3400 chip id and rf revision id. */
int main(void)
{
	tstrWifiInitParam param;
	int8_t ret;
	sysclk_init();
	board_init();
	configure_console();
	printf(STRING_HEADER);
	nm_bsp_init();
	memset((uint8_t *)&param, 0, sizeof(tstrWifiInitParam));
	ret = m2m_wifi_init(&param);
	if (M2M_SUCCESS != ret) {
		printf("main: m2m_wifi_init call error!(%d)\r\n", ret);
		while (1) {
		}
	}
	printf("Chip ID : \r\t\t\t%x\r\n", (unsigned int)nmi_get_chipid());
	printf("RF Revision ID : \r\t\t\t%x\r\n", (unsigned int)nmi_get_rfrevid());
	printf("Done.\r\n\r\n");
	while (1) {
	}
	return 0;
}