void at_sis496_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); device_add(&sis496_device); }
void at_um8881f_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); um8881f_init(); }
void at_dtk486_init() { at_init(); memregs_init(); mouse_serial_init(); sis85c471_init(); }
int main() { unsigned char teststream[]={'A','T','\r','\n','d','\n','A','T','+','N','A','M','E','?','\r'}; int resp; int i; at_init(); for(i=0;i<sizeof(teststream);i++) { resp = at_inter(teststream[i]); printf("interation(%d)=%d ",i,resp); switch(resp) { case E_ACK: printf(":: receive ACK\n"); break; case E_READ: printf(":: receive E_READ cmd=%d\n",at_get_last_cmd()); break; case E_WRITE: printf(":: receive E_WRITE cmd=%d\n",at_get_last_cmd()); break; default: printf("\n"); break; } } return 1; }
void ICACHE_FLASH_ATTR user_init(void) { char buf[128] = {0}; at_customLinkMax = 5; sdio_slave_init(); sdio_register_recv_cb(sdio_recv_data_callback); at_init(); at_register_uart_rx_buffer_fetch_cb(at_custom_uart_rx_buffer_fetch_cb); #ifdef ESP_AT_FW_VERSION if ((ESP_AT_FW_VERSION != NULL) && (os_strlen(ESP_AT_FW_VERSION) < 64)) { os_sprintf(buf,"compile time:%s %s\r\n"ESP_AT_FW_VERSION,__DATE__,__TIME__); } else { os_sprintf(buf,"compile time:%s %s",__DATE__,__TIME__); } #else os_sprintf(buf,"compile time:%s %s",__DATE__,__TIME__); #endif at_set_custom_info(buf); at_fake_uart_enable(TRUE,at_sdio_response); at_cmd_array_regist(&at_custom_cmd[0], sizeof(at_custom_cmd)/sizeof(at_custom_cmd[0])); espconn_tcp_set_wnd(4); at_port_print("\r\nready\r\n"); #ifdef SDIO_DEBUG os_timer_disarm(&at_spi_check); os_timer_setfn(&at_spi_check, (os_timer_func_t *)at_spi_check_cb, NULL); os_timer_arm(&at_spi_check, 1000, 1); os_printf("\r\ntimer start\r\n"); #endif }
void at_batman_init() { at_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_2, 0xd, 0x10); i430lx_init(); fdc37c665_init(); intel_batman_init(); }
void at_i430vx_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i430vx_init(); piix_init(7); um8669f_init(); }
void user_init(void) { uart_init(BIT_RATE_115200, BIT_RATE_115200); at_wifiMode = wifi_get_opmode(); os_printf("\r\nready!!!\r\n"); uart0_sendStr("\r\nready\r\n"); at_init(); }
void at_sis471_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_serial_init(); sis85c471_init(); }
void at_ali1429_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); ali1429_init(); mouse_serial_init(); }
void at_headland_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); headland_init(); mouse_serial_init(); }
void at_neat_init() { PCI = 0; maxide = 2; AT = 1; is386 = 0; at_init(); mouse_serial_init(); neat_init(); }
void px386_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_serial_init(); is386 = 1; }
void at_p55va_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i430vx_init(); piix3_init(7); fdc37c932fr_init(); device_add(&intel_flash_bxt_device); }
void at_p55t2p4_init() { at_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i430hx_init(); piix3_init(7); w83877f_init(); device_add(&intel_flash_bxt_device); }
void at_i430vx_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i430vx_init(); piix3_init(7); um8669f_init(); device_add(&intel_flash_bxt_device); }
void user_init(void) { char buf[64] = {0}; at_customLinkMax = 5; at_init(); os_sprintf(buf,"eMax' NTP Version:%s %s",__DATE__,__TIME__); at_set_custom_info(buf); at_port_print("\r\nready\r\n"); at_cmd_array_regist(&at_custom_cmd[0], sizeof(at_custom_cmd)/sizeof(at_custom_cmd[0])); }
void at_acerv35n_init() { at_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_1, 0xd, 0x10); i430hx_init(); piix3_init(7); fdc37c932fr_init(); acerm3a_io_init(); device_add(&intel_flash_bxb_device); }
void at_mb500n_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i430fx_init(); piix_init(7); fdc37c665_init(); intel_endeavor_init(); device_add(&intel_flash_bxt_device); }
void at_endeavor_init() { at_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_1, 0xd, 0x10); i430fx_init(); piix_init(7); pc87306_init(); intel_endeavor_init(); device_add(&intel_flash_bxt_ami_device); }
void at_acer386sx_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_ps2_init(); acer386sx_init(); is386 = 1; }
void at_wd76c10_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_ps2_init(); wd76c10_init(); is386 = 1; }
void at_endeavor_init() { at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0xd, 0x10); i430fx_init(); piix_init(7); um8669f_init(); intel_endeavor_init(); device_add(&intel_flash_device); }
void at_um8881f_init() { PCI = 1; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_serial_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); um8881f_init(); }
void at_plato_init() { at_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_2, 0xd, 0x10); i430nx_init(); sio_init(1); fdc37c665_init(); /* It seems it uses the same interface as Batman. */ intel_batman_init(); // device_add(&intel_flash_bxt_ami_device); }
void deskpro386_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_serial_init(); compaq_init(); cpqio_init(); is386 = 1; }
void at_colorbook_init() { PCI = 0; maxide = 2; AT = 1; is386 = 1; at_init(); mouse_ps2_init(); /* Really the FDC37C663 but we share the file as they are essentially identical except for the vendor ID. */ fdc37c665_init(); colorbook_io_init(); }
void at_vpc2007_init() { PCI = 1; maxide = 4; AT = 1; is386 = 1; at_init(); mouse_serial_init(); // mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_1, 0, 31); i440bx_init(); piix_init(7); }
void user_init(void) { char buf[64] = {0}; at_customLinkMax = 5; at_init(); shield_init(); // Shield init must be called _after_ at_init() - to set baud rate os_sprintf(buf,"compile time:%s %s",__DATE__,__TIME__); at_set_custom_info(buf); at_port_print("\r\n"); at_port_print(WELCOME_MESSAGE); at_port_print("\r\n"); }
void at_batman_init() { PCI = 1; maxide = 4; AT = 1; is386 = 1; at_init(); // mouse_serial_init(); mouse_ps2_init(); pci_init(PCI_CONFIG_TYPE_2, 0xd, 0x10); i430lx_init(); fdc37c665_init(); intel_batman_init(); device_add(&intel_flash_device); }