├── .github └── workflows │ └── build.yml ├── .gitignore ├── LICENSE ├── README.md ├── bin ├── CommandableMixin ├── ReadProperty ├── ReadPropertyMultiple ├── ReadPropertyMultipleServer ├── ReadWriteProperty ├── WhoIsIAm ├── bc ├── bs └── cp_ini ├── build_package ├── build_snap ├── clean ├── misty ├── __init__.py ├── bacnet-stack-0.8.4 │ ├── .astylerc │ ├── .gdbinit │ ├── .indent.pro │ ├── .splintrc │ ├── BACnet-stack.doxyfile │ ├── Makefile │ ├── bin │ │ ├── bacroute.sh │ │ ├── bacrpd.bat │ │ ├── bacrpd.sh │ │ ├── bvlc.bat │ │ ├── bvlc.sh │ │ └── readme.txt │ ├── borland.bat │ ├── build.bat │ ├── build.sh │ ├── comment.sh │ ├── demo │ │ ├── BACnetDemo.workspace │ │ ├── Makefile │ │ ├── dcc │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ ├── makefile.b32 │ │ │ ├── makefile.g++ │ │ │ └── tmake.pro │ │ ├── epics │ │ │ ├── Makefile │ │ │ ├── bacepics.cbp │ │ │ ├── bacepics.h │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── gateway │ │ │ ├── Makefile │ │ │ ├── gateway.h │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── handler │ │ │ ├── dlenv.c │ │ │ ├── h_alarm_ack.c │ │ │ ├── h_arf.c │ │ │ ├── h_arf_a.c │ │ │ ├── h_awf.c │ │ │ ├── h_bbmd6.c │ │ │ ├── h_ccov.c │ │ │ ├── h_cov.c │ │ │ ├── h_dcc.c │ │ │ ├── h_gas_a.c │ │ │ ├── h_get_alarm_sum.c │ │ │ ├── h_getevent.c │ │ │ ├── h_getevent_a.c │ │ │ ├── h_iam.c │ │ │ ├── h_ihave.c │ │ │ ├── h_lso.c │ │ │ ├── h_npdu.c │ │ │ ├── h_pt.c │ │ │ ├── h_pt_a.c │ │ │ ├── h_rd.c │ │ │ ├── h_routed_npdu.c │ │ │ ├── h_rp.c │ │ │ ├── h_rp_a.c │ │ │ ├── h_rpm.c │ │ │ ├── h_rpm_a.c │ │ │ ├── h_rr.c │ │ │ ├── h_rr_a.c │ │ │ ├── h_ts.c │ │ │ ├── h_ucov.c │ │ │ ├── h_upt.c │ │ │ ├── h_whohas.c │ │ │ ├── h_whois.c │ │ │ ├── h_wp.c │ │ │ ├── h_wpm.c │ │ │ ├── noserv.c │ │ │ ├── objects.c │ │ │ ├── s_ack_alarm.c │ │ │ ├── s_arfs.c │ │ │ ├── s_awfs.c │ │ │ ├── s_cevent.c │ │ │ ├── s_cov.c │ │ │ ├── s_dcc.c │ │ │ ├── s_iam.c │ │ │ ├── s_ihave.c │ │ │ ├── s_lso.c │ │ │ ├── s_ptransfer.c │ │ │ ├── s_rd.c │ │ │ ├── s_readrange.c │ │ │ ├── s_router.c │ │ │ ├── s_rp.c │ │ │ ├── s_rpm.c │ │ │ ├── s_ts.c │ │ │ ├── s_uevent.c │ │ │ ├── s_upt.c │ │ │ ├── s_whohas.c │ │ │ ├── s_whois.c │ │ │ ├── s_wp.c │ │ │ ├── s_wpm.c │ │ │ └── txbuf.c │ │ ├── iamrouter │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── initrouter │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── mstpcap │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ ├── makefile.b32 │ │ │ └── mstpcap.txt │ │ ├── mstpcrc │ │ │ ├── Makefile │ │ │ ├── build.bat │ │ │ ├── main.c │ │ │ ├── makefile.b32 │ │ │ └── readme.txt │ │ ├── object │ │ │ ├── ai.c │ │ │ ├── ai.h │ │ │ ├── ai.mak │ │ │ ├── ao.c │ │ │ ├── ao.h │ │ │ ├── ao.mak │ │ │ ├── av.c │ │ │ ├── av.h │ │ │ ├── av.mak │ │ │ ├── bacfile.c │ │ │ ├── bacfile.h │ │ │ ├── bi.c │ │ │ ├── bi.h │ │ │ ├── bi.mak │ │ │ ├── bo.c │ │ │ ├── bo.h │ │ │ ├── bo.mak │ │ │ ├── bv.c │ │ │ ├── bv.h │ │ │ ├── bv.mak │ │ │ ├── csv.c │ │ │ ├── csv.h │ │ │ ├── csv.mak │ │ │ ├── device-client.c │ │ │ ├── device.c │ │ │ ├── device.h │ │ │ ├── device.mak │ │ │ ├── gw_device.c │ │ │ ├── lc.c │ │ │ ├── lc.h │ │ │ ├── lc.ide │ │ │ ├── lc.mak │ │ │ ├── lo.c │ │ │ ├── lo.h │ │ │ ├── lo.mak │ │ │ ├── lsp.c │ │ │ ├── lsp.h │ │ │ ├── lsp.mak │ │ │ ├── ms-input.c │ │ │ ├── ms-input.h │ │ │ ├── ms-input.mak │ │ │ ├── mso.c │ │ │ ├── mso.h │ │ │ ├── mso.mak │ │ │ ├── msv.c │ │ │ ├── msv.h │ │ │ ├── msv.mak │ │ │ ├── nc.c │ │ │ ├── nc.h │ │ │ ├── osv.c │ │ │ ├── osv.h │ │ │ ├── osv.mak │ │ │ ├── piv.c │ │ │ ├── piv.h │ │ │ ├── piv.mak │ │ │ ├── schedule.c │ │ │ ├── schedule.h │ │ │ ├── schedule.mak │ │ │ ├── trendlog.c │ │ │ └── trendlog.h │ │ ├── perl │ │ │ ├── Documentation │ │ │ │ ├── index.html │ │ │ │ ├── jquery.js │ │ │ │ ├── syntax.css │ │ │ │ └── syntax.js │ │ │ ├── bacnet.pl │ │ │ ├── example_readprop.pl │ │ │ ├── perl_bindings.c │ │ │ └── readme.txt │ │ ├── piface │ │ │ ├── Makefile │ │ │ ├── configure.sh │ │ │ ├── device.c │ │ │ └── main.c │ │ ├── ptransfer │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ ├── makefile.b32 │ │ │ ├── ptransfer.sln │ │ │ └── rdproperty.vcproj │ │ ├── readbdt │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── readfile │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ ├── main.ide │ │ │ └── makefile.b32 │ │ ├── readprop │ │ │ ├── Makefile │ │ │ ├── bacrp.cbp │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── readpropm │ │ │ ├── Makefile │ │ │ ├── bacrpm.cbp │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── readrange │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── readrange │ │ │ │ ├── readrange.sln │ │ │ │ └── readrange.vcproj │ │ ├── reinit │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── router-ipv6 │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── readme.txt │ │ ├── router │ │ │ ├── Makefile │ │ │ ├── init.cfg │ │ │ ├── ipmodule.c │ │ │ ├── ipmodule.h │ │ │ ├── main.c │ │ │ ├── msgqueue.c │ │ │ ├── msgqueue.h │ │ │ ├── mstpmodule.c │ │ │ ├── mstpmodule.h │ │ │ ├── network_layer.c │ │ │ ├── network_layer.h │ │ │ ├── portthread.c │ │ │ ├── portthread.h │ │ │ └── readme.txt │ │ ├── scov │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── server │ │ │ ├── .gdbinit │ │ │ ├── Makefile │ │ │ ├── PICS.odt │ │ │ ├── bacserv.cbp │ │ │ ├── epics_vts3.tpi │ │ │ ├── main.c │ │ │ ├── makefile.b32 │ │ │ └── server.h │ │ ├── timesync │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── ucov │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── uptransfer │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── whohas │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── whois │ │ │ ├── Makefile │ │ │ ├── bacwi.dsp │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── whoisrouter │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ │ ├── writefile │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ ├── main.ide │ │ │ └── makefile.b32 │ │ └── writeprop │ │ │ ├── Makefile │ │ │ ├── main.c │ │ │ └── makefile.b32 │ ├── doc │ │ ├── BACnet-Protocol-Diagram.odg │ │ ├── BACnetCollapsedArchitecture.flw │ │ ├── README.build │ │ ├── README.codeblocks │ │ ├── README.developer │ │ ├── README.doxygen │ │ ├── README.faq │ │ ├── README.msvc │ │ ├── README.msvs │ │ ├── README.release │ │ ├── README.sloc │ │ ├── README.subversion │ │ ├── README.todo │ │ ├── README.ubuntu │ │ ├── README.utils │ │ ├── RPM-Handler.flw │ │ ├── bac_stack_footer.html │ │ ├── bac_stack_header.html │ │ ├── code-standard.txt │ │ ├── htdocs │ │ │ ├── images │ │ │ │ └── BACnet.png │ │ │ └── index.html │ │ ├── man │ │ │ ├── bacrp.1 │ │ │ ├── bacwi.1 │ │ │ └── bacwp.1 │ │ └── output │ │ │ ├── BAC_stack.html │ │ │ └── html │ │ │ └── BACnet_sm.png │ ├── export.sh │ ├── fixup.bat │ ├── fixup.sh │ ├── include │ │ ├── abort.h │ │ ├── address.h │ │ ├── alarm_ack.h │ │ ├── apdu.h │ │ ├── arcnet.h │ │ ├── arf.h │ │ ├── awf.h │ │ ├── bacaddr.h │ │ ├── bacapp.h │ │ ├── bacdcode.h │ │ ├── bacdef.h │ │ ├── bacdevobjpropref.h │ │ ├── bacenum.h │ │ ├── bacerror.h │ │ ├── bacint.h │ │ ├── bacnet.h │ │ ├── bacprop.h │ │ ├── bacpropstates.h │ │ ├── bacreal.h │ │ ├── bacstr.h │ │ ├── bactext.h │ │ ├── bactimevalue.h │ │ ├── bigend.h │ │ ├── bip.h │ │ ├── bip6.h │ │ ├── bits.h │ │ ├── bvlc.h │ │ ├── bvlc6.h │ │ ├── bytes.h │ │ ├── client.h │ │ ├── config.h │ │ ├── cov.h │ │ ├── crc.h │ │ ├── datalink.h │ │ ├── datetime.h │ │ ├── dcc.h │ │ ├── debug.h │ │ ├── dlenv.h │ │ ├── dlmstp.h │ │ ├── ethernet.h │ │ ├── event.h │ │ ├── fifo.h │ │ ├── filename.h │ │ ├── get_alarm_sum.h │ │ ├── getevent.h │ │ ├── handlers.h │ │ ├── iam.h │ │ ├── ihave.h │ │ ├── indtext.h │ │ ├── key.h │ │ ├── keylist.h │ │ ├── lighting.h │ │ ├── lso.h │ │ ├── memcopy.h │ │ ├── mstp.h │ │ ├── mstpdef.h │ │ ├── mstptext.h │ │ ├── mydata.h │ │ ├── npdu.h │ │ ├── objects.h │ │ ├── proplist.h │ │ ├── ptransfer.h │ │ ├── rd.h │ │ ├── readrange.h │ │ ├── reject.h │ │ ├── ringbuf.h │ │ ├── rp.h │ │ ├── rpm.h │ │ ├── sbuf.h │ │ ├── timestamp.h │ │ ├── timesync.h │ │ ├── tsm.h │ │ ├── txbuf.h │ │ ├── version.h │ │ ├── vmac.h │ │ ├── whohas.h │ │ ├── whois.h │ │ ├── wp.h │ │ └── wpm.h │ ├── indent.bat │ ├── indent.sh │ ├── lib │ │ ├── Makefile │ │ ├── bacnet.cbp │ │ ├── bacnetdll.cbp │ │ ├── main.cpp │ │ ├── main.h │ │ └── makefile.b32 │ ├── license │ │ ├── gpl-2.txt │ │ └── readme.txt │ ├── makefile.b32 │ ├── ports │ │ ├── arm7 │ │ │ ├── _stdint.h │ │ │ ├── bip.c │ │ │ ├── net.h │ │ │ └── stdbool.h │ │ ├── at91sam7s │ │ │ ├── .gdbinit │ │ │ ├── Makefile │ │ │ ├── ai.c │ │ │ ├── at91sam7s256.h │ │ │ ├── at91sam7s256.ld │ │ │ ├── av.c │ │ │ ├── bacnet.ewp │ │ │ ├── bacnet.eww │ │ │ ├── bi.c │ │ │ ├── blinker.c │ │ │ ├── board.h │ │ │ ├── bv.c │ │ │ ├── crt.s │ │ │ ├── device.c │ │ │ ├── dlmstp.c │ │ │ ├── init.c │ │ │ ├── isr.c │ │ │ ├── isr.h │ │ │ ├── main.c │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── atmega168 │ │ │ ├── .splintrc │ │ │ ├── Makefile │ │ │ ├── PICS.odt │ │ │ ├── ai.c │ │ │ ├── ai.h │ │ │ ├── apdu.c │ │ │ ├── av.c │ │ │ ├── av.h │ │ │ ├── avr035.h │ │ │ ├── bacnet.aps │ │ │ ├── bacnet.ewp │ │ │ ├── bacnet.eww │ │ │ ├── bv.c │ │ │ ├── bv.h │ │ │ ├── device.c │ │ │ ├── device.h │ │ │ ├── dlmstp.c │ │ │ ├── h_rp.c │ │ │ ├── h_whois.c │ │ │ ├── h_wp.c │ │ │ ├── hardware.h │ │ │ ├── hardware.ods │ │ │ ├── iar2gcc.h │ │ │ ├── main.c │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── stack.c │ │ │ ├── stack.h │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── atmega8 │ │ │ ├── Makefile │ │ │ ├── ai.c │ │ │ ├── apdu.c │ │ │ ├── av.c │ │ │ ├── avr035.h │ │ │ ├── bacnet.ewp │ │ │ ├── bacnet.eww │ │ │ ├── bv.c │ │ │ ├── device.c │ │ │ ├── dlmstp.c │ │ │ ├── h_rp.c │ │ │ ├── hardware.h │ │ │ ├── hardware.ods │ │ │ ├── iar2gcc.h │ │ │ ├── main.c │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── bdk-atxx4-mstp │ │ │ ├── Makefile │ │ │ ├── PICS.odt │ │ │ ├── adc-block.c │ │ │ ├── adc.c │ │ │ ├── adc.h │ │ │ ├── ai.c │ │ │ ├── av.c │ │ │ ├── avrosp │ │ │ │ ├── AVRBootloader.cpp │ │ │ │ ├── AVRBootloader.hpp │ │ │ │ ├── AVRDevice.cpp │ │ │ │ ├── AVRDevice.hpp │ │ │ │ ├── AVRInSystemProg.cpp │ │ │ │ ├── AVRInSystemProg.hpp │ │ │ │ ├── AVROSP.dev │ │ │ │ ├── AVRProgrammer.cpp │ │ │ │ ├── AVRProgrammer.hpp │ │ │ │ ├── CommChannel.cpp │ │ │ │ ├── CommChannel.hpp │ │ │ │ ├── ErrorMsg.cpp │ │ │ │ ├── ErrorMsg.hpp │ │ │ │ ├── HEXParser.cpp │ │ │ │ ├── HEXParser.hpp │ │ │ │ ├── JobInfo.cpp │ │ │ │ ├── JobInfo.hpp │ │ │ │ ├── SerialPort.cpp │ │ │ │ ├── SerialPort.hpp │ │ │ │ ├── Utility.cpp │ │ │ │ ├── Utility.hpp │ │ │ │ ├── XMLParser.cpp │ │ │ │ ├── XMLParser.hpp │ │ │ │ ├── main.cpp │ │ │ │ └── readme.txt │ │ │ ├── bacnet.aps │ │ │ ├── bacnet.atsln │ │ │ ├── bacnet.c │ │ │ ├── bacnet.cproj │ │ │ ├── bacnet.ewp │ │ │ ├── bacnet.eww │ │ │ ├── bacnet.h │ │ │ ├── bacnet.hzp │ │ │ ├── bi.c │ │ │ ├── bname.c │ │ │ ├── bname.h │ │ │ ├── bo.c │ │ │ ├── bootloader │ │ │ │ ├── Makefile │ │ │ │ ├── bootloader.aps │ │ │ │ ├── defines.h │ │ │ │ ├── flash.h │ │ │ │ ├── main.c │ │ │ │ ├── parts.txt │ │ │ │ ├── preprocessor.sh │ │ │ │ ├── preprocessor.xls │ │ │ │ ├── serial.c │ │ │ │ └── serial.h │ │ │ ├── crossworks │ │ │ │ └── stdbool.h │ │ │ ├── device.c │ │ │ ├── dlmstp.c │ │ │ ├── eeprom.c │ │ │ ├── eeprom.h │ │ │ ├── epics_vts3.tpi │ │ │ ├── fuses.c │ │ │ ├── hardware.h │ │ │ ├── hardware.ods │ │ │ ├── iar2gcc.h │ │ │ ├── init.c │ │ │ ├── init.h │ │ │ ├── input.c │ │ │ ├── input.h │ │ │ ├── led.c │ │ │ ├── led.h │ │ │ ├── main.c │ │ │ ├── nvdata.h │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── seeprom.c │ │ │ ├── seeprom.h │ │ │ ├── serial.c │ │ │ ├── serial.h │ │ │ ├── stack.c │ │ │ ├── stack.h │ │ │ ├── test.c │ │ │ ├── test.h │ │ │ ├── timer.c │ │ │ ├── timer.h │ │ │ ├── timer2.c │ │ │ ├── watchdog.c │ │ │ └── watchdog.h │ │ ├── bsd │ │ │ ├── bip-init.c │ │ │ ├── main.c │ │ │ ├── net.h │ │ │ ├── readme.txt │ │ │ ├── stdbool.h │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── dos │ │ │ ├── bacnet.prj │ │ │ ├── dlmstp.c │ │ │ ├── extkword.h │ │ │ ├── main.c │ │ │ ├── mk_fp.h │ │ │ ├── pchwio.c │ │ │ ├── pchwio.h │ │ │ ├── queue.c │ │ │ ├── queue.h │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── serial.c │ │ │ ├── serial.h │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── linux │ │ │ ├── arcnet.c │ │ │ ├── bacnet_ipv6.lua │ │ │ ├── bip-init.c │ │ │ ├── bip6.c │ │ │ ├── dlmstp.c │ │ │ ├── dlmstp.mak │ │ │ ├── dlmstp_linux.c │ │ │ ├── dlmstp_linux.h │ │ │ ├── ethernet.c │ │ │ ├── mstpsnap.c │ │ │ ├── mstpsnap.mak │ │ │ ├── net.h │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── rs485.mak │ │ │ ├── rx_fsm.c │ │ │ ├── rx_fsm.mak │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── lwip │ │ │ ├── bip.c │ │ │ └── net.h │ │ ├── pic18f6720 │ │ │ ├── 18F6720.lkr │ │ │ ├── BACnet-Server.X │ │ │ │ ├── Makefile │ │ │ │ └── nbproject │ │ │ │ │ ├── Makefile-default.mk │ │ │ │ │ ├── Makefile-genesis.properties │ │ │ │ │ ├── Makefile-impl.mk │ │ │ │ │ ├── Makefile-local-default.mk │ │ │ │ │ ├── Makefile-variables.mk │ │ │ │ │ ├── Package-default.bash │ │ │ │ │ ├── configurations.xml │ │ │ │ │ ├── project.properties │ │ │ │ │ └── project.xml │ │ │ ├── BACnet-Server.mcp │ │ │ ├── BACnet-Server.mcw │ │ │ ├── Makefile │ │ │ ├── ai.c │ │ │ ├── apdu.c │ │ │ ├── av.c │ │ │ ├── bi.c │ │ │ ├── bv.c │ │ │ ├── device.c │ │ │ ├── dlmstp.c │ │ │ ├── dlmstp.h │ │ │ ├── hardware.h │ │ │ ├── isr.c │ │ │ ├── main.c │ │ │ ├── mstp.c │ │ │ ├── mstp.h │ │ │ ├── pic18f6720.tpi │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── stdbool.h │ │ │ └── stdint.h │ │ ├── rtos32 │ │ │ ├── bip-init.c │ │ │ ├── dlmstp.c │ │ │ ├── ethernet.c │ │ │ ├── hardware.cfg │ │ │ ├── init.c │ │ │ ├── main.c │ │ │ ├── makefile.mak │ │ │ ├── monitor.cfg │ │ │ ├── mstp.c │ │ │ ├── mstp.h │ │ │ ├── net.h │ │ │ ├── netcfg.h │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── setvars.bat │ │ │ ├── software.cfg │ │ │ ├── stdbool.h │ │ │ └── stdint.h │ │ ├── rx62n │ │ │ ├── BACnet_Ethernet_RX62N.hwp │ │ │ ├── bacnet.c │ │ │ ├── bacnet.h │ │ │ ├── bo.c │ │ │ ├── device.c │ │ │ ├── ethernet.c │ │ │ ├── hardware.h │ │ │ ├── led.c │ │ │ ├── led.h │ │ │ ├── main.c │ │ │ ├── readme.txt │ │ │ ├── timer-hdw.c │ │ │ ├── timer.c │ │ │ └── timer.h │ │ ├── stm32f10x │ │ │ ├── CMSIS │ │ │ │ ├── CMSIS debug support.htm │ │ │ │ ├── CMSIS_Core.htm │ │ │ │ ├── CMSIS_changes.htm │ │ │ │ ├── License.doc │ │ │ │ ├── TrueSTUDIO │ │ │ │ │ ├── startup_stm32f10x_cl.s │ │ │ │ │ ├── startup_stm32f10x_hd.s │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s │ │ │ │ │ ├── startup_stm32f10x_ld.s │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s │ │ │ │ │ ├── startup_stm32f10x_md.s │ │ │ │ │ ├── startup_stm32f10x_md_vl.s │ │ │ │ │ └── startup_stm32f10x_xl.s │ │ │ │ ├── arm │ │ │ │ │ ├── startup_stm32f10x_cl.s │ │ │ │ │ ├── startup_stm32f10x_hd.s │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s │ │ │ │ │ ├── startup_stm32f10x_ld.s │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s │ │ │ │ │ ├── startup_stm32f10x_md.s │ │ │ │ │ ├── startup_stm32f10x_md_vl.s │ │ │ │ │ └── startup_stm32f10x_xl.s │ │ │ │ ├── core_cm3.c │ │ │ │ ├── core_cm3.h │ │ │ │ ├── gcc_ride7 │ │ │ │ │ ├── startup_stm32f10x_cl.s │ │ │ │ │ ├── startup_stm32f10x_hd.s │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s │ │ │ │ │ ├── startup_stm32f10x_ld.s │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s │ │ │ │ │ ├── startup_stm32f10x_md.s │ │ │ │ │ ├── startup_stm32f10x_md_vl.s │ │ │ │ │ └── startup_stm32f10x_xl.s │ │ │ │ ├── iar │ │ │ │ │ ├── startup_stm32f10x_cl.s │ │ │ │ │ ├── startup_stm32f10x_hd.s │ │ │ │ │ ├── startup_stm32f10x_hd_vl.s │ │ │ │ │ ├── startup_stm32f10x_ld.s │ │ │ │ │ ├── startup_stm32f10x_ld_vl.s │ │ │ │ │ ├── startup_stm32f10x_md.s │ │ │ │ │ ├── startup_stm32f10x_md_vl.s │ │ │ │ │ └── startup_stm32f10x_xl.s │ │ │ │ ├── stm32f10x.h │ │ │ │ └── system_stm32f10x.h │ │ │ ├── STM32_BACnet_Demo.svg │ │ │ ├── STM32_BACnet_Software.svg │ │ │ ├── automac.c │ │ │ ├── automac.h │ │ │ ├── bacnet.c │ │ │ ├── bacnet.ewp │ │ │ ├── bacnet.eww │ │ │ ├── bacnet.h │ │ │ ├── bo.c │ │ │ ├── device.c │ │ │ ├── dlmstp.c │ │ │ ├── drivers │ │ │ │ ├── Release_Notes_for_STM32F10x_StdPeriph_Driver.html │ │ │ │ ├── inc │ │ │ │ │ ├── stm32f10x_adc.h │ │ │ │ │ ├── stm32f10x_bkp.h │ │ │ │ │ ├── stm32f10x_can.h │ │ │ │ │ ├── stm32f10x_cec.h │ │ │ │ │ ├── stm32f10x_crc.h │ │ │ │ │ ├── stm32f10x_dac.h │ │ │ │ │ ├── stm32f10x_dbgmcu.h │ │ │ │ │ ├── stm32f10x_dma.h │ │ │ │ │ ├── stm32f10x_exti.h │ │ │ │ │ ├── stm32f10x_flash.h │ │ │ │ │ ├── stm32f10x_fsmc.h │ │ │ │ │ ├── stm32f10x_gpio.h │ │ │ │ │ ├── stm32f10x_i2c.h │ │ │ │ │ ├── stm32f10x_iwdg.h │ │ │ │ │ ├── stm32f10x_misc.h │ │ │ │ │ ├── stm32f10x_pwr.h │ │ │ │ │ ├── stm32f10x_rcc.h │ │ │ │ │ ├── stm32f10x_rtc.h │ │ │ │ │ ├── stm32f10x_sdio.h │ │ │ │ │ ├── stm32f10x_spi.h │ │ │ │ │ ├── stm32f10x_tim.h │ │ │ │ │ ├── stm32f10x_usart.h │ │ │ │ │ └── stm32f10x_wwdg.h │ │ │ │ └── src │ │ │ │ │ ├── stm32f10x_adc.c │ │ │ │ │ ├── stm32f10x_bkp.c │ │ │ │ │ ├── stm32f10x_can.c │ │ │ │ │ ├── stm32f10x_cec.c │ │ │ │ │ ├── stm32f10x_crc.c │ │ │ │ │ ├── stm32f10x_dac.c │ │ │ │ │ ├── stm32f10x_dbgmcu.c │ │ │ │ │ ├── stm32f10x_dma.c │ │ │ │ │ ├── stm32f10x_exti.c │ │ │ │ │ ├── stm32f10x_flash.c │ │ │ │ │ ├── stm32f10x_fsmc.c │ │ │ │ │ ├── stm32f10x_gpio.c │ │ │ │ │ ├── stm32f10x_i2c.c │ │ │ │ │ ├── stm32f10x_iwdg.c │ │ │ │ │ ├── stm32f10x_misc.c │ │ │ │ │ ├── stm32f10x_pwr.c │ │ │ │ │ ├── stm32f10x_rcc.c │ │ │ │ │ ├── stm32f10x_rtc.c │ │ │ │ │ ├── stm32f10x_sdio.c │ │ │ │ │ ├── stm32f10x_spi.c │ │ │ │ │ ├── stm32f10x_tim.c │ │ │ │ │ ├── stm32f10x_usart.c │ │ │ │ │ └── stm32f10x_wwdg.c │ │ │ ├── hardware.h │ │ │ ├── led.c │ │ │ ├── led.h │ │ │ ├── main.c │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.h │ │ │ ├── stm32-rs485-daughter.brd │ │ │ ├── stm32-rs485-daughter.ods │ │ │ ├── stm32-rs485-daughter.sch │ │ │ ├── stm32f10x_conf.h │ │ │ ├── stm32f10x_flash.icf │ │ │ ├── stm32f10x_it.c │ │ │ ├── stm32f10x_it.h │ │ │ ├── system_stm32f10x.c │ │ │ ├── timer.c │ │ │ ├── timer.h │ │ │ └── timer_sys.c │ │ └── win32 │ │ │ ├── MAKEFILE.MAK │ │ │ ├── Microsoft Visual Studio 2005 │ │ │ ├── BACnet Object Definitions │ │ │ │ └── BACnet Object Definitions.vcproj │ │ │ ├── BACnet Stack Library │ │ │ │ └── BACnet Stack Library.vcproj │ │ │ ├── Microsoft Visual Studio 2005.sln │ │ │ ├── Server │ │ │ │ └── Server.vcproj │ │ │ └── Who-Is │ │ │ │ └── Who-Is.vcproj │ │ │ ├── Microsoft Visual Studio 2008 │ │ │ ├── BACnet Object Definitions │ │ │ │ └── BACnet Object Definitions.vcproj │ │ │ ├── BACnet Stack Development.sln │ │ │ ├── BACnet Stack Library │ │ │ │ └── BACnet Stack Library.vcproj │ │ │ ├── Server │ │ │ │ └── Server.vcproj │ │ │ ├── Who-Is │ │ │ │ └── Who-Is.vcproj │ │ │ ├── epics │ │ │ │ └── epics.vcproj │ │ │ ├── gateway │ │ │ │ └── gateway.vcproj │ │ │ └── mstpcap │ │ │ │ └── mstpcap.vcproj │ │ │ ├── Microsoft Visual Studio 2010 │ │ │ ├── BACnet Handler Library │ │ │ │ ├── BACnet Handler Library.vcxproj │ │ │ │ ├── BACnet Handler Library.vcxproj.filters │ │ │ │ └── BACnet Handler Library.vcxproj.user │ │ │ ├── BACnet Object Definitions │ │ │ │ ├── BACnet Object Definitions.vcproj │ │ │ │ ├── BACnet Object Definitions.vcxproj │ │ │ │ ├── BACnet Object Definitions.vcxproj.filters │ │ │ │ └── BACnet Object Definitions.vcxproj.user │ │ │ ├── BACnet Stack Development.sln │ │ │ ├── BACnet Stack Development.suo │ │ │ ├── BACnet Stack Library │ │ │ │ ├── BACnet Stack Library.vcproj │ │ │ │ ├── BACnet Stack Library.vcxproj │ │ │ │ ├── BACnet Stack Library.vcxproj.filters │ │ │ │ └── BACnet Stack Library.vcxproj.user │ │ │ ├── Server │ │ │ │ ├── Server.vcproj │ │ │ │ └── Server.vcxproj │ │ │ ├── Who-Is │ │ │ │ ├── Who-Is.vcproj │ │ │ │ └── Who-Is.vcxproj │ │ │ ├── bacepics │ │ │ │ ├── bacepics.vcxproj │ │ │ │ ├── bacepics.vcxproj.filters │ │ │ │ └── bacepics.vcxproj.user │ │ │ ├── bacrp │ │ │ │ ├── bacrp.vcxproj │ │ │ │ ├── bacrp.vcxproj.filters │ │ │ │ └── bacrp.vcxproj.user │ │ │ ├── bacwir │ │ │ │ ├── bacwir.vcxproj │ │ │ │ ├── bacwir.vcxproj.filters │ │ │ │ └── bacwir.vcxproj.user │ │ │ ├── dcc │ │ │ │ ├── dcc.vcxproj │ │ │ │ ├── dcc.vcxproj.filters │ │ │ │ └── dcc.vcxproj.user │ │ │ └── writeprop │ │ │ │ ├── writeprop.vcxproj │ │ │ │ ├── writeprop.vcxproj.filters │ │ │ │ └── writeprop.vcxproj.user │ │ │ ├── Microsoft Visual Studio 2015 │ │ │ ├── BACnet Stack Development.sln │ │ │ ├── BACnet_Handler_Library │ │ │ │ ├── BACnet_Handler_Library.vcxproj │ │ │ │ └── BACnet_Handler_Library.vcxproj.filters │ │ │ └── BACnet_Object_Definitions │ │ │ │ ├── BACnet_Object_Definitions.vcxproj │ │ │ │ └── BACnet_Object_Definitions.vcxproj.filters │ │ │ ├── bacnet.cbp │ │ │ ├── bacnet.ide │ │ │ ├── bacnet │ │ │ ├── bacnet.dsp │ │ │ ├── bacnet.dsw │ │ │ ├── bacnet.opt │ │ │ ├── bacnet.plg │ │ │ ├── bacnet.sln │ │ │ └── bacnet.vcproj │ │ │ ├── bip-init.c │ │ │ ├── bip6.c │ │ │ ├── borland.bat │ │ │ ├── dlmstp-mm.c │ │ │ ├── dlmstp.c │ │ │ ├── dlmstp.cbp │ │ │ ├── ethernet.c │ │ │ ├── main.c │ │ │ ├── makefile.mgw │ │ │ ├── net.h │ │ │ ├── readme.txt │ │ │ ├── rs485.c │ │ │ ├── rs485.cbp │ │ │ ├── rs485.h │ │ │ ├── rs485.mak │ │ │ ├── rx_fsm.c │ │ │ ├── rx_fsm.cbp │ │ │ ├── rx_fsm.mak │ │ │ ├── setvars.bat │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ ├── timer.c │ │ │ └── timer.h │ ├── readme.txt │ ├── rebuild.sh │ ├── release.sh │ ├── splint.sh │ ├── src │ │ ├── abort.c │ │ ├── address.c │ │ ├── alarm_ack.c │ │ ├── apdu.c │ │ ├── arf.c │ │ ├── awf.c │ │ ├── bacaddr.c │ │ ├── bacapp.c │ │ ├── bacdcode.c │ │ ├── bacdevobjpropref.c │ │ ├── bacerror.c │ │ ├── bacint.c │ │ ├── bacprop.c │ │ ├── bacpropstates.c │ │ ├── bacreal.c │ │ ├── bacstr.c │ │ ├── bactext.c │ │ ├── bactimevalue.c │ │ ├── bigend.c │ │ ├── bip.c │ │ ├── bvlc.c │ │ ├── bvlc6.c │ │ ├── cov.c │ │ ├── crc.c │ │ ├── datalink.c │ │ ├── datetime.c │ │ ├── dcc.c │ │ ├── debug.c │ │ ├── event.c │ │ ├── fifo.c │ │ ├── filename.c │ │ ├── get_alarm_sum.c │ │ ├── getevent.c │ │ ├── iam.c │ │ ├── ihave.c │ │ ├── indtext.c │ │ ├── key.c │ │ ├── keylist.c │ │ ├── lighting.c │ │ ├── lso.c │ │ ├── memcopy.c │ │ ├── mstp.c │ │ ├── mstptext.c │ │ ├── npdu.c │ │ ├── proplist.c │ │ ├── ptransfer.c │ │ ├── rd.c │ │ ├── readrange.c │ │ ├── reject.c │ │ ├── ringbuf.c │ │ ├── rp.c │ │ ├── rpm.c │ │ ├── sbuf.c │ │ ├── timestamp.c │ │ ├── timesync.c │ │ ├── tsm.c │ │ ├── version.c │ │ ├── vmac.c │ │ ├── whohas.c │ │ ├── whois.c │ │ ├── wp.c │ │ └── wpm.c │ ├── svn2cl.xsl │ ├── test.mak │ ├── test │ │ ├── abort.mak │ │ ├── address.cbp │ │ ├── address.mak │ │ ├── arf.mak │ │ ├── awf.mak │ │ ├── bacapp.ide │ │ ├── bacapp.mak │ │ ├── bacdcode.ide │ │ ├── bacdcode.mak │ │ ├── bacdevobjpropref.mak │ │ ├── bacerror.mak │ │ ├── bacint.cbp │ │ ├── bacint.mak │ │ ├── bacstr.mak │ │ ├── bbmd6.mak │ │ ├── bvlc.cbp │ │ ├── bvlc.mak │ │ ├── bvlc6.mak │ │ ├── cov.cbp │ │ ├── cov.mak │ │ ├── crc.ide │ │ ├── crc.mak │ │ ├── ctest.c │ │ ├── ctest.h │ │ ├── datetime.ide │ │ ├── datetime.mak │ │ ├── dcc.mak │ │ ├── event.mak │ │ ├── fifo.mak │ │ ├── filename.ide │ │ ├── filename.mak │ │ ├── getevent.mak │ │ ├── iam.mak │ │ ├── ihave.mak │ │ ├── indtext.mak │ │ ├── key.mak │ │ ├── keylist.mak │ │ ├── lso.mak │ │ ├── memcopy.mak │ │ ├── mstp.ide │ │ ├── mstp.mak │ │ ├── npdu.mak │ │ ├── objects.cbp │ │ ├── objects.mak │ │ ├── ptransfer.mak │ │ ├── rd.cbp │ │ ├── rd.mak │ │ ├── reject.mak │ │ ├── ringbuf.mak │ │ ├── rp.mak │ │ ├── rpm.mak │ │ ├── sbuf.mak │ │ ├── timer.mak │ │ ├── timesync.cbp │ │ ├── timesync.mak │ │ ├── whohas.cbp │ │ ├── whohas.mak │ │ ├── whois.mak │ │ └── wp.mak │ ├── unittest.bat │ └── unittest.sh ├── misc │ └── bacnet-stack-0.8.4.changes.diff ├── mstplib │ ├── Makefile │ ├── __init__.py │ ├── libmstp_agent_darwin.so │ ├── libmstp_agent_linux.so │ ├── mstp_agent.c │ └── mstp_agent.h ├── samples │ ├── BACpypes.ini │ ├── CommandableMixin.py │ ├── ReadProperty.py │ ├── ReadPropertyMultiple.py │ ├── ReadPropertyMultipleServer.py │ ├── ReadWriteProperty.py │ ├── WhoIsIAm.py │ ├── __init__.py │ ├── bac_client.ini │ ├── bac_client.py │ └── bac_server.ini └── tools │ ├── cp_ini.py │ ├── gen_whl │ ├── start_socat │ └── upload_procedure.txt ├── screenshots ├── misty_concept.png ├── misty_with_kmc.png └── misty_with_socat.png ├── setup.py └── snap ├── hooks └── install └── snapcraft.yaml /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: [push, pull_request] 4 | 5 | 6 | jobs: 7 | build_wheels: 8 | name: Build wheels on ${{ matrix.os }} 9 | runs-on: ${{ matrix.os }} 10 | strategy: 11 | matrix: 12 | os: [ubuntu-18.04, macos-latest] 13 | 14 | steps: 15 | - uses: actions/checkout@v2 16 | 17 | - uses: actions/setup-python@v2 18 | name: Install Python 19 | with: 20 | python-version: '3.7' 21 | 22 | - name: Install cibuildwheel 23 | run: | 24 | python -m pip install cibuildwheel==1.7.2 25 | 26 | - name: Build wheels 27 | run: | 28 | python -m cibuildwheel --output-dir wheelhouse 29 | env: 30 | CIBW_SKIP: "cp35-* cp37-* cp38-* cp39-* pp*-*" 31 | 32 | - uses: actions/upload-artifact@v2 33 | with: 34 | path: ./wheelhouse/*.whl 35 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.history 3 | misty/mstplib/libmstp.a 4 | misty/mstplib/libmstp_agent.so 5 | build/ 6 | dist/ 7 | snap/.snapcraft/ 8 | misty.egg-info/ 9 | misty_0.0.1_amd64.snap 10 | parts/ 11 | prime/ 12 | stage/ 13 | wheelhouse/* 14 | mstp_test 15 | .idea/ 16 | -------------------------------------------------------------------------------- /bin/CommandableMixin: -------------------------------------------------------------------------------- 1 | ../misty/samples/CommandableMixin.py -------------------------------------------------------------------------------- /bin/ReadProperty: -------------------------------------------------------------------------------- 1 | ../misty/samples/ReadProperty.py -------------------------------------------------------------------------------- /bin/ReadPropertyMultiple: -------------------------------------------------------------------------------- 1 | ../misty/samples/ReadPropertyMultiple.py -------------------------------------------------------------------------------- /bin/ReadPropertyMultipleServer: -------------------------------------------------------------------------------- 1 | ../misty/samples/ReadPropertyMultipleServer.py -------------------------------------------------------------------------------- /bin/ReadWriteProperty: -------------------------------------------------------------------------------- 1 | ../misty/samples/ReadWriteProperty.py -------------------------------------------------------------------------------- /bin/WhoIsIAm: -------------------------------------------------------------------------------- 1 | ../misty/samples/WhoIsIAm.py -------------------------------------------------------------------------------- /bin/bc: -------------------------------------------------------------------------------- 1 | ../misty/samples/bac_client.py -------------------------------------------------------------------------------- /bin/bs: -------------------------------------------------------------------------------- 1 | ../misty/samples/CommandableMixin.py -------------------------------------------------------------------------------- /bin/cp_ini: -------------------------------------------------------------------------------- 1 | ../misty/tools/cp_ini.py -------------------------------------------------------------------------------- /build_package: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This builds a python 2.7 package that can be uploaded to pypi 4 | 5 | ./clean 6 | 7 | docker run -it --user $(id -u):$(id -g) -v$PWD:/src quay.io/pypa/manylinux1_x86_64 /bin/bash /src/misty/tools/gen_whl 8 | auditwheel repair dist/*mu-*.whl 9 | auditwheel repair dist/*m-*.whl 10 | echo "==================================================" 11 | echo "Run the following command to upload to pypi" 12 | echo "twine upload -r pypi wheelhouse/*.whl dist/*.tar.gz" 13 | 14 | 15 | -------------------------------------------------------------------------------- /build_snap: -------------------------------------------------------------------------------- 1 | 2 | cd misty/mstplib 3 | make clean 4 | make 5 | cd ../.. 6 | snapcraft clean 7 | snapcraft 8 | -------------------------------------------------------------------------------- /clean: -------------------------------------------------------------------------------- 1 | # 2 | #Copyright (c) 2018 by Riptide I/O 3 | #All rights reserved. 4 | 5 | rm -rf build/ dist/ wheelhouse misty.egg-info/ 6 | rm -f misty/mstp_agent/libmstp_agent.so 7 | 8 | #snapcraft clean 9 | rm -rf parts stage prime 10 | rm -f *.snap 11 | 12 | find . -name '*.pyc' | xargs rm -f 13 | 14 | -------------------------------------------------------------------------------- /misty/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/__init__.py -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/.astylerc: -------------------------------------------------------------------------------- 1 | #--indent-cases 2 | --indent-classes 3 | --indent-switches 4 | --indent=spaces=4 5 | #--max-instatement-indent=4 6 | #--min-conditional-indent=0 7 | --brackets=linux 8 | --convert-tabs 9 | --mode=c 10 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/.gdbinit: -------------------------------------------------------------------------------- 1 | set print pretty on 2 | set print union on 3 | set print address on 4 | list 5 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/.indent.pro: -------------------------------------------------------------------------------- 1 | -kr -nut -nlp -ip4 -cli4 -bfda -nbc -nbbo -c0 -cd0 -cp0 -di0 -l79 -nhnl 2 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/.splintrc: -------------------------------------------------------------------------------- 1 | -Iinclude -Idemo/object -Iports/linux -castfcnptr -fullinitblock -initallelements -weak +posixlib 2 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/bin/bacroute.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo Setting parameters for Router 3 | BACNET_IP_PORT=47808 4 | export BACNET_IP_PORT 5 | #BACNET_BBMD_PORT=47809 6 | #export BACNET_BBMD_PORT 7 | BACNET_IFACE=${1} 8 | export BACNET_IFACE 9 | BACNET_IP6_PORT=47808 10 | export BACNET_IP6_PORT 11 | BACNET_BIP6_BROADCAST=FF05::BAC0 12 | export BACNET_BIP6_BROADCAST 13 | BACNET_BIP6_IFACE=${1} 14 | export BACNET_BIP6_IFACE 15 | # Network Numbers 16 | BACNET_IP_NET=1 17 | export BACNET_IP_NET 18 | BACNET_IP6_NET=2 19 | export BACNET_IP6_NET 20 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/bin/bacrpd.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :Test_Start 3 | echo Test: Read Required Properties of Device Object %1 4 | bacrp.exe %1 8 %1 75 5 | bacrp.exe %1 8 %1 77 6 | bacrp.exe %1 8 %1 79 7 | bacrp.exe %1 8 %1 112 8 | bacrp.exe %1 8 %1 121 9 | bacrp.exe %1 8 %1 120 10 | bacrp.exe %1 8 %1 70 11 | bacrp.exe %1 8 %1 44 12 | bacrp.exe %1 8 %1 12 13 | bacrp.exe %1 8 %1 98 14 | bacrp.exe %1 8 %1 139 15 | bacrp.exe %1 8 %1 97 16 | bacrp.exe %1 8 %1 96 17 | bacrp.exe %1 8 %1 76 0 18 | bacrp.exe %1 8 %1 76 19 | bacrp.exe %1 8 %1 62 20 | bacrp.exe %1 8 %1 107 21 | bacrp.exe %1 8 %1 11 22 | bacrp.exe %1 8 %1 73 23 | bacrp.exe %1 8 %1 30 24 | bacrp.exe %1 8 %1 155 25 | 26 | echo Test: Read Optional Properties of Device Object %1 27 | bacrp.exe %1 8 %1 58 28 | bacrp.exe %1 8 %1 28 29 | bacrp.exe %1 8 %1 167 30 | bacrp.exe %1 8 %1 122 31 | bacrp.exe %1 8 %1 5 32 | bacrp.exe %1 8 %1 57 33 | bacrp.exe %1 8 %1 56 34 | bacrp.exe %1 8 %1 119 35 | bacrp.exe %1 8 %1 24 36 | bacrp.exe %1 8 %1 10 37 | bacrp.exe %1 8 %1 55 38 | bacrp.exe %1 8 %1 116 39 | bacrp.exe %1 8 %1 64 40 | bacrp.exe %1 8 %1 63 41 | bacrp.exe %1 8 %1 1 42 | bacrp.exe %1 8 %1 154 43 | bacrp.exe %1 8 %1 157 44 | bacrp.exe %1 8 %1 153 45 | bacrp.exe %1 8 %1 152 46 | bacrp.exe %1 8 %1 172 47 | bacrp.exe %1 8 %1 170 48 | bacrp.exe %1 8 %1 169 49 | bacrp.exe %1 8 %1 171 50 | bacrp.exe %1 8 %1 168 51 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/bin/bvlc.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Example of parameters for Foreign Device Registration 3 | echo This CMD window will use port 47809 to communicate 4 | @echo on 5 | set BACNET_IP_PORT=47809 6 | @echo off 7 | echo The BBMD is located at the standard port 47808 and at 8 | echo the dotted IP address passed in on the command line. 9 | echo When the demo client applications see the BBMD address, 10 | echo they register as a Foreign Device to it. 11 | @echo on 12 | set BACNET_BBMD_PORT=47808 13 | set BACNET_BBMD_ADDRESS=%1 14 | 15 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/bin/bvlc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo Example of parameters for Foreign Device Registration 3 | BACNET_IP_PORT=47809 4 | export BACNET_IP_PORT 5 | echo This console will use port ${BACNET_IP_PORT} to communicate. 6 | echo 7 | BACNET_BBMD_PORT=47808 8 | export BACNET_BBMD_PORT 9 | echo The BBMD is located at the port ${BACNET_BBMD_PORT} and 10 | echo is at the dotted IP address passed on the command line. 11 | BACNET_BBMD_ADDRESS=${1} 12 | export BACNET_BBMD_ADDRESS 13 | echo The BBMD IP address is ${BACNET_BBMD_ADDRESS} 14 | echo When the demo client applications see the BBMD address, 15 | echo they register as a Foreign Device to it. 16 | echo 17 | echo Launching new shell using the BBMD environment... 18 | /bin/bash 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/borland.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Build for Borland 5.5 tools 3 | set BORLAND_DIR=c:\borland\bcc55 4 | %BORLAND_DIR%\bin\make -f makefile.b32 clean 5 | %BORLAND_DIR%\bin\make -f makefile.b32 all 6 | 7 | 8 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Build with MinGW and MSYS: mingw.sourceforge.net 3 | rem set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin 4 | rem assumes rm, cp, size are already in path 5 | set CC=gcc 6 | set AR=ar 7 | set MAKE=make 8 | make BACNET_PORT=win32 BUILD=release clean all 9 | 10 | rem Build for MinGW debug 11 | rem make BACNET_PORT=win32 BUILD=debug clean all 12 | 13 | rem Build for MinGW MS/TP 14 | rem make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_MSTP=1 clean all 15 | rem make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_BIP6=1 clean all 16 | 17 | rem On Linux, install mingw32 and use this: 18 | rem make BACNET_PORT=win32 CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar clean all 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Build script for MinGW 3 | echo "Build with MinGW and MSYS: mingw.sourceforge.net" 4 | # set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin 5 | # assumes rm, cp, size are already in path 6 | CC=gcc 7 | AR=ar 8 | MAKE=make 9 | export CC AR MAKE 10 | make BACNET_PORT=win32 BUILD=release clean all > /dev/null 11 | 12 | # Build for MinGW debug 13 | # make BACNET_PORT=win32 BUILD=debug clean all 14 | 15 | # Build for MinGW MS/TP 16 | # make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_MSTP=1 clean all 17 | # make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_BIP6=1 clean all 18 | # make BACDL_DEFINE=-DBACDL_BIP6=1 BUILD=debug clean all 19 | 20 | # On Linux, install mingw32 and use this: 21 | # make BACNET_PORT=win32 CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar clean all 22 | 23 | echo "Complete!" 24 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/comment.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script converts any C++ comments to C comments 3 | # using the ccmtcnvt tool from the liwc package 4 | 5 | CONVERTER=/usr/bin/ccmtcnvt 6 | # silent fail if the tool is not installed 7 | [ -x ${CONVERTER} ] || exit 0 8 | 9 | directory=${1-`pwd`} 10 | for filename in $( find ${directory} -name '*.c' ) 11 | do 12 | echo Converting ${filename} 13 | TEMPFILE="/tmp/ccmtcnvt.$RANDOM.txt" 14 | ${CONVERTER} ${filename} > ${TEMPFILE} 15 | mv ${TEMPFILE} ${filename} 16 | done 17 | 18 | for filename in $( find ${directory} -name '*.h' ) 19 | do 20 | echo Converting ${filename} 21 | TEMPFILE="/tmp/ccmtcnvt.$RANDOM.txt" 22 | ${CONVERTER} ${filename} > ${TEMPFILE} 23 | mv ${TEMPFILE} ${filename} 24 | done 25 | 26 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/BACnetDemo.workspace: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/dcc/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacdcc 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/epics/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacepics 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/handler/txbuf.c: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2005 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | * 24 | *********************************************************************/ 25 | #include 26 | #include 27 | #include "config.h" 28 | #include "datalink.h" 29 | 30 | /** @file txbuf.c Declare the global Transmit Buffer for handler functions. */ 31 | 32 | uint8_t Handler_Transmit_Buffer[MAX_PDU] = { 0 }; 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/iamrouter/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = baciamr 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/initrouter/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacinitr 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/mstpcap/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = mstpcap 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | # This demo seems to be a little unique 13 | DEFINES = $(BACNET_DEFINES) -DBACDL_MSTP 14 | BACNET_SOURCE_DIR = ../../src 15 | 16 | SRCS = main.c \ 17 | ${BACNET_PORT_DIR}/rs485.c \ 18 | ${BACNET_PORT_DIR}/timer.c \ 19 | ${BACNET_SOURCE_DIR}/fifo.c \ 20 | ${BACNET_SOURCE_DIR}/mstp.c \ 21 | ${BACNET_SOURCE_DIR}/mstptext.c \ 22 | ${BACNET_SOURCE_DIR}/debug.c \ 23 | ${BACNET_SOURCE_DIR}/indtext.c \ 24 | ${BACNET_SOURCE_DIR}/ringbuf.c \ 25 | ${BACNET_SOURCE_DIR}/bacdcode.c \ 26 | ${BACNET_SOURCE_DIR}/iam.c \ 27 | ${BACNET_SOURCE_DIR}/crc.c 28 | 29 | OBJS = ${SRCS:.c=.o} 30 | 31 | all: Makefile ${TARGET_BIN} 32 | 33 | ${TARGET_BIN}: ${OBJS} Makefile 34 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 35 | size $@ 36 | cp $@ ../../bin 37 | 38 | .c.o: 39 | ${CC} -c ${CFLAGS} $*.c -o $@ 40 | 41 | depend: 42 | rm -f .depend 43 | ${CC} -MM ${CFLAGS} *.c >> .depend 44 | 45 | clean: 46 | rm -f core ${TARGET_BIN} ${OBJS} $(TARGET).map 47 | 48 | include: .depend 49 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/mstpcap/mstpcap.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/demo/mstpcap/mstpcap.txt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/mstpcrc/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = mstpcrc 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | # This demo seems to be a little unique 13 | DEFINES = $(BACNET_DEFINES) 14 | BACNET_SOURCE_DIR = ../../src 15 | 16 | #libraries used 17 | LIBRARIES=-lgcc,-lm 18 | 19 | #build for release (default) or debug 20 | DEBUGGING = 21 | OPTIMIZATION = -Os 22 | ifeq (${BUILD},debug) 23 | OPTIMIZATION = -O0 24 | DEBUGGING = -g 25 | endif 26 | 27 | # search order for included libraries 28 | INCLUDES = -I$(BACNET_INCLUDE_DIR) 29 | 30 | SRCS = main.c \ 31 | ${BACNET_PORT_DIR}/timer.c \ 32 | ${BACNET_SOURCE_DIR}/crc.c 33 | 34 | OBJS = ${SRCS:.c=.o} 35 | 36 | all: Makefile ${TARGET_BIN} 37 | 38 | ${TARGET_BIN}: ${OBJS} Makefile 39 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 40 | size $@ 41 | cp $@ ../../bin 42 | 43 | .c.o: 44 | ${CC} -c ${CFLAGS} $*.c -o $@ 45 | 46 | depend: 47 | rm -f .depend 48 | ${CC} -MM ${CFLAGS} *.c >> .depend 49 | 50 | clean: 51 | rm -f core ${TARGET_BIN} ${OBJS} $(TARGET).map 52 | 53 | include: .depend 54 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/mstpcrc/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Build with MinGW and MSYS: mingw.sourceforge.net 3 | rem set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin 4 | rem assumes rm, cp, size are already in path 5 | set CC=gcc 6 | set AR=ar 7 | set MAKE=make 8 | set TARGET_EXT=.exe 9 | make clean all 10 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/mstpcrc/readme.txt: -------------------------------------------------------------------------------- 1 | BACnet MS/TP CRC Calculator 2 | 3 | This tool receives MS/TP bytes and generates a CRC for those bytes 4 | 5 | mstpcrc [options] <00 00 00 00...> 6 | perform MS/TP CRC on data bytes. 7 | options: 8 | [-x] interprete the arguments as ascii hex (default) 9 | [-d] interprete the argument as ascii decimal 10 | [-8] calculate the MS/TP 8-bit Header CRC (default) 11 | [-16] calculate the MS/TP 16-bit Data CRC 12 | 13 | Here is a sample of the tool running (use CTRL-C to quit): 14 | D:\code\bacnet-stack\demo\mstpcrc>mstpcrc 06 ff 01 00 15 15 | 0x06 16 | 0xFF 17 | 0x01 18 | 0x00 19 | 0x15 20 | 0x8E Header CRC 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/ai.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | HANDLER_DIR = ../handler 6 | INCLUDES = -I../../include -I$(TEST_DIR) -I. -I$(HANDLER_DIR) 7 | DEFINES = -DBIG_ENDIAN=0 -DBACDL_ALL -DTEST -DTEST_ANALOG_INPUT 8 | 9 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 10 | 11 | SRCS = ai.c \ 12 | $(SRC_DIR)/bacdcode.c \ 13 | $(SRC_DIR)/bacint.c \ 14 | $(SRC_DIR)/bacstr.c \ 15 | $(SRC_DIR)/bacreal.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(SRC_DIR)/datetime.c \ 21 | $(TEST_DIR)/ctest.c 22 | 23 | TARGET = analog_input 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf core ${TARGET} $(OBJS) 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/ao.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_ANALOG_OUTPUT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = ao.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = analog_output 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/av.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_ANALOG_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = av.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = analog_value 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/bi.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BINARY_INPUT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = bi.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/bacapp.c \ 16 | $(SRC_DIR)/bacdevobjpropref.c \ 17 | $(SRC_DIR)/bactext.c \ 18 | $(SRC_DIR)/indtext.c \ 19 | $(SRC_DIR)/datetime.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = binary_input 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/bo.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_BINARY_OUTPUT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = bo.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = binary_output 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/bv.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_BINARY_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = bv.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = binary_value 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/csv.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_CHARACTERSTRING_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = csv.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = characterstring_value 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/device.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | PORTS_DIR = ../../ports/linux 6 | INCLUDES = -I../../include -I$(TEST_DIR) -I$(PORTS_DIR) -I. 7 | DEFINES = -DBIG_ENDIAN=0 8 | DEFINES += -DTEST -DBACDL_TEST 9 | DEFINES += -DBACAPP_ALL 10 | DEFINES += -DMAX_TSM_TRANSACTIONS=0 11 | DEFINES += -DTEST_DEVICE 12 | 13 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 14 | 15 | SRCS = device.c \ 16 | $(SRC_DIR)/bacdcode.c \ 17 | $(SRC_DIR)/bacint.c \ 18 | $(SRC_DIR)/bacstr.c \ 19 | $(SRC_DIR)/bacreal.c \ 20 | $(SRC_DIR)/datetime.c \ 21 | $(SRC_DIR)/bacapp.c \ 22 | $(SRC_DIR)/bacdevobjpropref.c \ 23 | $(SRC_DIR)/bactext.c \ 24 | $(SRC_DIR)/indtext.c \ 25 | $(SRC_DIR)/apdu.c \ 26 | $(SRC_DIR)/address.c \ 27 | $(SRC_DIR)/bacaddr.c \ 28 | $(SRC_DIR)/dcc.c \ 29 | $(SRC_DIR)/version.c \ 30 | $(TEST_DIR)/ctest.c 31 | 32 | TARGET = device 33 | 34 | all: ${TARGET} 35 | 36 | OBJS = ${SRCS:.c=.o} 37 | 38 | ${TARGET}: ${OBJS} 39 | ${CC} -o $@ ${OBJS} 40 | 41 | .c.o: 42 | ${CC} -c ${CFLAGS} $*.c -o $@ 43 | 44 | depend: 45 | rm -f .depend 46 | ${CC} -MM ${CFLAGS} *.c >> .depend 47 | 48 | clean: 49 | rm -rf core ${TARGET} $(OBJS) 50 | 51 | include: .depend 52 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/lc.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/demo/object/lc.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/lc.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_LOAD_CONTROL 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = lc.c ao.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = load_control 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/lo.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_LIGHTING_OUTPUT 7 | DEFINES += -DBACAPP_LIGHTING_COMMAND 8 | 9 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 10 | 11 | SRCS = lo.c \ 12 | $(SRC_DIR)/bacdcode.c \ 13 | $(SRC_DIR)/bacint.c \ 14 | $(SRC_DIR)/bacstr.c \ 15 | $(SRC_DIR)/bacreal.c \ 16 | $(SRC_DIR)/datetime.c \ 17 | $(SRC_DIR)/bacapp.c \ 18 | $(SRC_DIR)/bacdevobjpropref.c \ 19 | $(SRC_DIR)/bactext.c \ 20 | $(SRC_DIR)/indtext.c \ 21 | $(SRC_DIR)/lighting.c \ 22 | $(TEST_DIR)/ctest.c 23 | 24 | TARGET = lighting_output 25 | 26 | all: ${TARGET} 27 | 28 | OBJS = ${SRCS:.c=.o} 29 | 30 | ${TARGET}: ${OBJS} 31 | ${CC} -o $@ ${OBJS} 32 | 33 | .c.o: 34 | ${CC} -c ${CFLAGS} $*.c -o $@ 35 | 36 | depend: 37 | rm -f .depend 38 | ${CC} -MM ${CFLAGS} *.c >> .depend 39 | 40 | clean: 41 | rm -rf core ${TARGET} $(OBJS) 42 | 43 | include: .depend 44 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/lsp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_LIFE_SAFETY_POINT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = lsp.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = life_safety_point 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/ms-input.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_MULTISTATE_INPUT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = ms-input.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = multistate_input 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/mso.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_MULTISTATE_OUTPUT 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = mso.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = multistate_output 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/msv.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_MULTISTATE_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = msv.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bacapp.c \ 17 | $(SRC_DIR)/bacdevobjpropref.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = multistate_value 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/osv.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DBACNET_PROPERTY_LISTS -DTEST_OCTETSTRING_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = osv.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/datetime.c \ 17 | $(SRC_DIR)/proplist.c \ 18 | $(SRC_DIR)/bacapp.c \ 19 | $(SRC_DIR)/bactext.c \ 20 | $(SRC_DIR)/indtext.c \ 21 | $(TEST_DIR)/ctest.c 22 | 23 | TARGET = octetstring_value 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf core ${TARGET} $(OBJS) 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/piv.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_POSITIVEINTEGER_VALUE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = piv.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/datetime.c \ 17 | $(SRC_DIR)/bacapp.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | $(TEST_DIR)/ctest.c 21 | 22 | TARGET = positiveinteger_value 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/object/schedule.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../../src 4 | TEST_DIR = ../../test 5 | INCLUDES = -I../../include -I$(TEST_DIR) -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_SCHEDULE 7 | 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = schedule.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/bactimevalue.c \ 17 | $(SRC_DIR)/datetime.c \ 18 | $(SRC_DIR)/bacapp.c \ 19 | $(SRC_DIR)/bactext.c \ 20 | $(SRC_DIR)/indtext.c \ 21 | $(TEST_DIR)/ctest.c 22 | 23 | TARGET = schedule 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf core ${TARGET} $(OBJS) 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/perl/Documentation/syntax.css: -------------------------------------------------------------------------------- 1 | pre{ 2 | font-family: "Courier New", Courier, monospace, sans-serif; 3 | text-align: left; 4 | line-height: 1.6em; 5 | font-size: 11px; 6 | padding: 0.1em 0.5em 0.3em 0.7em; 7 | border: 2px solid #888; 8 | margin: 1.7em 0 1.7em 0.3em; 9 | overflow: auto; 10 | width: 93%; 11 | background: #EEEEEE; 12 | } 13 | h1 { 14 | font-size: 20pt; 15 | counter-increment: counter-h1; 16 | counter-reset: counter-h2; 17 | } 18 | h2 { 19 | font-size: 17pt; 20 | counter-increment: counter-h2; 21 | counter-reset: counter-h3; 22 | } 23 | h3 { 24 | font-size: 14pt; 25 | counter-increment: counter-h3; 26 | counter-reset: counter-h4; 27 | } 28 | h1:before { 29 | content: counter(counter-h1) ". "; 30 | } 31 | h2:before { 32 | content: counter(counter-h1) "." counter(counter-h2) ". "; 33 | } 34 | h3:before { 35 | content: counter(counter-h1) "." counter(counter-h2) "." counter(counter-h3) ". "; 36 | } 37 | ul { 38 | list-style-type: circle; 39 | } 40 | .quotedString 41 | { 42 | color: #0000FF; 43 | } 44 | .comment 45 | { 46 | color: #999999; 47 | } 48 | .operator 49 | { 50 | color: #00CCCC; 51 | } 52 | .builtinVariable 53 | { 54 | color: #CCCC00; 55 | } 56 | .variableSpecifier 57 | { 58 | color: #FF0000; 59 | } 60 | .keyword 61 | { 62 | color: #AA0033; 63 | } 64 | .builtinFunction 65 | { 66 | color: #AA00AA; 67 | } 68 | .identifier 69 | { 70 | color: #009900; 71 | } 72 | .number 73 | { 74 | color: #9999FF; 75 | } 76 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/perl/readme.txt: -------------------------------------------------------------------------------- 1 | The BACnet Scriptable (using Perl) Tool. 2 | 3 | * Running this tool assumes that the library has been already built. The 4 | library should be built with a command similar to 5 | 6 | CC=/mingw/bin/gcc BACNET_DEFINES="-DPRINT_ENABLED -DBACAPP_ALL -DBACFILE 7 | -DINTRINSIC_REPORTING" BBMD_DEFINE=-DBBMD_ENABLED\=1 BACNET_PORT=win32 make 8 | clean library 9 | 10 | * Currently, the tool assumes only win32 port, but should be easily modifiable 11 | for any port build. 12 | * This tool has to be run from a path without any spaces. The presence of the 13 | .Inline directory is required. 14 | * Run the tool without any arguments to see usage instructions 15 | * To run the example ReapProperty script (which reads Analog Value 0 Present 16 | Value) for Device at instance 1234 run the following command 17 | 18 | perl bacnet.pl --script example_readprop.pl -- 1234 19 | 20 | 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/piface/configure.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # A script to download and build the libpifacedigital for PiFace 3 | # The library is located at github.com/piface 4 | # Since the PiFace library is GPLv3, we have to keep it separate. 5 | 6 | git clone https://github.com/piface/libmcp23s17.git 7 | git clone https://github.com/piface/libpifacedigital.git 8 | 9 | # Build the library 10 | 11 | make -C libmcp23s17 12 | make -C libpifacedigital 13 | 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/ptransfer/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application using GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | # Executable file name 13 | TARGET = ptransfer 14 | 15 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 16 | 17 | SRCS = main.c \ 18 | ../object/device-client.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 23 | 24 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 25 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 26 | size $@ 27 | cp $@ ../../bin 28 | 29 | lib: ${BACNET_LIB_TARGET} 30 | 31 | ${BACNET_LIB_TARGET}: 32 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/ptransfer/ptransfer.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rdproperty", "rdproperty.vcproj", "{7AC60281-278A-4060-B900-A1343E438701}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {7AC60281-278A-4060-B900-A1343E438701}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {7AC60281-278A-4060-B900-A1343E438701}.Debug|Win32.Build.0 = Debug|Win32 14 | {7AC60281-278A-4060-B900-A1343E438701}.Release|Win32.ActiveCfg = Release|Win32 15 | {7AC60281-278A-4060-B900-A1343E438701}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readbdt/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the GCC Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacrbdt 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readfile/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacarf 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readfile/main.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/demo/readfile/main.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readprop/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application using GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | # Executable file name 13 | TARGET = bacrp 14 | 15 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 16 | 17 | SRCS = main.c \ 18 | ../object/device-client.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 23 | 24 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 25 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 26 | size $@ 27 | cp $@ ../../bin 28 | 29 | lib: ${BACNET_LIB_TARGET} 30 | 31 | ${BACNET_LIB_TARGET}: 32 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readpropm/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacrpm 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readrange/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application using GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | # Executable file name 13 | TARGET = bacrr 14 | 15 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 16 | 17 | SRCS = main.c \ 18 | ../object/device-client.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 23 | 24 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 25 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 26 | size $@ 27 | cp $@ ../../bin 28 | 29 | lib: ${BACNET_LIB_TARGET} 30 | 31 | ${BACNET_LIB_TARGET}: 32 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/readrange/readrange/readrange.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readrange", "readrange.vcproj", "{6017A2EA-1296-4E67-995F-6344A3CC27C2}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {6017A2EA-1296-4E67-995F-6344A3CC27C2}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {6017A2EA-1296-4E67-995F-6344A3CC27C2}.Debug|Win32.Build.0 = Debug|Win32 14 | {6017A2EA-1296-4E67-995F-6344A3CC27C2}.Release|Win32.ActiveCfg = Release|Win32 15 | {6017A2EA-1296-4E67-995F-6344A3CC27C2}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/reinit/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacrd 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/router-ipv6/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the GCC port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacroute 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | CFLAGS += -DPRINT_ENABLED=1 13 | 14 | BACNET_SOURCE_DIR = ../../src 15 | BACNET_HANDLER_DIR = ../handler 16 | BACNET_OBJECT_DIR = ../object 17 | 18 | SRC = main.c \ 19 | $(BACNET_OBJECT_DIR)/device-client.c 20 | 21 | PORT_BIP6_SRC = \ 22 | $(BACNET_PORT_DIR)/bip6.c \ 23 | $(BACNET_SOURCE_DIR)/bvlc6.c \ 24 | $(BACNET_HANDLER_DIR)/h_bbmd6.c \ 25 | $(BACNET_SOURCE_DIR)/vmac.c 26 | 27 | SRCS = ${SRC} ${PORT_BIP6_SRC} 28 | 29 | OBJS = ${SRCS:.c=.o} 30 | 31 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 32 | 33 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 34 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 35 | size $@ 36 | cp $@ ../../bin 37 | 38 | lib: ${BACNET_LIB_TARGET} 39 | 40 | ${BACNET_LIB_TARGET}: 41 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 42 | 43 | .c.o: 44 | ${CC} -c ${CFLAGS} $*.c -o $@ 45 | 46 | depend: 47 | rm -f .depend 48 | ${CC} -MM ${CFLAGS} *.c >> .depend 49 | 50 | clean: 51 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 52 | 53 | include: .depend 54 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/router-ipv6/readme.txt: -------------------------------------------------------------------------------- 1 | BACnet Simple Router Demo 2 | ========================= 3 | 4 | The Simple Router demo connects one BACnet/IP and one BACnet/IPv6 network. 5 | It also includes a BBMD so that Foreign Device Registration can be used 6 | to tunnel local command line demos to BACnet/IP and BACnet IPv6 networks. 7 | 8 | Configuration 9 | ============= 10 | 11 | It uses environment variables to configure 12 | the BACnet/IP port and BACnet/IPv6 address on Linux: 13 | 14 | export BACNET_IFACE=eth0 15 | export BACNET_BIP6_IFACE=eth0 16 | 17 | Also uses these configurations, but defaults to these values if not set: 18 | export BACNET_IP_PORT=47808 19 | export BACNET_BIP6_PORT=47808 20 | export BACNET_BIP6_BROADCAST=FF05 21 | export BACNET_IP_NET=1 22 | export BACNET_IP6_NET=2 23 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/router/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = router 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | ifeq (${BACNET_PORT},linux) 13 | #PFLAGS = 14 | # -pthread 15 | TARGET_EXT = 16 | LIBS = -lpthread -lconfig 17 | LFLAGS += $(LIBS) 18 | endif 19 | 20 | #DEFINES = $(BACNET_DEFINES) -DBACDL_MSTP -DBACDL_BIP 21 | BACNET_SOURCE_DIR = ../../src 22 | 23 | SRCS = main.c \ 24 | ${BACNET_PORT_DIR}/rs485.c \ 25 | ${BACNET_PORT_DIR}/timer.c \ 26 | ${BACNET_PORT_DIR}/bip-init.c \ 27 | ${BACNET_PORT_DIR}/dlmstp_linux.c \ 28 | ${BACNET_SOURCE_DIR}/bip.c \ 29 | ${BACNET_SOURCE_DIR}/bvlc.c \ 30 | ${BACNET_SOURCE_DIR}/fifo.c \ 31 | ${BACNET_SOURCE_DIR}/mstp.c \ 32 | ${BACNET_SOURCE_DIR}/mstptext.c \ 33 | ${BACNET_SOURCE_DIR}/debug.c \ 34 | ${BACNET_SOURCE_DIR}/indtext.c \ 35 | ${BACNET_SOURCE_DIR}/ringbuf.c \ 36 | ${BACNET_SOURCE_DIR}/crc.c \ 37 | mstpmodule.c \ 38 | ipmodule.c \ 39 | portthread.c \ 40 | msgqueue.c \ 41 | network_layer.c 42 | 43 | 44 | OBJS = ${SRCS:.c=.o} 45 | 46 | all: Makefile ${TARGET_BIN} 47 | 48 | ${TARGET_BIN}: ${OBJS} Makefile 49 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 50 | size $@ 51 | cp $@ ../../bin 52 | 53 | .c.o: 54 | ${CC} -c ${CFLAGS} $*.c -o $@ 55 | 56 | depend: 57 | rm -f .depend 58 | ${CC} -MM ${CFLAGS} *.c >> .depend 59 | 60 | clean: 61 | rm -f core ${TARGET_BIN} ${OBJS} $(TARGET).map 62 | 63 | include: .depend 64 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/router/init.cfg: -------------------------------------------------------------------------------- 1 | /* 2 | configuration file that stores values for router ports initialization 3 | 4 | Common arguments: 5 | device_type - "bip" or "mstp" (with quotes) 6 | device - Connection device, for example "eth0" or "/dev/ttyS0" 7 | network - Network number [1..65534]. Do not use network number 65535, it is broadcast number 8 | 9 | bip arguments: 10 | port - bip UDP port, default 47808 11 | 12 | mstp arguments: 13 | mac - MSTP MAC 14 | max_master - MSTP max master 15 | max_frames - 1 16 | baud - one from the list: 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 17 | parity - one from the list (with quotes): "None", "Even", "Odd" 18 | databits - one from the list: 5, 6, 7, 8 19 | stopbits - 1 or 2 20 | 21 | 22 | Example: 23 | ports = 24 | ( 25 | { 26 | device_type = "bip"; 27 | device = "eth0"; 28 | port = 47808; 29 | network = 1; 30 | }, 31 | 32 | { 33 | device_type = "mstp"; 34 | device = "/dev/ttyS0"; 35 | mac = 1; 36 | max_master = 127; 37 | max_frames = 1; 38 | baud = 38400; 39 | parity = "None"; 40 | databits = 8; 41 | stopbits = 1; 42 | network = 2; 43 | } 44 | ); 45 | */ 46 | 47 | ports = 48 | ( 49 | { 50 | device_type = "bip"; 51 | device = "eth0"; 52 | port = 47808; 53 | network = 1; 54 | }, 55 | 56 | { 57 | device_type = "mstp"; 58 | device = "/dev/ttyS0"; 59 | mac = 2; 60 | max_master = 127; 61 | max_frames = 1; 62 | baud = 38400; 63 | parity = "None"; 64 | databits = 8; 65 | stopbits = 1; 66 | network = 2; 67 | } 68 | ); 69 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/router/mstpmodule.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * @author Andriy Sukhynyuk, Vasyl Tkhir, Andriy Ivasiv 4 | * @date 2012 5 | * @brief Datalink for MS/TP module 6 | * 7 | * @section LICENSE 8 | * 9 | * Permission is hereby granted, free of charge, to any person obtaining 10 | * a copy of this software and associated documentation files (the 11 | * "Software"), to deal in the Software without restriction, including 12 | * without limitation the rights to use, copy, modify, merge, publish, 13 | * distribute, sublicense, and/or sell copies of the Software, and to 14 | * permit persons to whom the Software is furnished to do so, subject to 15 | * the following conditions: 16 | * 17 | * The above copyright notice and this permission notice shall be included 18 | * in all copies or substantial portions of the Software. 19 | * 20 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 24 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 25 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 26 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 | * 28 | */ 29 | #ifndef MSTPMODULE_H 30 | #define MSTPMODULE_H 31 | 32 | #include "portthread.h" 33 | 34 | void *dl_mstp_thread( 35 | void *pArgs); 36 | 37 | #endif /* end of MSTPMODULE_H */ 38 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/scov/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application using GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | # Executable file name 13 | TARGET = bacscov 14 | 15 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 16 | 17 | SRCS = main.c \ 18 | ../object/device-client.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 23 | 24 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 25 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 26 | size $@ 27 | cp $@ ../../bin 28 | 29 | lib: ${BACNET_LIB_TARGET} 30 | 31 | ${BACNET_LIB_TARGET}: 32 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/server/.gdbinit: -------------------------------------------------------------------------------- 1 | set print pretty on 2 | set print union on 3 | set print address on 4 | list 5 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/server/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacserv 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRC = main.c 13 | 14 | OBJECT_SRC = \ 15 | $(BACNET_OBJECT)/device.c \ 16 | $(BACNET_OBJECT)/ai.c \ 17 | $(BACNET_OBJECT)/ao.c \ 18 | $(BACNET_OBJECT)/av.c \ 19 | $(BACNET_OBJECT)/bi.c \ 20 | $(BACNET_OBJECT)/bo.c \ 21 | $(BACNET_OBJECT)/bv.c \ 22 | $(BACNET_OBJECT)/csv.c \ 23 | $(BACNET_OBJECT)/lc.c \ 24 | $(BACNET_OBJECT)/lsp.c \ 25 | $(BACNET_OBJECT)/ms-input.c \ 26 | $(BACNET_OBJECT)/mso.c \ 27 | $(BACNET_OBJECT)/msv.c \ 28 | $(BACNET_OBJECT)/osv.c \ 29 | $(BACNET_OBJECT)/piv.c \ 30 | $(BACNET_OBJECT)/nc.c \ 31 | $(BACNET_OBJECT)/trendlog.c \ 32 | $(BACNET_OBJECT)/schedule.c \ 33 | $(BACNET_OBJECT)/bacfile.c 34 | 35 | SRCS = ${SRC} ${OBJECT_SRC} 36 | 37 | OBJS = ${SRCS:.c=.o} 38 | 39 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 40 | 41 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 42 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 43 | size $@ 44 | cp $@ ../../bin 45 | 46 | lib: ${BACNET_LIB_TARGET} 47 | 48 | ${BACNET_LIB_TARGET}: 49 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 50 | 51 | .c.o: 52 | ${CC} -c ${CFLAGS} $*.c -o $@ 53 | 54 | depend: 55 | rm -f .depend 56 | ${CC} -MM ${CFLAGS} *.c >> .depend 57 | 58 | clean: 59 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 60 | 61 | include: .depend 62 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/server/PICS.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/demo/server/PICS.odt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/timesync/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacts 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/ucov/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacucov 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/uptransfer/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application using GCC compiler 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | # Executable file name 13 | TARGET = bacupt 14 | 15 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 16 | 17 | SRCS = main.c \ 18 | ../object/device-client.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 23 | 24 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 25 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 26 | size $@ 27 | cp $@ ../../bin 28 | 29 | lib: ${BACNET_LIB_TARGET} 30 | 31 | ${BACNET_LIB_TARGET}: 32 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/whohas/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacwh 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/whois/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacwi 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/whoisrouter/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | TARGET = bacwir 8 | 9 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 10 | 11 | SRCS = main.c \ 12 | ../object/device-client.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 17 | 18 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 19 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 20 | size $@ 21 | cp $@ ../../bin 22 | 23 | lib: ${BACNET_LIB_TARGET} 24 | 25 | ${BACNET_LIB_TARGET}: 26 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 27 | 28 | .c.o: 29 | ${CC} -c ${CFLAGS} $*.c -o $@ 30 | 31 | depend: 32 | rm -f .depend 33 | ${CC} -MM ${CFLAGS} *.c >> .depend 34 | 35 | clean: 36 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 37 | 38 | include: .depend 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/writefile/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacawf 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/writefile/main.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/demo/writefile/main.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/demo/writeprop/Makefile: -------------------------------------------------------------------------------- 1 | #Makefile to build BACnet Application for the Linux Port 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | 7 | # Executable file name 8 | TARGET = bacwp 9 | 10 | TARGET_BIN = ${TARGET}$(TARGET_EXT) 11 | 12 | SRCS = main.c \ 13 | ../object/device-client.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} 18 | 19 | ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} 20 | ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ 21 | size $@ 22 | cp $@ ../../bin 23 | 24 | lib: ${BACNET_LIB_TARGET} 25 | 26 | ${BACNET_LIB_TARGET}: 27 | ( cd ${BACNET_LIB_DIR} ; $(MAKE) clean ; $(MAKE) ) 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/BACnet-Protocol-Diagram.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/BACnet-Protocol-Diagram.odg -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/BACnetCollapsedArchitecture.flw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/BACnetCollapsedArchitecture.flw -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.build: -------------------------------------------------------------------------------- 1 | BACnet Stack 2 | Developer Build 3 | 4 | This BACnet Stack is designed as a library for an embedded product. 5 | However, there are a number of example applications in the demo/ directory 6 | that show how it can be used for client and server applications. 7 | 8 | The demos can be built using makefiles in the root directory, or by 9 | using individual makefiles in the demo directories. 10 | 11 | Launch the demo/server/bacserv example. Use the client demos to query 12 | the server. Note that the server should be on a different computer or 13 | virtual machine. 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.codeblocks: -------------------------------------------------------------------------------- 1 | BACnet Stack @ SourceForge.net 2 | Build using Code Blocks 3 | 4 | Q1: GNU GCC Compiler, undefined reference to closesocket 5 | 6 | A1: Under Project->Build Options->Linker settings, 7 | add "ws2_32" to Link Libraries. 8 | 9 | Q2: GNU GCC Compiler, creating a DLL 10 | 11 | A2: Under Project->Build Options->Linker settings, 12 | add "user32" to Link Libraries. 13 | 14 | Q3: GNU GCC Compiler, undefined reference to _GetAdaptersInfo 15 | 16 | A3: Under Project->Build Options->Linker settings, 17 | add "iphlpapi" to Link Libraries. 18 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.faq: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/README.faq -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.msvc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/README.msvc -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.msvs: -------------------------------------------------------------------------------- 1 | BACnet Stack - SourceForge.net 2 | Build for Visual Studio 2005 Express Edition 3 | 4 | Q1: Cannot open include file: 'winsock2.h' 5 | 6 | A1: Install the Microsoft Platform SDK: 7 | http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx 8 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.release: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/README.release -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/README.ubuntu: -------------------------------------------------------------------------------- 1 | Add the ability to compile, edit, and maintain code 2 | 3 | Here are the compilers and their documents 4 | $ sudo apt-get install build-essential subversion-tools gcc-4.2-doc glibc-doc manpages-dev 5 | $ sudo apt-get install mingw32 mingw32-binutils mingw32-runtime 6 | I need access to subversion and XSLT ChangeLog tools 7 | $ sudo apt-get install subversion-tools 8 | $ sudo apt-get install xsltproc 9 | I install a couple of editors, useful for various things. Kate is already installed. 10 | $ sudo apt-get install scite 11 | $ sudo apt-get install vim-full 12 | Useful tools for cleaning up code, converting comments and line endings, and code statistics: 13 | $ sudo apt-get install splint 14 | $ sudo apt-get install sloccount 15 | $ sudo apt-get install indent 16 | $ sudo apt-get install liwc 17 | $ sudo apt-get install tofrodos -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/RPM-Handler.flw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/RPM-Handler.flw -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/bac_stack_footer.html: -------------------------------------------------------------------------------- 1 |
2 | BACnet logo 3 | 4 | BACnet-stack API documentation
5 | Generated on $datetime for $projectname by doxygen $doxygenversion
6 | 7 | 8 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/bac_stack_header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | $title 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/htdocs/images/BACnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/htdocs/images/BACnet.png -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/output/BAC_stack.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BAC-stack 6 | 7 | 8 | 9 | 10 | 11 | <body> 12 | <a href="html/main.html">Frames are disabled. Click here to go to the main page.</a> 13 | </body> 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/doc/output/html/BACnet_sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/doc/output/html/BACnet_sm.png -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/export.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Release helper for this project 3 | 4 | SVN_PROJECT=branches/releases/bacnet-stack-0-8-0 5 | SVN_BASE_URL=http://svn.code.sf.net/p/bacnet/code/ 6 | SVN_TRUNK_NAME=${SVN_BASE_URL}${SVN_PROJECT} 7 | 8 | if [ -z "$1" ] 9 | then 10 | echo "Usage: `basename $0` export-directory" 11 | echo "Exports HEAD of ${SVN_PROJECT} in Windows CRLF format" 12 | exit 1 13 | fi 14 | 15 | echo "Getting another clean version out of subversion for Windows zip" 16 | svn export --native-eol CRLF ${SVN_TRUNK_NAME} ${1} 17 | echo "done." 18 | 19 | echo "Complete!" 20 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/fixup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem fix DOS/Unix names and Subversion EOL-Style 3 | rem unix2dos.exe from MSYS: mingw.sourceforge.net 4 | rem svn.exe from Subversion Tools 5 | call :treeProcess 6 | goto :eof 7 | 8 | :treeProcess 9 | rem fix all the specific files of this subdirectory: 10 | for %%f in (*.c) do ( 11 | unix2dos.exe "%%f" 12 | svn.exe propset svn:eol-style native "%%f" 13 | svn.exe propset svn:mime-type text/plain "%%f" 14 | ) 15 | for %%f in (*.h) do ( 16 | unix2dos.exe "%%f" 17 | svn.exe propset svn:eol-style native "%%f" 18 | svn.exe propset svn:mime-type text/plain "%%f" 19 | ) 20 | for %%f in (*.bat) do ( 21 | unix2dos.exe "%%f" 22 | svn.exe propset svn:eol-style native "%%f" 23 | svn.exe propset svn:mime-type text/plain "%%f" 24 | ) 25 | rem loop over all directories and sub directories 26 | for /D %%d in (*) do ( 27 | cd %%d 28 | call :treeProcess 29 | cd .. 30 | ) 31 | exit /b 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/include/filename.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2012 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | *********************************************************************/ 24 | #ifndef FILENAME_H 25 | #define FILENAME_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif /* __cplusplus */ 30 | 31 | char *filename_remove_path( 32 | const char *filename_in); 33 | 34 | #ifdef __cplusplus 35 | } 36 | #endif /* __cplusplus */ 37 | #endif 38 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/include/mydata.h: -------------------------------------------------------------------------------- 1 | /* Sample data structure for confirmed private transfer 2 | We have a simple data structure which can be written to 3 | and read from by sending a confirmed private transfer 4 | request with the appropriate parameters. 5 | */ 6 | 7 | #define MY_MAX_STR 32 8 | #define MY_MAX_BLOCK 8 9 | 10 | #define MY_SVC_READ 0 11 | #define MY_SVC_WRITE 1 12 | 13 | #define MY_ERR_OK 0 14 | #define MY_ERR_BAD_INDEX 1 15 | 16 | typedef struct MyData { 17 | uint8_t cMyByte1; 18 | uint8_t cMyByte2; 19 | float fMyReal; 20 | int8_t sMyString[MY_MAX_STR + 1]; /* A little extra for the nul */ 21 | } DATABLOCK; 22 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/include/txbuf.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2005 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | * 24 | *********************************************************************/ 25 | #ifndef TXBUF_H 26 | #define TXBUF_H 27 | 28 | #include 29 | #include 30 | #include "config.h" 31 | #include "datalink.h" 32 | 33 | extern uint8_t Handler_Transmit_Buffer[MAX_PDU]; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/include/vmac.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file 3 | * @author Steve Karg 4 | * @date 2016 5 | */ 6 | #ifndef VMAC_H 7 | #define VMAC_H 8 | 9 | #include 10 | #include 11 | 12 | /* define the max MAC as big as IPv6 + port number */ 13 | #define VMAC_MAC_MAX 18 14 | /** 15 | * VMAC data structure 16 | * 17 | * @{ 18 | */ 19 | struct vmac_data { 20 | uint8_t mac[18]; 21 | uint8_t mac_len; 22 | }; 23 | /** @} */ 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif /* __cplusplus */ 28 | 29 | unsigned int VMAC_Count(void); 30 | struct vmac_data *VMAC_Find_By_Key(uint32_t device_id); 31 | bool VMAC_Find_By_Data(struct vmac_data *vmac, uint32_t *device_id); 32 | bool VMAC_Add(uint32_t device_id, struct vmac_data *pVMAC); 33 | bool VMAC_Delete(uint32_t device_id); 34 | bool VMAC_Different( 35 | struct vmac_data *vmac1, 36 | struct vmac_data *vmac2); 37 | bool VMAC_Match( 38 | struct vmac_data *vmac1, 39 | struct vmac_data *vmac2); 40 | void VMAC_Cleanup(void); 41 | void VMAC_Init(void); 42 | 43 | #ifdef TEST 44 | #include "ctest.h" 45 | void testVMAC( 46 | Test * pTest); 47 | #endif 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif /* __cplusplus */ 52 | #endif 53 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/indent.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # indent uses a local indent.pro file if it exists 3 | # File must be in consistent unix format before indenting 4 | 5 | #DOS2UNIX=/usr/bin/dos2unix 6 | DOS2UNIX=/usr/bin/fromdos 7 | INDENT=/usr/bin/indent 8 | REMOVE=/bin/rm 9 | 10 | # exit silently if utility is not installed 11 | [ -x ${INDENT} ] || exit 0 12 | [ -x ${DOS2UNIX} ] || exit 0 13 | 14 | INDENTRC=".indent.pro" 15 | if [ ! -e ${INDENTRC} ] 16 | then 17 | echo No ${INDENTRC} file found. Creating ${INDENTRC} file. 18 | echo "-kr -nut -nlp -ip4 -cli4 -bfda -nbc -nbbo -c0 -cd0 -cp0 -di0 -l79 -nhnl" > ${INDENTRC} 19 | fi 20 | 21 | directory=${1-`pwd`} 22 | for filename in $( find $directory -name '*.c' ) 23 | do 24 | echo Fixing DOS/Unix $filename 25 | ${DOS2UNIX} $filename 26 | echo Indenting $filename 27 | ${INDENT} $filename 28 | done 29 | 30 | for filename in $( find $directory -name '*.h' ) 31 | do 32 | echo Fixing DOS/Unix $filename 33 | ${DOS2UNIX} $filename 34 | echo Indenting $filename 35 | ${INDENT} $filename 36 | done 37 | 38 | for filename in $( find $directory -name '*~' ) 39 | do 40 | echo Removing backup $filename 41 | ${REMOVE} $filename 42 | done 43 | 44 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/lib/main.cpp: -------------------------------------------------------------------------------- 1 | #include "main.h" 2 | 3 | /** @file lib/main.cpp Provides DLLMain for Win32 build of library. */ 4 | 5 | // a sample exported function 6 | void SomeFunction(const LPCSTR sometext) 7 | { 8 | MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION); 9 | } 10 | 11 | BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 12 | { 13 | switch (fdwReason) 14 | { 15 | case DLL_PROCESS_ATTACH: 16 | // attach to process 17 | // return FALSE to fail DLL load 18 | break; 19 | 20 | case DLL_PROCESS_DETACH: 21 | // detach from process 22 | break; 23 | 24 | case DLL_THREAD_ATTACH: 25 | // attach to thread 26 | break; 27 | 28 | case DLL_THREAD_DETACH: 29 | // detach from thread 30 | break; 31 | } 32 | return TRUE; // succesful 33 | } 34 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/lib/main.h: -------------------------------------------------------------------------------- 1 | #ifndef __MAIN_H__ 2 | #define __MAIN_H__ 3 | 4 | #include 5 | 6 | /* To use this exported function of dll, include this header 7 | * in your project. 8 | */ 9 | 10 | #ifdef BUILD_DLL 11 | #define DLL_EXPORT __declspec(dllexport) 12 | #else 13 | #define DLL_EXPORT __declspec(dllimport) 14 | #endif 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif /* __cplusplus */ 19 | 20 | void DLL_EXPORT SomeFunction( 21 | const LPCSTR sometext); 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif /* __cplusplus */ 26 | #endif 27 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/arm7/_stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | 3 | #ifndef STDINT_H 4 | #define STDINT_H 5 | 6 | #include 7 | 8 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 9 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 10 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 11 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 12 | /*typedef unsigned short long uint24_t; // 3 bytes 0 to 16777215 */ 13 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 14 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 15 | /* typedef signed long long int64_t; */ 16 | /* typedef unsigned long long uint64_t; */ 17 | 18 | #endif /* STDINT_H */ 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/arm7/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | 8 | /*typedef int _Bool; */ 9 | #ifndef bool 10 | #define bool _Bool 11 | #endif 12 | #ifndef true 13 | #define true 1 14 | #endif 15 | #ifndef false 16 | #define false 0 17 | #endif 18 | #define __bool_true_false_are_defined 1 19 | #endif 20 | 21 | #ifndef FALSE 22 | #define FALSE 0 23 | #endif 24 | 25 | #ifndef TRUE 26 | #define TRUE 1 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/at91sam7s/.gdbinit: -------------------------------------------------------------------------------- 1 | # gdb setup for J-Link - start JLinkGDBServer first 2 | target remote localhost:2331 3 | monitor reset 4 | monitor speed 5 5 | monitor speed auto 6 | monitor long 0xffffff60 0x00320100 7 | monitor long 0xfffffd44 0xa0008000 8 | monitor long 0xfffffc20 0xa0000601 9 | monitor sleep 100 10 | monitor long 0xfffffc2c 0x00480a0e 11 | monitor sleep 200 12 | monitor long 0xfffffc30 0x7 13 | monitor sleep 100 14 | monitor long 0xfffffd08 0xa5000401 15 | monitor sleep 100 16 | 17 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/at91sam7s/bacnet.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\bacnet.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/at91sam7s/blinker.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | blinker.c 3 | 4 | Endless loop blinks a code for crash analysis 5 | 6 | Inputs: Code - blink code to display 7 | 1 = undefined instruction (one blinks ........ long pause) 8 | 2 = prefetch abort (two blinks ........ long pause) 9 | 3 = data abort (three blinks ...... long pause) 10 | 11 | Author: James P Lynch May 12, 2007 12 | *****************************************************************************/ 13 | #include "board.h" 14 | 15 | /* global variables */ 16 | unsigned long blinkcount; 17 | 18 | void blinker( 19 | unsigned char code) 20 | { 21 | 22 | volatile AT91PS_PIO pPIO = AT91C_BASE_PIOA; /* pointer to PIO register structure */ 23 | volatile unsigned int j, k; /* loop counters */ 24 | 25 | /* endless loop */ 26 | while (1) { 27 | /* count out the proper number of blinks */ 28 | for (j = code; j != 0; j--) { 29 | /* turn LED1 (DS1) on */ 30 | pPIO->PIO_CODR = LED1; 31 | /* wait 250 msec */ 32 | for (k = 600000; k != 0; k--); 33 | /* turn LED1 (DS1) off */ 34 | pPIO->PIO_SODR = LED1; 35 | /* wait 250 msec */ 36 | for (k = 600000; k != 0; k--); 37 | } 38 | /* wait 2 seconds */ 39 | for (k = 5000000; (code != 0) && (k != 0); k--); 40 | blinkcount++; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/at91sam7s/readme.txt: -------------------------------------------------------------------------------- 1 | This port was done with a AT91SAM7S-EK which contained a 2 | AT91SAM7S64 processor. The compiler was the GNU ARM compiler 3 | and tools from Yagarto project. 4 | 5 | The hardware was modified by severing the I-PA5 (RXD0), 6 | I-PA6 (TXD0), I-PA7 (RTS0) pads and rerouting those 7 | signals to a DS75176 RS-485 transceiver. 8 | PIN SIGNAL AT91SAM7S 9 | --- ------ --------- 10 | 1 RO RXD0 11 | 2 /RE RTS 12 | 3 DE RTS 13 | 4 DI TXD0 14 | 5 GND GND 15 | 6 DO n/c 16 | 7 DO n/c 17 | 8 +5V From EXT_VCC via 5V Regulator 18 | 19 | The makefile allows you to build just the dlmstp or a simple 20 | server, both for programming into the flash memory of the processor. 21 | The dlmstp is the datalink layer for MS/TP over RS-485. 22 | 23 | I used the makefile from the command line on Windows, and 24 | then used the SAM-BA to send the resulting .bin file to the 25 | board using a J-Link. To debug the code from flash, run the 26 | J-Link GDB Server and then: 27 | > arm-elf-gdb bacnet.elf 28 | 29 | I got the crt.s, at91sam7s256.ld, blinker.c, init.c, isr.c, and 30 | timer.c from James P Lynch. I created the rs485.c based on the 31 | initialization sequence from serial.c by Keil Electronik. I 32 | got the at91sam7s256.h file from Atmel via the Keil website. 33 | I started with the makefile from James P Lynch, but it didn't work 34 | for me. I then used some ideas from FreeRTOS makefile, and 35 | created my own makefile from scratch. 36 | 37 | Hopefully you find it useful! 38 | 39 | Steve Karg 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/.splintrc: -------------------------------------------------------------------------------- 1 | -sysdirs C:\WinAVR~1\avr\include;C:\WinAVR~1\lib\gcc\avr\4.2.2\include;C:\WinAVR~1\avr\include\avr;C:\WinAVR~1\avr\include\compat;C:\WinAVR~1\avr\include\util 2 | -IC:\WinAVR~1\avr\include 3 | -IC:\WinAVR~1\avr\include\avr 4 | -IC:\WinAVR~1\avr\include\compat 5 | -IC:\WinAVR~1\avr\include\util 6 | -IC:\WinAVR~1\lib\gcc\avr\4.2.2\include 7 | -I../../include 8 | -I. 9 | -castfcnptr 10 | -fullinitblock 11 | -weak 12 | -D__AVR_ATmega168__ 13 | -D__GNUC__ 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/PICS.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/atmega168/PICS.odt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/avr035.h: -------------------------------------------------------------------------------- 1 | #ifndef AVR035_H 2 | #define AVR035_H 3 | 4 | /* from AVR035: Efficient C Coding for AVR */ 5 | 6 | /* a=register, b=bit number to act upon */ 7 | #define BIT_SET(a,b) ((a) |= (1<<(b))) 8 | #define BIT_CLEAR(a,b) ((a) &= ~(1<<(b))) 9 | #define BIT_FLIP(a,b) ((a) ^= (1<<(b))) 10 | #define BIT_CHECK(a,b) ((a) & (1<<(b))) 11 | 12 | /* x=target variable, y=mask */ 13 | #define BITMASK_SET(x,y) ((x) |= (y)) 14 | #define BITMASK_CLEAR(x,y) ((x) &= (~(y))) 15 | #define BITMASK_FLIP(x,y) ((x) ^= (y)) 16 | #define BITMASK_CHECK(x,y) ((x) & (y)) 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/bacnet.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\bacnet.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/hardware.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/atmega168/hardware.ods -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/atmega168/readme.txt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | /* typedef char _Bool; */ 8 | #ifndef bool 9 | #define bool _Bool 10 | #endif 11 | #ifndef true 12 | #define true 1 13 | #endif 14 | #ifndef false 15 | #define false 0 16 | #endif 17 | #define __bool_true_false_are_defined 1 18 | #endif 19 | 20 | #ifndef FALSE 21 | #define FALSE 0 22 | #endif 23 | 24 | #ifndef TRUE 25 | #define TRUE 1 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega168/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | 3 | #ifndef STDINT_H 4 | #define STDINT_H 1 5 | 6 | #include 7 | 8 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 9 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 10 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 11 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 12 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 13 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 14 | 15 | #endif /* STDINT_H */ 16 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega8/avr035.h: -------------------------------------------------------------------------------- 1 | #ifndef AVR035_H 2 | #define AVR035_H 3 | 4 | /* from AVR035: Efficient C Coding for AVR */ 5 | 6 | /* a=register, b=bit number to act upon */ 7 | #define BIT_SET(a,b) ((a) |= (1<<(b))) 8 | #define BIT_CLEAR(a,b) ((a) &= ~(1<<(b))) 9 | #define BIT_FLIP(a,b) ((a) ^= (1<<(b))) 10 | #define BIT_CHECK(a,b) ((a) & (1<<(b))) 11 | 12 | /* x=target variable, y=mask */ 13 | #define BITMASK_SET(x,y) ((x) |= (y)) 14 | #define BITMASK_CLEAR(x,y) ((x) &= (~(y))) 15 | #define BITMASK_FLIP(x,y) ((x) ^= (y)) 16 | #define BITMASK_CHECK(x,y) ((x) & (y)) 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega8/bacnet.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\bacnet.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega8/hardware.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/atmega8/hardware.ods -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega8/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | /* typedef char _Bool; */ 8 | #ifndef bool 9 | #define bool _Bool 10 | #endif 11 | #ifndef true 12 | #define true 1 13 | #endif 14 | #ifndef false 15 | #define false 0 16 | #endif 17 | #define __bool_true_false_are_defined 1 18 | #endif 19 | 20 | #ifndef FALSE 21 | #define FALSE 0 22 | #endif 23 | 24 | #ifndef TRUE 25 | #define TRUE 1 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/atmega8/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | 3 | #ifndef STDINT_H 4 | #define STDINT_H 1 5 | 6 | #include 7 | 8 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 9 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 10 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 11 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 12 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 13 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 14 | 15 | #endif /* STDINT_H */ 16 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/PICS.odt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/PICS.odt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/avrosp/CommChannel.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : CommChannel.cpp 6 | * Compiler : Dev-C++ 4.9.8.0 - http://bloodshed.net/dev/ 7 | * Revision : $Revision: 1163 $ 8 | * Date : $Date: 2006-08-02 15:38:16 +0200 (on, 02 aug 2006) $ 9 | * Updated by : $Author: ohlia $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : Win32 14 | * 15 | * AppNote : AVR911 - AVR Open-source Programmer 16 | * 17 | * Description : An abstract class for general byte-by-byte communication. 18 | * Serialport, USB, TCP/IP or similar implementations can be derived 19 | * from this class to create a technology-independent 20 | * communication interface. 21 | * 22 | * This abstract class does not provide any constructor as it is 23 | * too specific for this generalized class. Derived classes should 24 | * implement their own constructors for specific communication devices. 25 | * 26 | * 27 | ****************************************************************************/ 28 | #include "CommChannel.hpp" 29 | 30 | 31 | /* Destructor */ 32 | CommChannel::~CommChannel() 33 | { 34 | /* no code here */ 35 | } 36 | 37 | /* end of file */ 38 | 39 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/avrosp/ErrorMsg.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : ErrorMsg.cpp 6 | * Compiler : Dev-C++ 4.9.8.0 - http://bloodshed.net/dev/ 7 | * Revision : $Revision: 1163 $ 8 | * Date : $Date: 2006-08-02 15:38:16 +0200 (on, 02 aug 2006) $ 9 | * Updated by : $Author: ohlia $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : Win32 14 | * 15 | * AppNote : AVR911 - AVR Open-source Programmer 16 | * 17 | * Description : A class providing a container for general error messages. This 18 | * class can be thrown as an exception. 19 | * 20 | * 21 | ****************************************************************************/ 22 | #include "ErrorMsg.hpp" 23 | 24 | 25 | ErrorMsg::ErrorMsg( const string & _message ) : 26 | message( _message ) 27 | { 28 | // No code here. 29 | } 30 | 31 | 32 | /* Destructor */ 33 | ErrorMsg::~ErrorMsg() 34 | { 35 | // No code here. 36 | } 37 | 38 | 39 | /* Get message */ 40 | const string & ErrorMsg::What() 41 | { 42 | return message; 43 | } 44 | 45 | /* end of file */ 46 | 47 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/avrosp/ErrorMsg.hpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : ErrorMsg.hpp 6 | * Compiler : Dev-C++ 4.9.8.0 - http://bloodshed.net/dev/ 7 | * Revision : $Revision: 1163 $ 8 | * Date : $Date: 2006-08-02 15:38:16 +0200 (on, 02 aug 2006) $ 9 | * Updated by : $Author: ohlia $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : Win32 14 | * 15 | * AppNote : AVR911 - AVR Open-source Programmer 16 | * 17 | * Description : A class providing a container for general error messages. This 18 | * class can be thrown as an exception. 19 | * 20 | * 21 | ****************************************************************************/ 22 | #ifndef ERRORMSG_HPP 23 | #define ERRORMSG_HPP 24 | 25 | using namespace std; 26 | 27 | #include 28 | #include 29 | #include 30 | 31 | 32 | class ErrorMsg 33 | { 34 | protected: 35 | string message; // Contains the error message. 36 | 37 | public: 38 | // Constructors taking the string as parameter. 39 | ErrorMsg( const string & _message ); 40 | 41 | // Destructor 42 | ~ErrorMsg(); 43 | 44 | // Function returning the error msg. 45 | virtual const string & What(); 46 | }; 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/avrosp/main.cpp: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : main.cpp 6 | * Compiler : Dev-C++ 4.9.8.0 - http://bloodshed.net/dev/ 7 | * Revision : $Revision: 1163 $ 8 | * Date : $Date: 2006-08-02 15:38:16 +0200 (on, 02 aug 2006) $ 9 | * Updated by : $Author: ohlia $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : Win32 14 | * 15 | * AppNote : AVR911 - AVR Open-source Programmer 16 | * 17 | * Description : AVROSP main entry function. 18 | * 19 | * 20 | ****************************************************************************/ 21 | #include "JobInfo.hpp" 22 | #include 23 | #include 24 | 25 | using namespace std; 26 | 27 | 28 | int main(int argc, char *argv[]) 29 | { 30 | JobInfo j; 31 | 32 | try 33 | { 34 | j.parseCommandline( argc, argv ); 35 | j.doJob(); 36 | } 37 | catch( ErrorMsg * e ) 38 | { 39 | cout << endl << "An error occurred:" << endl; 40 | cout << " [" << e->What() << "]" << endl; 41 | 42 | delete e; 43 | } 44 | 45 | return 0; 46 | } 47 | 48 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/avrosp/readme.txt: -------------------------------------------------------------------------------- 1 | Made with the free Dev-C++ IDE 2 | 3 | http://bloodshed.net/dev/ 4 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bacnet.atsln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Atmel Studio Solution File, Format Version 11.00 4 | Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "BACnet Development Kit", "bacnet.cproj", "{1CEFD571-4B50-48FD-B75E-0E968EBBD698}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|AVR = Debug|AVR 9 | Release|AVR = Release|AVR 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {1CEFD571-4B50-48FD-B75E-0E968EBBD698}.Debug|AVR.ActiveCfg = Debug|AVR 13 | {1CEFD571-4B50-48FD-B75E-0E968EBBD698}.Debug|AVR.Build.0 = Debug|AVR 14 | {1CEFD571-4B50-48FD-B75E-0E968EBBD698}.Release|AVR.ActiveCfg = Release|AVR 15 | {1CEFD571-4B50-48FD-B75E-0E968EBBD698}.Release|AVR.Build.0 = Release|AVR 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bacnet.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\bacnet.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bootloader/defines.h: -------------------------------------------------------------------------------- 1 | /* definitions generated by preprocessor, copy into defines.h */ 2 | #ifndef PPINC 3 | #define _ATMEGA644P /* device select: _ATMEGAxxxx */ 4 | #define _B2048 /* boot size select: _Bxxxx (words), powers of two only */ 5 | #ifdef __ICCAVR__ 6 | #include "iom644.h" 7 | #endif 8 | #if __GNUC__ 9 | #include 10 | 11 | #if (__GNUC__ <= 4) && (__GNUC_MINOR__ < 3) 12 | 13 | #if !defined(EEWE) && defined(EEPE) 14 | #define EEWE EEPE 15 | #endif 16 | 17 | #if !defined(EEMWE) && defined(EEMPE) 18 | #define EEMWE EEMPE 19 | #endif 20 | 21 | #endif 22 | #endif 23 | 24 | /* define pin for enter-self-prog-mode */ 25 | #define PROGPORT PORTB 26 | #define PROGPIN PINB 27 | #define PROG_NO PB0 28 | 29 | /* baud rate register value calculation */ 30 | #define CPU_FREQ 18430000 31 | #define BAUD_RATE 115200 32 | #define BRREG_VALUE 9 33 | 34 | /* definitions for UART control */ 35 | #define BAUD_RATE_LOW_REG UBRR1 36 | #define UART_CONTROL_REG UCSR1B 37 | #define ENABLE_TRANSMITTER_BIT TXEN1 38 | #define ENABLE_RECEIVER_BIT RXEN1 39 | #define UART_STATUS_REG UCSR1A 40 | #define TRANSMIT_COMPLETE_BIT TXC1 41 | #define RECEIVE_COMPLETE_BIT RXC1 42 | #define UART_DATA_REG UDR1 43 | 44 | /* definitions for SPM control */ 45 | #define SPMCR_REG SPMCSR 46 | #define PAGESIZE 256 47 | #define APP_END 61440 48 | /*#define LARGE_MEMORY */ 49 | 50 | /* definitions for device recognition */ 51 | #define PARTCODE 0 52 | #define SIGNATURE_BYTE_1 0x1E 53 | #define SIGNATURE_BYTE_2 0x96 54 | #define SIGNATURE_BYTE_3 0x0A 55 | 56 | /* indicate that preprocessor result is included */ 57 | #define PPINC 58 | #endif 59 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bootloader/preprocessor.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bootloader/preprocessor.xls -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bootloader/serial.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : serial.c 6 | * Compiler : IAR C 3.10C Kickstart, AVR-GCC/avr-libc(>= 1.2.5) 7 | * Revision : $Revision: 1.7 $ 8 | * Date : $Date: Tuesday, June 07, 200 $ 9 | * Updated by : $Author: raapeland $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : All AVRs with bootloader support 14 | * 15 | * AppNote : AVR109 - Self-programming 16 | * 17 | * Description : UART communication routines 18 | ****************************************************************************/ 19 | #include "defines.h" 20 | 21 | 22 | void initbootuart( 23 | void) 24 | { 25 | BAUD_RATE_LOW_REG = BRREG_VALUE; 26 | UART_CONTROL_REG = (1 << ENABLE_RECEIVER_BIT) | (1 << ENABLE_TRANSMITTER_BIT); /* enable receive and transmit */ 27 | } 28 | 29 | 30 | void sendchar( 31 | unsigned char c) 32 | { 33 | UART_DATA_REG = c; /* prepare transmission */ 34 | while (!(UART_STATUS_REG & (1 << TRANSMIT_COMPLETE_BIT))); /* wait until byte sendt */ 35 | UART_STATUS_REG |= (1 << TRANSMIT_COMPLETE_BIT); /* delete TXCflag */ 36 | } 37 | 38 | 39 | unsigned char recchar( 40 | void) 41 | { 42 | while (!(UART_STATUS_REG & (1 << RECEIVE_COMPLETE_BIT))); /* wait for data */ 43 | return UART_DATA_REG; 44 | } 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/bootloader/serial.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Atmel Corporation 4 | * 5 | * File : serial.h 6 | * Compiler : IAR C 3.10C Kickstart, AVR-GCC/avr-libc(>= 1.2.5) 7 | * Revision : $Revision: 1.7 $ 8 | * Date : $Date: Tuesday, June 07, 200 $ 9 | * Updated by : $Author: raapeland $ 10 | * 11 | * Support mail : avr@atmel.com 12 | * 13 | * Target platform : All AVRs with bootloader support 14 | * 15 | * AppNote : AVR109 - Self-programming 16 | * 17 | * Description : Header file for serial.c 18 | ****************************************************************************/ 19 | 20 | void initbootuart( 21 | void); 22 | void sendchar( 23 | unsigned char); 24 | unsigned char recchar( 25 | void); 26 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/crossworks/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | typedef char _Bool; 8 | #ifndef bool 9 | #define bool _Bool 10 | #endif 11 | #ifndef true 12 | #define true 1 13 | #endif 14 | #ifndef false 15 | #define false 0 16 | #endif 17 | #define __bool_true_false_are_defined 1 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/hardware.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/hardware.ods -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/init.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2009 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | *********************************************************************/ 24 | #ifndef INIT_H 25 | #define INIT_H 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif /* __cplusplus */ 32 | 33 | void init( 34 | void); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif /* __cplusplus */ 39 | #endif 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bdk-atxx4-mstp/test.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2010 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | *********************************************************************/ 24 | #ifndef TEST_H 25 | #define TEST_H 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif /* __cplusplus */ 32 | 33 | void test_init( 34 | void); 35 | void test_task( 36 | void); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif /* __cplusplus */ 41 | #endif 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bsd/readme.txt: -------------------------------------------------------------------------------- 1 | This is a port to MAC OS X for testing. 2 | The unit tests can be run via the test.sh script. 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/bsd/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | 8 | /*typedef int _Bool; */ 9 | #ifndef bool 10 | #define bool _Bool 11 | #endif 12 | #ifndef true 13 | #define true 1 14 | #endif 15 | #ifndef false 16 | #define false 0 17 | #endif 18 | #define __bool_true_false_are_defined 1 19 | #endif 20 | 21 | #ifndef FALSE 22 | #define FALSE 0 23 | #endif 24 | 25 | #ifndef TRUE 26 | #define TRUE 1 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/bacnet.prj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/dos/bacnet.prj -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/mk_fp.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** MK_FP.H 3 | ** 4 | ** Standard header file making sure this pesky Intel macro is defined! 5 | */ 6 | 7 | #ifndef MK_FP__H 8 | #define MK_FP__H 9 | 10 | #include "extkword.h" 11 | 12 | #if defined(__WATCOMC__) 13 | #include 14 | #elif !defined(__PACIFIC__) 15 | #include 16 | #endif 17 | 18 | #if !defined(MK_FP) 19 | #define MK_FP(seg,off) \ 20 | ((void FAR *)(((unsigned long)(seg) << 16)|(unsigned)(off))) 21 | #endif 22 | 23 | #endif /* MK_FP__H */ 24 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/queue.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------+ 3 | | Thunderbird Software | 4 | +----------------------------------------------------+ 5 | | Filespec : QUEUE.H | 6 | | Date : August 30, 1994 | 7 | | Time : 5:40 PM | 8 | | Revision : 0.0 | 9 | +----------------------------------------------------+ 10 | | Programmer: Scott Andrews | 11 | | Address : 5358 Summit RD SW | 12 | | City/State: Pataskala, Ohio | 13 | | Zip : 43062 | 14 | +----------------------------------------------------+ 15 | | Released to the Public Domain | 16 | +----------------------------------------------------+ 17 | */ 18 | 19 | #ifndef QUEUE__H 20 | #define QUEUE__H 21 | 22 | /* Needed by Serial.C */ 23 | 24 | typedef struct { 25 | int size; 26 | int head; 27 | int tail; 28 | int avail; 29 | char *buffer; 30 | } QUEUE; 31 | 32 | #define queue_empty(queue) (queue)->head == (queue)->tail 33 | #define queue_avail(queue) (queue)->avail 34 | 35 | QUEUE *alloc_queue( 36 | int size); 37 | int en_queue( 38 | QUEUE * queue_ptr, 39 | char data); 40 | int de_queue( 41 | QUEUE * queue_ptr); 42 | 43 | /* End of Queue.H */ 44 | 45 | #endif /* QUEUE__H */ 46 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/readme.txt: -------------------------------------------------------------------------------- 1 | This is a port to DOS using the BACnet MS/TP datalink layer. 2 | It utilizes some serial routines from snippets.org. 3 | It was tested and compiled with Turbo C++ 1.01 which is 4 | freely available from http://dn.codegear.com/article/21751 5 | It was targeting the TS-3100 from Technologic Systems. 6 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDBOOL_H 2 | #define _STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ 6 | #if !defined(__cplusplus) 7 | 8 | #if !defined(__GNUC__) 9 | /* _Bool builtin type is included in GCC */ 10 | typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; 11 | #endif 12 | 13 | #define bool _Bool 14 | #define true 1 15 | #define false 0 16 | #define __bool_true_false_are_defined 1 17 | 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | /* for the x86 processor and Borland Compiler */ 3 | 4 | #ifndef _STDINT_H 5 | #define _STDINT_H 6 | 7 | #include 8 | 9 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 10 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 11 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 12 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 13 | /*typedef unsigned short long uint24_t; // 3 bytes 0 to 16777215 */ 14 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 15 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 16 | /* typedef signed long long int64_t; */ 17 | /* typedef unsigned long long uint64_t; */ 18 | 19 | #define INT8_MIN (-128) 20 | #define INT16_MIN (-32768) 21 | #define INT32_MIN (-2147483647 - 1) 22 | 23 | #define INT8_MAX 127 24 | #define INT16_MAX 32767 25 | #define INT32_MAX 2147483647 26 | 27 | #define UINT8_MAX 0xff /* 255U */ 28 | #define UINT16_MAX 0xffff /* 65535U */ 29 | #define UINT32_MAX 0xffffffff /* 4294967295U */ 30 | 31 | #endif /* STDINT_H */ 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/dos/timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/dos/timer.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/linux/dlmstp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | BASEDIR = . 4 | # -g for debugging with gdb 5 | DEFINES = -DBIG_ENDIAN=0 -DBACDL_MSTP=1 -DTEST_DLMSTP 6 | INCLUDES = -I. -I../../ 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = rs485.c \ 10 | dlmstp.c \ 11 | ../../mstp.c \ 12 | ../../crc.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | TARGET = dlmstp 17 | 18 | all: ${TARGET} 19 | 20 | ${TARGET}: ${OBJS} 21 | ${CC} -pthread -o $@ ${OBJS} 22 | 23 | .c.o: 24 | ${CC} -c ${CFLAGS} $*.c -o $@ 25 | 26 | depend: 27 | rm -f .depend 28 | ${CC} -MM ${CFLAGS} *.c >> .depend 29 | 30 | clean: 31 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 32 | 33 | include: .depend 34 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/linux/readme.txt: -------------------------------------------------------------------------------- 1 | This is a port to Linux for testing. 2 | The unit tests can be run via the test.sh script. -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/linux/rs485.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | BASEDIR = . 4 | # -g for debugging with gdb 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST_RS485 -DBACDL_TEST 6 | INCLUDES = -I. -I../../ 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = rs485.c 10 | 11 | OBJS = ${SRCS:.c=.o} 12 | 13 | TARGET = rs485 14 | 15 | all: ${TARGET} 16 | 17 | ${TARGET}: ${OBJS} 18 | ${CC} -o $@ ${OBJS} 19 | 20 | .c.o: 21 | ${CC} -c ${CFLAGS} $*.c -o $@ 22 | 23 | depend: 24 | rm -f .depend 25 | ${CC} -MM ${CFLAGS} *.c >> .depend 26 | 27 | clean: 28 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 29 | 30 | include: .depend 31 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/linux/rx_fsm.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRCDIR = ../../src 4 | INCDIR = ../../include 5 | # -g for debugging with gdb 6 | DEFINES = -DBIG_ENDIAN=0 -DBACDL_MSTP=1 7 | INCLUDES = -I. -I$(INCDIR) 8 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 9 | 10 | SRCS = rs485.c \ 11 | rx_fsm.c \ 12 | $(SRCDIR)/mstp.c \ 13 | $(SRCDIR)/mstptext.c \ 14 | $(SRCDIR)/indtext.c \ 15 | $(SRCDIR)/crc.c 16 | 17 | OBJS = ${SRCS:.c=.o} 18 | 19 | TARGET = rx_fsm 20 | 21 | all: ${TARGET} 22 | 23 | ${TARGET}: ${OBJS} 24 | ${CC} -pthread -o $@ ${OBJS} 25 | 26 | .c.o: 27 | ${CC} -c ${CFLAGS} $*.c -o $@ 28 | 29 | depend: 30 | rm -f .depend 31 | ${CC} -MM ${CFLAGS} *.c >> .depend 32 | 33 | clean: 34 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 35 | 36 | include: .depend 37 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.X/nbproject/Makefile-genesis.properties: -------------------------------------------------------------------------------- 1 | # 2 | #Thu May 26 09:52:44 CDT 2016 3 | default.com-microchip-mplab-nbide-toolchainC18-C18LanguageToolchain.md5=21ae92f54c0f89bc027339aedc19b7f9 4 | default.languagetoolchain.dir=C\:\\Program Files (x86)\\Microchip\\mplabc18\\v3.40\\bin 5 | com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=ef199adcc8f049579a105cca20571dcb 6 | default.languagetoolchain.version=3.40 7 | host.platform=windows 8 | conf.ids=default 9 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.X/nbproject/Makefile-variables.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Generated - do not edit! 3 | # 4 | # NOCDDL 5 | # 6 | CND_BASEDIR=`pwd` 7 | # default configuration 8 | CND_ARTIFACT_DIR_default=dist/default/production 9 | CND_ARTIFACT_NAME_default=BACnet-Server.X.production.hex 10 | CND_ARTIFACT_PATH_default=dist/default/production/BACnet-Server.X.production.hex 11 | CND_PACKAGE_DIR_default=${CND_DISTDIR}/default/package 12 | CND_PACKAGE_NAME_default=bacnet-server.x.tar 13 | CND_PACKAGE_PATH_default=${CND_DISTDIR}/default/package/bacnet-server.x.tar 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.X/nbproject/project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.X/nbproject/project.properties -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | BACnet-Server 7 | e54ca906-513b-4f74-a23b-6b0204c4509a 8 | 0 9 | c 10 | 11 | h 12 | ISO-8859-1 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.mcw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/pic18f6720/BACnet-Server.mcw -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/hardware.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/pic18f6720/hardware.h -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/readme.txt: -------------------------------------------------------------------------------- 1 | BACnet Stack - SourceForge.net 2 | Build for MPLAB IDE 3 | 4 | These are some settings that are important when building 5 | the BACnet Stack using MPLAB IDE and MCC18 Compiler, 6 | 7 | 1. Add the files to the project that you need: 8 | abort.c, apdu.c, bacapp.c, bacdcode.c, bacerror.c, 9 | bacstr.c, crc.c, datetime.c, dcc.c, iam.c, 10 | npdu.c, rd.c, reject.c, rp.c, whois.c, wp.c 11 | 12 | From ports/picxx: isr.c, main.c, rs485.c, mstp.c, dlmstp.c 13 | 14 | From demo/object/: device.c or dev_tiny.c 15 | objects as needed: ai.c, ao.c, etc. 16 | 17 | From demo/handler/: txbuf.c, h_dcc.c, h_rd.c, h_rp.c or h_rp_tiny.c 18 | Additional handlers as needed: h_wp.c 19 | 20 | 2. Project->Options->Project 21 | 22 | General Tab: Include Path: 23 | C:\code\bacnet-stack\;C:\code\bacnet-stack\demo\handler\;C:\code\bacnet-stack\demo\object\;C:\code\bacnet-stack\ports\pic18f6720\ 24 | 25 | MPLAB C18 Tab: Memory Model: 26 | Code: Large Code Model 27 | Data: Large Data Model 28 | Stack: Multi-bank Model 29 | 30 | MPLAB C18 Tab: General: Macro Definitions: 31 | PRINT_ENABLED=0 32 | BACDL_MSTP=1 33 | TSM_ENABLED=0 34 | BIG_ENDIAN=0 35 | 36 | 3. The linker script must reserve some extra stack space. 37 | 38 | //DATABANK NAME=gpr12 START=0xC00 END=0xCFF 39 | //DATABANK NAME=gpr13 START=0xD00 END=0xDFF 40 | DATABANK NAME=stackreg START=0xC00 END=0xDFF PROTECTED 41 | 42 | //STACK SIZE=0x100 RAM=gpr13 43 | STACK SIZE=0x200 RAM=stackreg 44 | 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | typedef char _Bool; 8 | #ifndef bool 9 | #define bool _Bool 10 | #endif 11 | #ifndef true 12 | #define true 1 13 | #endif 14 | #ifndef false 15 | #define false 0 16 | #endif 17 | #define __bool_true_false_are_defined 1 18 | #endif 19 | 20 | #ifndef FALSE 21 | #define FALSE 0 22 | #endif 23 | 24 | #ifndef TRUE 25 | #define TRUE 1 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/pic18f6720/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | 3 | #ifndef STDINT_H 4 | #define STDINT_H 1 5 | 6 | #include 7 | 8 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 9 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 10 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 11 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 12 | /*typedef unsigned short long uint24_t; // 3 bytes 0 to 16777215 */ 13 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 14 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 15 | /* typedef signed long long int64_t; */ 16 | /* typedef unsigned long long uint64_t; */ 17 | 18 | #endif /* STDINT_H */ 19 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rtos32/hardware.cfg: -------------------------------------------------------------------------------- 1 | // * The target computer is IBM-PC-AT compatible. 2 | // * There is a minimum of 4 MB of RAM installed. 3 | 4 | #ifdef DEBUGDOS 5 | Region RealModeVectors 0 1k RAM NoAccess // interrupt vectors 6 | Region BIOSDataArea 1k 3k RAM ReadOnly // BIOS data area 7 | Region DOSMem 4k 252k RAM 8 | Region LowMem 256k 256k RAM 9 | #else 10 | Region = RealModeVectors 0, 4k, RAM, NoAccess // interrupt vectors 11 | // note: locate only has 4k granularity so the 0-1k will be readonly 12 | // Region = RealModeVectors 0, 1k, RAM, NoAccess // interrupt vectors 13 | // Region = BIOSDataArea 1k, 3k, RAM, ReadOnly // BIOS data area 14 | Region = LowMem 4k, 508k, RAM, Assign // Conventional memory 15 | #endif 16 | Region = MoreLowMem 512k, 128k, RAM, Assign // Reserved BIOS ext 17 | Region = MonoText B0000h 4k, Device, ReadWrite // Mono text video mem 18 | Region = ColorText B8000h, 4k, Device, ReadWrite // Text mode video ram 19 | Region = DiskOnChip D0000h, 8k, Device, ReadWrite // Driver Ampro Card 20 | Region = DiskOnChip1 E8000h, 32k, Device, ReadWrite // Driver WinSys Card 21 | Region = HighMem 1M, 3M, RAM, Assign // 3mb ext mem on target 22 | Virtual HeapMem 1G 23 | Virtual StackMem 2G 24 | Virtual ProgMem 3G 25 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rtos32/setvars.bat: -------------------------------------------------------------------------------- 1 | set BORLAND_DIR=\bc5 2 | set RTOS32_DIR=\code\rtos32 3 | 4 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rtos32/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef STDBOOL_H 2 | #define STDBOOL_H 3 | 4 | /* C99 Boolean types for compilers without C99 support */ 5 | 6 | #ifndef __cplusplus 7 | typedef char _Bool; 8 | #ifndef bool 9 | #define bool _Bool 10 | #endif 11 | #ifndef true 12 | #define true 1 13 | #endif 14 | #ifndef false 15 | #define false 0 16 | #endif 17 | #define __bool_true_false_are_defined 1 18 | #endif 19 | 20 | #ifndef FALSE 21 | #define FALSE 0 22 | #endif 23 | 24 | #ifndef TRUE 25 | #define TRUE 1 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rtos32/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | /* for the x86 processor and Borland Compiler */ 3 | 4 | #ifndef STDINT_H 5 | #define STDINT_H 6 | 7 | #include 8 | 9 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 10 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 11 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 12 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 13 | /*typedef unsigned short long uint24_t; // 3 bytes 0 to 16777215 */ 14 | typedef unsigned long uint32_t; /* 4 bytes 0 to 4294967295 */ 15 | typedef signed long int32_t; /* 4 bytes -2147483647 to 2147483647 */ 16 | /* typedef signed long long int64_t; */ 17 | /* typedef unsigned long long uint64_t; */ 18 | 19 | #endif /* STDINT_H */ 20 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rx62n/bacnet.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2010 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | *********************************************************************/ 24 | #ifndef BACNET_H 25 | #define BACNET_H 26 | 27 | #include 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif /* __cplusplus */ 32 | 33 | void bacnet_init( 34 | void); 35 | void bacnet_task( 36 | void); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif /* __cplusplus */ 41 | #endif 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/rx62n/readme.txt: -------------------------------------------------------------------------------- 1 | BACnet Ethernet 2 | Demonstrates the Ethernet peripheral by implmenting BACnet over Ethernet 3 | on the RX62N Development Kit. The project is compiled with the RX Standard 4 | Toolchain, and the default drivers included with the RX62N kit. 5 |   6 | The project does not use any additional hardware. 7 |   8 | The project was tested using a BACnet/IP to BACnet Ethernet router, using the bacnet-tools from the BACnet Protocol Stack site. 9 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/CMSIS debug support.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/CMSIS debug support.htm -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/CMSIS_Core.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/CMSIS_Core.htm -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/License.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/CMSIS/License.doc -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/bacnet.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\bacnet.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/inc/stm32f10x_fsmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/inc/stm32f10x_fsmc.h -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_adc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_adc.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_can.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_can.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_dac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_dac.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_dma.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_exti.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_flash.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_fsmc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_fsmc.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_i2c.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_rcc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_rcc.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_rtc.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_sdio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_sdio.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_tim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_tim.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_usart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/drivers/src/stm32f10x_usart.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/hardware.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright (C) 2011 Steve Karg 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining 6 | * a copy of this software and associated documentation files (the 7 | * "Software"), to deal in the Software without restriction, including 8 | * without limitation the rights to use, copy, modify, merge, publish, 9 | * distribute, sublicense, and/or sell copies of the Software, and to 10 | * permit persons to whom the Software is furnished to do so, subject to 11 | * the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included 14 | * in all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | * 24 | *********************************************************************/ 25 | #ifndef HARDWARE_H 26 | #define HARDWARE_H 27 | 28 | #include "stm32f10x_conf.h" 29 | #include "stm32f10x_it.h" 30 | 31 | #define MAX_BINARY_OUTPUTS 2 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/readme.txt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/stm32-rs485-daughter.brd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/stm32-rs485-daughter.brd -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/stm32-rs485-daughter.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/stm32f10x/stm32-rs485-daughter.ods -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/stm32f10x/stm32f10x_flash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x08000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x08000000 ; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x080FFFFF; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20017FFF; 11 | /*-Sizes-*/ 12 | define symbol __ICFEDIT_size_cstack__ = 0x800; 13 | define symbol __ICFEDIT_size_heap__ = 0x200; 14 | /**** End of ICF editor section. ###ICF###*/ 15 | 16 | 17 | define memory mem with size = 4G; 18 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 19 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 20 | 21 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 22 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 23 | 24 | initialize by copy { readwrite }; 25 | do not initialize { section .noinit }; 26 | 27 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 28 | 29 | place in ROM_region { readonly }; 30 | place in RAM_region { readwrite, 31 | block CSTACK, block HEAP }; -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/BACnet Handler Library/BACnet Handler Library.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/BACnet Object Definitions/BACnet Object Definitions.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/BACnet Stack Development.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/BACnet Stack Development.suo -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/BACnet Stack Library/BACnet Stack Library.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacepics/bacepics.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {918f6766-951a-45ed-b03f-c27eb7a36311} 10 | 11 | 12 | 13 | 14 | Source Files 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacepics/bacepics.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 277008 5 | 6 | 7 | BACNET_IP_PORT=47809 8 | BACNET_BBMD_PORT=47808 9 | BACNET_IFACE=10.66.200.123 10 | BACNET_BBMD_ADDRESS=10.66.200.64 11 | BACNET_BBMD_TIMETOLIVE=120 12 | $(LocalDebuggerEnvironment) 13 | WindowsLocalDebugger 14 | 15 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacrp/bacrp.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacrp/bacrp.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacwir/bacwir.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Source Files 15 | 16 | 17 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/bacwir/bacwir.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/dcc/dcc.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | 14 | 15 | Source Files 16 | 17 | 18 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/dcc/dcc.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/writeprop/writeprop.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | Source Files 12 | 13 | 14 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/Microsoft Visual Studio 2010/writeprop/writeprop.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/bacnet.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/win32/bacnet.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/bacnet/bacnet.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "bacnet"=".\bacnet.dsp" - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/bacnet/bacnet.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/ports/win32/bacnet/bacnet.opt -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/bacnet/bacnet.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bacnet", "bacnet.vcproj", "{966C8DD2-C0ED-4B7F-8EFB-1F64F2453D6A}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {966C8DD2-C0ED-4B7F-8EFB-1F64F2453D6A}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {966C8DD2-C0ED-4B7F-8EFB-1F64F2453D6A}.Debug|Win32.Build.0 = Debug|Win32 14 | {966C8DD2-C0ED-4B7F-8EFB-1F64F2453D6A}.Release|Win32.ActiveCfg = Release|Win32 15 | {966C8DD2-C0ED-4B7F-8EFB-1F64F2453D6A}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/borland.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Build for Borland 5.5 tools 3 | set BORLAND_DIR=c:\borland\bcc55 4 | %BORLAND_DIR%\bin\make -f makefile.mak clean 5 | %BORLAND_DIR%\bin\make -f makefile.mak all 6 | 7 | 8 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/readme.txt: -------------------------------------------------------------------------------- 1 | BACnet Stack - Win32 2 | 3 | This directory contains a demo program that compiles with a Win32 compiler. 4 | It was tested with the freely downloadable Borland C++ 5.5, as well as 5 | Borland C++ 5 and Visual C++ 6.0. 6 | 7 | The makefile.mak file is used with the Borland command line tools. 8 | Run setvars.bat to configure the environment for the Borland tools. 9 | Edit it if necessary to set the correct location of your tools. 10 | 11 | The bacnet.ide file is used with the Borland IDE. 12 | 13 | The bacnet directory is used with Visual C++ 6 tools, and there is a 14 | workspace file bacnet.dsw that is used to compile the demo program. 15 | 16 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/setvars.bat: -------------------------------------------------------------------------------- 1 | set BORLAND_DIR=\bcc55 2 | 3 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDBOOL_H 2 | #define _STDBOOL_H 3 | 4 | #include 5 | 6 | /* C99 Boolean types for compilers without C99 support */ 7 | /* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */ 8 | #if !defined(__cplusplus) 9 | 10 | #if !defined(__GNUC__) 11 | /* _Bool builtin type is included in GCC */ 12 | /* ISO C Standard: 5.2.5 An object declared as 13 | type _Bool is large enough to store 14 | the values 0 and 1. */ 15 | /* We choose 8 bit to match C++ */ 16 | /* It must also promote to integer */ 17 | #if _MSC_VER < 1600 18 | typedef int8_t _Bool; 19 | #endif /* _MSC_VER < 1600 VS 2010 and earlier */ 20 | #endif 21 | 22 | /* ISO C Standard: 7.16 Boolean type */ 23 | #define bool _Bool 24 | #define true 1 25 | #define false 0 26 | #define __bool_true_false_are_defined 1 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/ports/win32/stdint.h: -------------------------------------------------------------------------------- 1 | /* Defines the standard integer types that are used in code */ 2 | /* for the x86 processor and Borland Compiler */ 3 | 4 | #ifndef _STDINT_H 5 | #define _STDINT_H 6 | 7 | #include 8 | 9 | typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ 10 | typedef signed char int8_t; /* 1 byte -127 to 127 */ 11 | typedef unsigned short uint16_t; /* 2 bytes 0 to 65535 */ 12 | typedef signed short int16_t; /* 2 bytes -32767 to 32767 */ 13 | /*typedef unsigned short long uint24_t; // 3 bytes 0 to 16777215 */ 14 | typedef unsigned uint32_t; /* 4 bytes 0 to 4294967295 */ 15 | typedef int int32_t; /* 4 bytes -2147483647 to 2147483647 */ 16 | /* typedef signed long long int64_t; */ 17 | /* typedef unsigned long long uint64_t; */ 18 | 19 | #define INT8_MIN (-128) 20 | #define INT16_MIN (-32768) 21 | #define INT32_MIN (-2147483647 - 1) 22 | 23 | #define INT8_MAX 127 24 | #define INT16_MAX 32767 25 | #define INT32_MAX 2147483647 26 | 27 | #define UINT8_MAX 0xff /* 255U */ 28 | #define UINT16_MAX 0xffff /* 65535U */ 29 | #define UINT32_MAX 0xffffffff /* 4294967295U */ 30 | 31 | #endif /* STDINT_H */ 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/rebuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Re-Build script for MinGW (Make only, no clean first) 3 | echo "Re-Build with MinGW and MSYS: mingw.sourceforge.net" 4 | # set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin 5 | # assumes rm, cp, size are already in path 6 | CC=gcc 7 | AR=ar 8 | MAKE=make 9 | export CC AR MAKE 10 | make BACNET_PORT=win32 BUILD=release all 11 | 12 | # Build for MinGW debug 13 | # make BACNET_PORT=win32 BUILD=debug all 14 | 15 | # Build for MinGW MS/TP 16 | # make BACNET_PORT=win32 BACDL_DEFINE=-DBACDL_MSTP=1 all 17 | 18 | # On Linux, install mingw32 and use this: 19 | # make BACNET_PORT=win32 CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar all 20 | 21 | echo "Complete!" 22 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/splint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # splint is a static code checker 3 | 4 | SPLINT=/usr/bin/splint 5 | 6 | [ -x ${SPLINT} ] || exit 0 7 | 8 | DEFINES="-D__signed__=signed -D__gnuc_va_list=va_list" 9 | INCLUDES="-Iinclude -Idemo/object -Iports/linux" 10 | SETTINGS="-castfcnptr -fullinitblock -initallelements -weak -warnposixheaders" 11 | 12 | if [ ! -e .splintrc ] 13 | then 14 | echo ${DEFINES} ${INCLUDES} ${SETTINGS} > .splintrc 15 | fi 16 | 17 | directory=${1-`pwd`}/src 18 | rm -f splint_output.txt 19 | touch splint_output.txt 20 | for filename in $( find $directory -name '*.c' ) 21 | do 22 | echo splinting ${filename} 23 | ${SPLINT} ${filename} >> splint_output.txt 2>&1 24 | done 25 | 26 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/src/bvlc6.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/src/bvlc6.c -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/abort.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_ABORT 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/abort.c \ 14 | ctest.c 15 | 16 | TARGET = abort 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/address.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 55 | 56 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/address.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DBACNET_ADDRESS_CACHE_FILE -DTEST -DTEST_ADDRESS 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/address.c \ 10 | $(SRC_DIR)/bacaddr.c \ 11 | $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | $(SRC_DIR)/bacapp.c \ 16 | $(SRC_DIR)/bacdevobjpropref.c \ 17 | $(SRC_DIR)/datetime.c \ 18 | $(SRC_DIR)/bactext.c \ 19 | $(SRC_DIR)/indtext.c \ 20 | ctest.c 21 | 22 | OBJS = ${SRCS:.c=.o} 23 | 24 | TARGET = address 25 | 26 | all: ${TARGET} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf ${TARGET} $(OBJS) 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/arf.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../demo/object 5 | DEFINES = -DBACFILE=1 -DBIG_ENDIAN=0 -DTEST -DTEST_ATOMIC_READ_FILE 6 | DEFINES += -DBACNET_READ_FILE_RECORD_COUNT=2 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/arf.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = arf 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/awf.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | 4 | SRC_DIR = ../src 5 | INCLUDES = -I../include -I. -I../demo/object 6 | DEFINES = -DBACFILE=1 -DBIG_ENDIAN=0 -DTEST -DTEST_ATOMIC_WRITE_FILE 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/awf.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = awf 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacapp.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/bacapp.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacapp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | 4 | SRC_DIR = ../src 5 | INCLUDES = -I../include -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BACNET_APPLICATION_DATA 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacapp.c \ 14 | $(SRC_DIR)/bacdevobjpropref.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | ctest.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | TARGET = bacapp 23 | 24 | all: ${TARGET} 25 | 26 | ${TARGET}: ${OBJS} 27 | ${CC} -o $@ ${OBJS} 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -rf ${TARGET} $(OBJS) 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacdcode.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/bacdcode.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacdcode.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_DECODE -DMAX_APDU=50 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | TARGET = bacdcode 10 | 11 | SRCS = $(SRC_DIR)/bacdcode.c \ 12 | $(SRC_DIR)/bacint.c \ 13 | $(SRC_DIR)/bacstr.c \ 14 | $(SRC_DIR)/bacreal.c \ 15 | ctest.c 16 | 17 | OBJS = ${SRCS:.c=.o} 18 | 19 | all: ${TARGET} 20 | 21 | ${TARGET}: ${OBJS} 22 | ${CC} -o $@ ${OBJS} 23 | 24 | .c.o: 25 | ${CC} -c ${CFLAGS} $*.c -o $@ 26 | 27 | depend: 28 | rm -f .depend 29 | ${CC} -MM ${CFLAGS} *.c >> .depend 30 | 31 | clean: 32 | rm -rf ${OBJS} ${TARGET} 33 | 34 | include: .depend 35 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacdevobjpropref.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | 4 | SRC_DIR = ../src 5 | INCLUDES = -I../include -I. 6 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_DEV_ID_PROP_REF 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacapp.c \ 14 | $(SRC_DIR)/bacdevobjpropref.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | ctest.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | TARGET = bacdevobjpropref 23 | 24 | all: ${TARGET} 25 | 26 | ${TARGET}: ${OBJS} 27 | ${CC} -o $@ ${OBJS} 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -rf ${TARGET} $(OBJS) 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacerror.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BACERROR 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacerror.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = bacerror 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacint.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BACINT 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | TARGET = bacint 10 | 11 | SRCS = $(SRC_DIR)/bacint.c \ 12 | $(SRC_DIR)/bacstr.c \ 13 | ctest.c 14 | 15 | OBJS = ${SRCS:.c=.o} 16 | 17 | all: ${TARGET} 18 | 19 | ${TARGET}: ${OBJS} 20 | ${CC} -o $@ ${OBJS} 21 | 22 | .c.o: 23 | ${CC} -c ${CFLAGS} $*.c -o $@ 24 | 25 | depend: 26 | rm -f .depend 27 | ${CC} -MM ${CFLAGS} *.c >> .depend 28 | 29 | clean: 30 | rm -rf ${OBJS} ${TARGET} 31 | 32 | include: .depend 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bacstr.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BACSTR 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | TARGET = bacstr 10 | 11 | SRCS = $(SRC_DIR)/bacstr.c \ 12 | ctest.c 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${OBJS} ${TARGET} *.bak 30 | 31 | include: .depend 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bbmd6.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | SRC_INC = ../include 5 | DEMO_DIR = ../demo/handler 6 | DEMO_INC = ../demo/object 7 | INCLUDES = -I. -I$(SRC_INC) -I$(DEMO_INC) 8 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BBMD6 9 | 10 | CFLAGS = -Wall -Wmissing-prototypes $(INCLUDES) $(DEFINES) -g 11 | 12 | SRCS = $(SRC_DIR)/bacdcode.c \ 13 | $(SRC_DIR)/bacint.c \ 14 | $(SRC_DIR)/bacstr.c \ 15 | $(SRC_DIR)/bacreal.c \ 16 | $(SRC_DIR)/bvlc6.c \ 17 | $(SRC_DIR)/debug.c \ 18 | $(SRC_DIR)/keylist.c \ 19 | $(SRC_DIR)/vmac.c \ 20 | $(DEMO_DIR)/h_bbmd6.c \ 21 | ctest.c 22 | 23 | TARGET = bbmd6 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf ${TARGET} $(OBJS) 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bvlc.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../ports/linux 5 | DEFINES = -DBACDL_BIP -DBIG_ENDIAN=0 -DTEST -DTEST_BVLC 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bvlc.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = bvlc 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/bvlc6.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_BVLC6 6 | 7 | CFLAGS = -Wall -Wmissing-prototypes $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bvlc6.c \ 14 | ctest.c 15 | 16 | TARGET = bvlc6 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/cov.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../demo/object 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_COV -DBACAPP_ALL 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/datetime.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/indtext.c \ 17 | $(SRC_DIR)/bactext.c \ 18 | $(SRC_DIR)/cov.c \ 19 | ctest.c 20 | 21 | OBJS = ${SRCS:.c=.o} 22 | 23 | TARGET = cov 24 | 25 | all: ${TARGET} 26 | 27 | ${TARGET}: ${OBJS} 28 | ${CC} -o $@ ${OBJS} 29 | 30 | .c.o: 31 | ${CC} -c ${CFLAGS} $*.c -o $@ 32 | 33 | depend: 34 | rm -f .depend 35 | ${CC} -MM ${CFLAGS} *.c >> .depend 36 | 37 | clean: 38 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 39 | 40 | include: .depend 41 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/crc.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/crc.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/crc.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build CRC tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../demo/object 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_CRC 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/crc.c \ 10 | ctest.c 11 | 12 | OBJS = ${SRCS:.c=.o} 13 | 14 | TARGET = crc 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/datetime.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/datetime.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/datetime.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_DATE_TIME 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/datetime.c \ 10 | $(SRC_DIR)/bacdcode.c \ 11 | $(SRC_DIR)/bacint.c \ 12 | $(SRC_DIR)/bacstr.c \ 13 | $(SRC_DIR)/bacreal.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | ctest.c 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | TARGET = datetime 23 | 24 | all: ${TARGET} 25 | 26 | ${TARGET}: ${OBJS} 27 | ${CC} -o $@ ${OBJS} 28 | 29 | .c.o: 30 | ${CC} -c ${CFLAGS} $*.c -o $@ 31 | 32 | depend: 33 | rm -f .depend 34 | ${CC} -MM ${CFLAGS} *.c >> .depend 35 | 36 | clean: 37 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 38 | 39 | include: .depend 40 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/dcc.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_DEVICE_COMMUNICATION_CONTROL 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/dcc.c \ 14 | ctest.c 15 | 16 | TARGET = dcc 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/event.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../demo/object 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_EVENT 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacerror.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bactext.c \ 16 | $(SRC_DIR)/indtext.c \ 17 | $(SRC_DIR)/datetime.c \ 18 | $(SRC_DIR)/memcopy.c \ 19 | $(SRC_DIR)/timestamp.c \ 20 | $(SRC_DIR)/bacpropstates.c \ 21 | $(SRC_DIR)/bacdevobjpropref.c \ 22 | $(SRC_DIR)/event.c \ 23 | ctest.c 24 | 25 | TARGET = event 26 | 27 | all: ${TARGET} 28 | 29 | OBJS = ${SRCS:.c=.o} 30 | 31 | ${TARGET}: ${OBJS} 32 | ${CC} -o $@ ${OBJS} 33 | 34 | .c.o: 35 | ${CC} -c ${CFLAGS} $*.c -o $@ 36 | 37 | depend: 38 | rm -f .depend 39 | ${CC} -MM ${CFLAGS} *.c >> .depend 40 | 41 | clean: 42 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 43 | 44 | include: .depend 45 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/fifo.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_FIFO_BUFFER 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/fifo.c \ 10 | ctest.c 11 | 12 | TARGET = fifo 13 | 14 | all: ${TARGET} 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/filename.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/filename.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/filename.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build filename tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_FILENAME 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/filename.c \ 10 | ctest.c 11 | 12 | OBJS = ${SRCS:.c=.o} 13 | 14 | TARGET = filename 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/getevent.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_GET_EVENT_INFORMATION 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacapp.c \ 14 | $(SRC_DIR)/bacdevobjpropref.c \ 15 | $(SRC_DIR)/datetime.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | $(SRC_DIR)/timestamp.c \ 19 | $(SRC_DIR)/getevent.c \ 20 | ctest.c 21 | 22 | TARGET = getevent 23 | 24 | all: ${TARGET} 25 | 26 | OBJS = ${SRCS:.c=.o} 27 | 28 | ${TARGET}: ${OBJS} 29 | ${CC} -o $@ ${OBJS} 30 | 31 | .c.o: 32 | ${CC} -c ${CFLAGS} $*.c -o $@ 33 | 34 | depend: 35 | rm -f .depend 36 | ${CC} -MM ${CFLAGS} *.c >> .depend 37 | 38 | clean: 39 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 40 | 41 | include: .depend 42 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/iam.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../demo/object 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_IAM 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/iam.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = iam 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/ihave.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_I_HAVE 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/ihave.c \ 14 | ctest.c 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | TARGET = ihave 19 | 20 | all: ${TARGET} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/indtext.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_INDEX_TEXT 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/indtext.c \ 10 | ctest.c 11 | 12 | OBJS = ${SRCS:.c=.o} 13 | 14 | TARGET = indtext 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${OBJS} ${TARGET} *.bak 30 | 31 | include: .depend 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/key.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_KEY 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/key.c \ 10 | ctest.c 11 | 12 | TARGET = key 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) 30 | 31 | include: .depend 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/keylist.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build unit tests 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_KEYLIST 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/keylist.c \ 10 | ctest.c 11 | 12 | TARGET = keylist 13 | 14 | OBJS = ${SRCS:.c=.o} 15 | 16 | all: ${TARGET} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) 30 | 31 | include: .depend 32 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/lso.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_LSO 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacerror.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | $(SRC_DIR)/datetime.c \ 19 | $(SRC_DIR)/memcopy.c \ 20 | $(SRC_DIR)/lso.c \ 21 | ctest.c 22 | 23 | TARGET = lso 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/memcopy.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_MEM_COPY 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/memcopy.c \ 10 | ctest.c 11 | 12 | TARGET = memcopy 13 | 14 | all: ${TARGET} 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/mstp.ide: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/bacnet-stack-0.8.4/test/mstp.ide -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/mstp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. -I../ports/linux 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_MSTP 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/mstp.c \ 10 | $(SRC_DIR)/mstptext.c \ 11 | $(SRC_DIR)/indtext.c \ 12 | $(SRC_DIR)/crc.c \ 13 | $(SRC_DIR)/ringbuf.c \ 14 | ctest.c 15 | 16 | TARGET = mstp 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/npdu.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_NPDU 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/npdu.c \ 14 | $(SRC_DIR)/apdu.c \ 15 | $(SRC_DIR)/dcc.c \ 16 | ctest.c 17 | 18 | TARGET = npdu 19 | 20 | all: ${TARGET} 21 | 22 | OBJS = ${SRCS:.c=.o} 23 | 24 | ${TARGET}: ${OBJS} 25 | ${CC} -o $@ ${OBJS} 26 | 27 | .c.o: 28 | ${CC} -c ${CFLAGS} $*.c -o $@ 29 | 30 | depend: 31 | rm -f .depend 32 | ${CC} -MM ${CFLAGS} *.c >> .depend 33 | 34 | clean: 35 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 36 | 37 | include: .depend 38 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/objects.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 51 | 52 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/objects.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_OBJECT_LIST 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/objects.c \ 10 | $(SRC_DIR)/keylist.c \ 11 | $(SRC_DIR)/key.c \ 12 | ctest.c 13 | 14 | TARGET = rp 15 | 16 | all: ${TARGET} 17 | 18 | OBJS = ${SRCS:.c=.o} 19 | 20 | ${TARGET}: ${OBJS} 21 | ${CC} -o $@ ${OBJS} 22 | 23 | .c.o: 24 | ${CC} -c ${CFLAGS} $*.c -o $@ 25 | 26 | depend: 27 | rm -f .depend 28 | ${CC} -MM ${CFLAGS} *.c >> .depend 29 | 30 | clean: 31 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 32 | 33 | include: .depend 34 | 35 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/ptransfer.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DPRINT_ENABLE=1 -DTEST -DTEST_PRIVATE_TRANSFER 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacapp.c \ 11 | $(SRC_DIR)/bacdevobjpropref.c \ 12 | $(SRC_DIR)/bactext.c \ 13 | $(SRC_DIR)/indtext.c \ 14 | $(SRC_DIR)/bacint.c \ 15 | $(SRC_DIR)/bacstr.c \ 16 | $(SRC_DIR)/bacreal.c \ 17 | $(SRC_DIR)/datetime.c \ 18 | $(SRC_DIR)/ptransfer.c \ 19 | ctest.c 20 | 21 | TARGET = ptransfer 22 | 23 | all: ${TARGET} 24 | 25 | OBJS = ${SRCS:.c=.o} 26 | 27 | ${TARGET}: ${OBJS} 28 | ${CC} -o $@ ${OBJS} 29 | 30 | .c.o: 31 | ${CC} -c ${CFLAGS} $*.c -o $@ 32 | 33 | depend: 34 | rm -f .depend 35 | ${CC} -MM ${CFLAGS} *.c >> .depend 36 | 37 | clean: 38 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 39 | 40 | include: .depend 41 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/rd.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_REINITIALIZE_DEVICE 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/rd.c \ 14 | ctest.c 15 | 16 | TARGET = rd 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/reject.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_REJECT 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/reject.c \ 14 | ctest.c 15 | 16 | TARGET = reject 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/ringbuf.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_RING_BUFFER 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/ringbuf.c \ 10 | ctest.c 11 | 12 | TARGET = ringbuf 13 | 14 | all: ${TARGET} 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/rp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_READ_PROPERTY 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/rp.c \ 14 | ctest.c 15 | 16 | TARGET = rp 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/rpm.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_READ_PROPERTY_MULTIPLE 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/bacerror.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | $(SRC_DIR)/datetime.c \ 19 | $(SRC_DIR)/memcopy.c \ 20 | $(SRC_DIR)/rpm.c \ 21 | ctest.c 22 | 23 | TARGET = rpm 24 | 25 | all: ${TARGET} 26 | 27 | OBJS = ${SRCS:.c=.o} 28 | 29 | ${TARGET}: ${OBJS} 30 | ${CC} -o $@ ${OBJS} 31 | 32 | .c.o: 33 | ${CC} -c ${CFLAGS} $*.c -o $@ 34 | 35 | depend: 36 | rm -f .depend 37 | ${CC} -MM ${CFLAGS} *.c >> .depend 38 | 39 | clean: 40 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 41 | 42 | include: .depend 43 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/sbuf.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_STATIC_BUFFER 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/sbuf.c \ 10 | ctest.c 11 | 12 | TARGET = sbuf 13 | 14 | all: ${TARGET} 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/timer.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../ports/bdk-atxx4-mstp 4 | INCLUDES = -I../include -I${SRC_DIR} -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_TIMER 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/timer.c \ 10 | ctest.c 11 | 12 | TARGET = timer 13 | 14 | all: ${TARGET} 15 | 16 | OBJS = ${SRCS:.c=.o} 17 | 18 | ${TARGET}: ${OBJS} 19 | ${CC} -o $@ ${OBJS} 20 | 21 | .c.o: 22 | ${CC} -c ${CFLAGS} $*.c -o $@ 23 | 24 | depend: 25 | rm -f .depend 26 | ${CC} -MM ${CFLAGS} *.c >> .depend 27 | 28 | clean: 29 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 30 | 31 | include: .depend 32 | 33 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/timesync.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | 3 | # tools - only if you need them. 4 | # Most platforms have this already defined 5 | # CC = gcc 6 | # AR = ar 7 | # MAKE = make 8 | # SIZE = size 9 | # 10 | # Assumes rm and cp are available 11 | 12 | SRC_DIR := ../src 13 | INCLUDES := -I../include -I. 14 | DEFINES := -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_TIMESYNC 15 | 16 | CFLAGS := $(INCLUDES) $(DEFINES) -g 17 | CFLAGS += -Wall 18 | 19 | TARGET := timesync 20 | 21 | SRCS := $(SRC_DIR)/bacdcode.c \ 22 | $(SRC_DIR)/bacint.c \ 23 | $(SRC_DIR)/bacstr.c \ 24 | $(SRC_DIR)/bacreal.c \ 25 | $(SRC_DIR)/bacerror.c \ 26 | $(SRC_DIR)/bacapp.c \ 27 | $(SRC_DIR)/bacdevobjpropref.c \ 28 | $(SRC_DIR)/bactext.c \ 29 | $(SRC_DIR)/indtext.c \ 30 | $(SRC_DIR)/datetime.c \ 31 | $(SRC_DIR)/timesync.c \ 32 | ctest.c 33 | 34 | OBJS := ${SRCS:.c=.o} 35 | 36 | all: ${TARGET} 37 | 38 | ${TARGET}: ${OBJS} 39 | ${CC} -o $@ ${OBJS} 40 | 41 | .c.o: 42 | ${CC} -c ${CFLAGS} $*.c -o $@ 43 | 44 | depend: 45 | rm -f .depend 46 | ${CC} -MM ${CFLAGS} *.c >> .depend 47 | 48 | clean: 49 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 50 | 51 | run: 52 | ./${TARGET} 53 | 54 | include: .depend 55 | 56 | .PHONY: all run clean 57 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/whohas.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_WHOHAS 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/whohas.c \ 14 | ctest.c 15 | 16 | TARGET = whohas 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/whois.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DTEST_WHOIS 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/whois.c \ 14 | ctest.c 15 | 16 | TARGET = whois 17 | 18 | all: ${TARGET} 19 | 20 | OBJS = ${SRCS:.c=.o} 21 | 22 | ${TARGET}: ${OBJS} 23 | ${CC} -o $@ ${OBJS} 24 | 25 | .c.o: 26 | ${CC} -c ${CFLAGS} $*.c -o $@ 27 | 28 | depend: 29 | rm -f .depend 30 | ${CC} -MM ${CFLAGS} *.c >> .depend 31 | 32 | clean: 33 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 34 | 35 | include: .depend 36 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/test/wp.mak: -------------------------------------------------------------------------------- 1 | #Makefile to build test case 2 | CC = gcc 3 | SRC_DIR = ../src 4 | INCLUDES = -I../include -I. 5 | DEFINES = -DBIG_ENDIAN=0 -DTEST -DBACAPP_ALL -DTEST_WRITE_PROPERTY 6 | 7 | CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g 8 | 9 | SRCS = $(SRC_DIR)/bacdcode.c \ 10 | $(SRC_DIR)/bacint.c \ 11 | $(SRC_DIR)/bacstr.c \ 12 | $(SRC_DIR)/bacreal.c \ 13 | $(SRC_DIR)/datetime.c \ 14 | $(SRC_DIR)/bacapp.c \ 15 | $(SRC_DIR)/bacdevobjpropref.c \ 16 | $(SRC_DIR)/bactext.c \ 17 | $(SRC_DIR)/indtext.c \ 18 | $(SRC_DIR)/wp.c \ 19 | ctest.c 20 | 21 | TARGET = wp 22 | 23 | all: ${TARGET} 24 | 25 | OBJS = ${SRCS:.c=.o} 26 | 27 | ${TARGET}: ${OBJS} 28 | ${CC} -o $@ ${OBJS} 29 | 30 | .c.o: 31 | ${CC} -c ${CFLAGS} $*.c -o $@ 32 | 33 | depend: 34 | rm -f .depend 35 | ${CC} -MM ${CFLAGS} *.c >> .depend 36 | 37 | clean: 38 | rm -rf core ${TARGET} $(OBJS) *.bak *.1 *.ini 39 | 40 | include: .depend 41 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/unittest.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | echo Build with MinGW and MSYS: mingw.sourceforge.net 3 | rem set PATH=C:\MinGW\msys\1.0\bin;C:\MinGW\bin 4 | rem assumes rm, cp, size are already in path 5 | set CC=gcc 6 | set AR=ar 7 | set MAKE=make 8 | rem make BACNET_PORT=win32 BUILD=release -f test.mak clean all 9 | make -f test.mak clean all 10 | 11 | -------------------------------------------------------------------------------- /misty/bacnet-stack-0.8.4/unittest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Unit tests builder / runner for this project 3 | 4 | make -s -f test.mak clean 5 | make -f test.mak 6 | cat test.log | grep Failed 7 | -------------------------------------------------------------------------------- /misty/mstplib/libmstp_agent_darwin.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/mstplib/libmstp_agent_darwin.so -------------------------------------------------------------------------------- /misty/mstplib/libmstp_agent_linux.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/misty/mstplib/libmstp_agent_linux.so -------------------------------------------------------------------------------- /misty/mstplib/mstp_agent.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2018 by Riptide I/O 3 | All rights reserved. 4 | */ 5 | 6 | #ifndef MSTP_AGENT_H 7 | #define MSTP_AGENT_H 8 | 9 | #include "bacdef.h" 10 | #include "npdu.h" 11 | 12 | #include "dlmstp_linux.h" 13 | #include "ringbuf.h" 14 | 15 | struct set_params { 16 | int mac_address; 17 | int max_master; 18 | int baud_rate; 19 | int max_info_frames; 20 | }; 21 | 22 | typedef struct mstp_data { 23 | int pdu_len; 24 | unsigned char src; 25 | char pdu[MAX_MPDU]; 26 | } MSTP_DATA; 27 | 28 | #define MAX_PORTS 10 29 | 30 | typedef struct server_information { 31 | int fd; 32 | char LEADING_PART[1024]; 33 | } server_info_t; 34 | 35 | typedef struct port_info { 36 | struct mstp_port_struct_t mstp_port; 37 | SHARED_MSTP_DATA shared_port_data; 38 | char dev_name[1024]; 39 | char path[1024]; 40 | int in_use; 41 | struct sockaddr_un claddr; 42 | char mstp_client_path[1024]; 43 | uint8_t data_element[sizeof(MSTP_DATA)]; 44 | server_info_t server_info; 45 | } port_info_t; 46 | 47 | 48 | 49 | // Proto types 50 | void *transmit_thread(void *ptr); 51 | #endif 52 | -------------------------------------------------------------------------------- /misty/samples/BACpypes.ini: -------------------------------------------------------------------------------- 1 | [BACpypes] 2 | objectName: BACClient 3 | address: 25 4 | interface:/dev/ttyS0 5 | max_masters: 127 6 | baudrate: 38400 7 | maxinfo:1 8 | objectIdentifier: 599 9 | maxApduLengthAccepted: 1024 10 | segmentationSupported: segmentedBoth 11 | vendorIdentifier: 15 12 | foreignPort: 0 13 | foreignBBMD: 128.253.109.254 14 | foreignTTL: 30 15 | 16 | -------------------------------------------------------------------------------- /misty/samples/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Copyright (c) 2018 by Riptide I/O 3 | All rights reserved. 4 | """ 5 | -------------------------------------------------------------------------------- /misty/samples/bac_client.ini: -------------------------------------------------------------------------------- 1 | [BACpypes] 2 | objectName: BACClient 3 | address: 25 4 | interface:/var/tmp/ttyp0 5 | max_masters: 127 6 | baudrate: 38400 7 | maxinfo:1 8 | objectIdentifier: 599 9 | maxApduLengthAccepted: 1024 10 | segmentationSupported: segmentedBoth 11 | vendorIdentifier: 15 12 | foreignPort: 0 13 | foreignBBMD: 128.253.109.254 14 | foreignTTL: 30 15 | ; enable this to see the mstp debug logs 16 | ; mstpdbgfile:/home/riptide/abcd.log 17 | -------------------------------------------------------------------------------- /misty/samples/bac_server.ini: -------------------------------------------------------------------------------- 1 | [BACpypes] 2 | objectName: BACServer 3 | address: 30 4 | interface:/var/tmp/ptyp0 5 | max_masters: 127 6 | baudrate: 38400 7 | maxinfo:1 8 | objectIdentifier: 699 9 | maxApduLengthAccepted: 1024 10 | segmentationSupported: segmentedBoth 11 | vendorIdentifier: 15 12 | foreignPort: 0 13 | foreignBBMD: 128.253.109.254 14 | foreignTTL: 30 15 | -------------------------------------------------------------------------------- /misty/tools/gen_whl: -------------------------------------------------------------------------------- 1 | set -x 2 | cd /src 3 | cd misty/mstplib 4 | make clean_build 5 | cd /src 6 | /opt/_internal/cpython-2.7.18-ucs4/bin/python2 setup.py bdist_wheel 7 | /opt/_internal/cpython-2.7.18-ucs4/bin/python2 setup.py sdist 8 | /opt/_internal/cpython-2.7.18-ucs2/bin/python2 setup.py bdist_wheel 9 | /opt/_internal/cpython-2.7.18-ucs2/bin/python2 setup.py sdist 10 | 11 | -------------------------------------------------------------------------------- /misty/tools/start_socat: -------------------------------------------------------------------------------- 1 | socat PTY,link=/var/tmp/ptyp0,ospeed=38400,ispeed=38400 PTY,link=/var/tmp/ttyp0,ospeed=38400,ispeed=38400 2 | -------------------------------------------------------------------------------- /misty/tools/upload_procedure.txt: -------------------------------------------------------------------------------- 1 | Instructions for Uploading the wheel 2 | 3 | git clone 4 | cd misty 5 | docker run -it -v$PWD:/src quay.io/pypa/manylinux1_x86_64 6 | 7 | # now you are in the container 8 | 9 | cd /src 10 | cd /src/misty/mstplib 11 | make clean_build 12 | cd /src 13 | /opt/_internal/cpython-2.7.17-ucs4/bin/python2 setup.py bdist_wheel 14 | /opt/_internal/cpython-2.7.17-ucs2/bin/python2 setup.py bdist_wheel 15 | 16 | exit 17 | 18 | # Out of the container 19 | 20 | # in your linux 21 | sudo chown -R riptide:riptide * 22 | 23 | # one time installation 24 | sudo apt-get install patchelf 25 | pip install auditwheel twine 26 | 27 | cd dist/wheelhouse 28 | 29 | auditwheel repair mty-0.0.3-cp27-cp27m-linux_x86_64.whl 30 | 31 | twine upload --verbose --repository pypi wheelhouse/* 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /screenshots/misty_concept.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/screenshots/misty_concept.png -------------------------------------------------------------------------------- /screenshots/misty_with_kmc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/screenshots/misty_with_kmc.png -------------------------------------------------------------------------------- /screenshots/misty_with_socat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/riptideio/misty/1f841abeed6745ea7003269f75e77323e6befdfb/screenshots/misty_with_socat.png -------------------------------------------------------------------------------- /snap/hooks/install: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | cp $SNAP/etc/default/bac_client.ini $SNAP_COMMON/ 4 | -------------------------------------------------------------------------------- /snap/snapcraft.yaml: -------------------------------------------------------------------------------- 1 | name: misty 2 | base: core18 3 | version: 0.0.9 4 | summary: Misty helps build bacpypes applications that work on MS/TP Networks. 5 | description: | 6 | The misty project helps build bacpypes applications that work on MS/TP Networks. 7 | The existing bacpypes BIP (BACnet IP ) applications can be 8 | easily ported to to use misty and work on MS/TP Networks. 9 | confinement: devmode 10 | grade: devel 11 | 12 | apps: 13 | bc: 14 | command: bin/bc --ini $SNAP_COMMON/bac_client.ini 15 | 16 | bcmulti: 17 | command: bin/bc 18 | 19 | cpini: 20 | command: bin/cp_ini 21 | 22 | props: 23 | command: usr/bin/vim.basic $SNAP_COMMON/bac_client.ini 24 | 25 | parts: 26 | bc: 27 | plugin: python 28 | python-version: python3 29 | source: . 30 | 31 | misty-config: 32 | plugin: dump 33 | source: misty/samples 34 | stage: 35 | - etc/default/bac_client.ini 36 | organize: 37 | bac_client.ini: etc/default/bac_client.ini 38 | prime: 39 | - etc/default 40 | 41 | dependencies: # Taskset requires this 42 | plugin: nil 43 | stage-packages: 44 | - libgpm2 45 | - vim 46 | --------------------------------------------------------------------------------