Advantech SUSI Sample Programs: Integrating SUSI in Windows Applications

Page 50

4.3.5SUSI Sample Programs

Sample Programs

The sample programs demonstrate how to incorporate SUSI into your program. There are sample programs for two categories of operating system, i.e. Windows XP and Windows CE. The sample programs run in graphics mode in Windows XP and Windows CE. The sample programs are described in the subsections below.

Windows Graphics Mode

There are sample programs of Windows in graphics mode for two categories of oper- ating system, i.e. Windows CE and Windows XP. Each demo application contains an executable file SusiDemo.exe, a shared library Susi.dll and source code within the release package. The files of Windows CE and Windows XP are not compatible with each other.

SusiDemo.exe is an executable file and it requires the shared library, Susi.dll, to demonstrate the SUSI functions. The source code of SusiDemo.exe also has two versions, i.e. Windows CE and Windows XP, and must be compiled under Microsoft Visual C++ 6.0 on Windows XP or under Microsoft Embedded Visual C++ 4.0 on Windows CE. Developers must add the header file Susi.h and library Susi.lib to their own projects when they want to develop something with SUSI.

SusiDemo.exe

The SusiDemo.exe test application is an application which uses all functions of the

SUSI Library. It has five major function blocks: Watchdog, GPIO, SMBus, I2C and VGA control. The following screen shot appears when you execute SusiDemo.exe. You can click function tabs to select test functions respectively. Some function tabs will not show on the test application if your platform does not support such functions. For a complete support list, please refer to Appendix A. We describe the steps to test all functions of this application.

GPIO

PCM-3362 User Manual

42

Image 50
Contents PCM-3362 Copyright Acknowledgements Declaration of Conformity Packing ListAdditional Information and Assistance FCC Class a Contents AMI Bios Setup Appendix C Appendix aAppendix B Appendix D Watchdog Timer and Gpio sample Chapter General InformationIntroduction FeaturesSpecifications Standard PC/104-plus Biscuit SBC FunctionsOS support 2 VGA/LVDS InterfaceEthernet Interface Mechanical and EnvironmentalBoard layout dimensions Board layout Dimensions Component SideBoard layout Dimensions Solder Side Page Hardware Installation Connectors JumpersConnectors component side Connectors solder sideSetting Jumpers Block diagramOpen Closed Lvds Panel Power Select JP2Clear Cmos JP1 3 COM3 RS422/RS485 Select JP3 Installing SODIMMsFlash PCI I/O Voltage Select JP4High Definition Audio Interface CN1 USB connectors CN9 & CN10Front Panel Connector CN12 VGA/LCD interface connectionsCOM port connector CN16 & CN17 Buzzer Connector CN13Sata Connector CN15 Giga LAN Connector CN18Power Connectors CN24 Gpio Connector CN21ATX Power in connector CN23 19 I2C Bus connector CN25Page AMI Bios Setup Entering Setup Main SetupAdvanced Bios Features Setup System time / System dateHyper Threading Technology CPU ConfigurationExecute-Disable Bit Capability Intel SpeedStepTM techIDE Configuration Serial Port1 / Port2 / Port3 IRQ Super I/O ConfigurationHardware Health Configuration Auto Direction Control SelReport Video on S3 Resume Acpi SettingsTemperature & Voltage show AMI Oemb table Headless modeAcpi Apic support High Performance Event Timer Ahci ConfigurationEnergy Lake Feature USB Device Wakeup From S3/S4APM Configuration Mark all events as read Event Log ConfigurationMPS Configuration Clear Event LogUSB 2.0 Controller Mode Smbios ConfigurationUSB Configuration Hotplug USB FDD Support Advanced PCI/PnP SettingsBios Ehci Hand-Off Emulation TypeAllocate IRQ to PCI VGA PCI Latency TimerPlug & Play O/S Palette SnoopingQuiet Boot Boot SettingsBoot settings Configuration AddOn ROM Display ModeSecurity Setup Configure Dram Timing by SPD Advanced Chipset SettingsNorth Bridge Chipset Configuration Memory HoleDVMT/FIXED Memory South Bridge Chipset ConfigurationBoot Display Device Flat Panel TypeExit Option Save Changes and ExitDiscard Changes and Exit Load Optimal DefaultsLoad Fail-Safe Defaults Software Introduction & Installation S/W Introduction Driver InstallationValue-Added Software Services Software APIs Gpio APISusi.lib Susi InstallationSusi Utilities Susi.dllExpress Installation Manual InstallationSample Programs Windows Graphics ModeSusi Sample Programs SusiDemo.exeSoftware Introduction & Installation I2C SMBusSoftware Introduction & Installation Display Control WatchdogHardware Monitor Page Chipset Software Installation Utility Windows XP/Vista/Win7 Driver Setup Before You BeginIntegrated Graphic Device Setup Windows XP/ Vista /Win7 Driver Setup LAN Configuration Installation Appendix a Pin AssignmentsJumper and Connector Tables JP1 Clear CmosAppendix a Pin Assignments CN7 6 8 CN9CN12 Front panel Connector Part Number CN16 COM1~COM2 Connector Part Number 6 8 CN21 Gpio Connector Part Number CN25 I2C BUS connector Part Number Appendix B System AssignmentsDMA channel assignments System I/O Ports1st MB Memory Map Interrupt assignments Table B.4 Interrupt assignmentsPage Appendix C Mechanical DrawingsBoard Mechanical Drawings Figure C.1 PCM-3362 Mechanical Drawing Component SideAppendix C Mechanical Drawings Heatsink Mechanical Drawings Figure C.3 PCM-3362N Heatsink Mechanical DrawingOptional Heat spreader Mechanical Drawings Figure C.5 PCM-3362 optional Heatspreader Mechanical DrawingPage Watchdog Timer and Gpio sample code Appendix DWatchdog Timer sample code Bit 10=Reserved Bit 62Reserve=00000Appendix D Watchdog Timer and Gpio sample code Gpio sample codePage Appendix D Watchdog Timer and Gpio sample code