diff --git a/bacnet-stack/ports/atmega168/bacnet.aps b/bacnet-stack/ports/atmega168/bacnet.aps index 323c60b9..7fc74b69 100644 --- a/bacnet-stack/ports/atmega168/bacnet.aps +++ b/bacnet-stack/ports/atmega168/bacnet.aps @@ -1 +1 @@ -13-Aug-2007 15:08:2716-Aug-2007 14:41:22013-Aug-2007 15:08:2744, 13, 0, 528AVR GCC241bacnet13-Aug-2007 15:11:0713-Aug-2007 15:11:07241013-Aug-2007 15:11:0744, 13, 0, 528AVR GCCdefault\bacnet.elfC:\code\bacnet-stack\ports\atmega168\ATmega168falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31AVR SimulatorAVR SimulatorATmega168.xmlAuto000main.crs485.ctimer.cdlmstp.cC:\code\bacnet-stack\crc.cC:\code\bacnet-stack\mstp.cavr035.hhardware.hrs485.htimer.hC:\code\bacnet-stack\mstp.hC:\code\bacnet-stack\crc.hC:\code\bacnet-stack\dlmstp.hdefaultNOatmega168100bacnet.elfdefault\1..\..\.\-Wall -gdwarf-2 -O0 -fsigned-char -DMAX_APDU=50 -DBACDL_MSTP -DBIG_ENDIAN=0 default1C:\WinAVR-20070525\bin\avr-gcc.exeC:\WinAVR-20070525\utils\bin\make.exe028216193737280001100000C:\WinAVR-20070525\avr\include\avr\eeprom.h100001C:\WinAVR-20070525\avr\include\avr\iomx8.h100002C:\WinAVR-20070525\examples\stdiodemo\uart.c100003main.c25900004timer.c25800005C:\WinAVR-20070525\avr\include\avr\interrupt.h100006C:\WinAVR-20070525\avr\include\avr\io.h100007rs485.c25700008C:\code\bacnet-stack\mstp.c25900009dlmstp.c257751 698 911 7250 0269 695 429 7190 0908 695 1068 7220 0401 229 1255 653109 0428 695 588 7220 0429 695 589 7190 0290 119 1090 6740 0423 251 1223 675638 0467 295 1267 7190 0 +13-Aug-2007 15:08:2717-Aug-2007 09:26:45013-Aug-2007 15:08:2744, 13, 0, 528AVR GCC241bacnet13-Aug-2007 15:11:0713-Aug-2007 15:11:07241013-Aug-2007 15:11:0744, 13, 0, 528AVR GCCdefault\bacnet.elfC:\code\bacnet-stack\ports\atmega168\ATmega168falseR00R01R02R03R04R05R06R07R08R09R10R11R12R13R14R15R16R17R18R19R20R21R22R23R24R25R26R27R28R29R30R31AVR SimulatorAVR SimulatorATmega168.xmlAuto000main.crs485.ctimer.cdlmstp.cC:\code\bacnet-stack\crc.cC:\code\bacnet-stack\mstp.cavr035.hhardware.hrs485.htimer.hC:\code\bacnet-stack\mstp.hC:\code\bacnet-stack\crc.hC:\code\bacnet-stack\dlmstp.hdefaultNOatmega168100bacnet.elfdefault\1..\..\.\-Wall -gdwarf-2 -O0 -fsigned-char -DMAX_APDU=50 -DBACDL_MSTP -DBIG_ENDIAN=0default1C:\WinAVR-20070525\bin\avr-gcc.exeC:\WinAVR-20070525\utils\bin\make.exe028216193737280001100000C:\WinAVR-20070525\avr\include\avr\eeprom.h100001C:\WinAVR-20070525\avr\include\avr\iomx8.h100002C:\WinAVR-20070525\examples\stdiodemo\uart.c100003main.c25900004timer.c25800005C:\WinAVR-20070525\avr\include\avr\interrupt.h100006C:\WinAVR-20070525\avr\include\avr\io.h100007rs485.c25700008C:\code\bacnet-stack\mstp.c25900009dlmstp.c257753 701 913 7280 0268 695 428 7220 0907 695 1067 7220 0400 229 1254 653109 0427 695 587 7220 0428 695 588 7220 0289 119 1089 6740 0422 251 1222 675638 0466 295 1266 7190 0 diff --git a/bacnet-stack/ports/atmega168/readme.txt b/bacnet-stack/ports/atmega168/readme.txt new file mode 100644 index 00000000..be55b569 --- /dev/null +++ b/bacnet-stack/ports/atmega168/readme.txt @@ -0,0 +1,42 @@ +This port was done with the Atmel ATmega168 using two tools: +1. The WinAVR compiler avr-gcc (GCC) 4.1.2 (WinAVR 20070525) +and tools from , hints and +sample code from and + +"avr-binutils, avr-gcc, and avr-libc form the heart of the +Free Software toolchain for the Atmel AVR microcontrollers." +2. AVR Studio from Atmel + +The hardware is expected to utilize the signals as defined +in the spreadsheet hardware.ods (OpenOffice.org calc). +Attach a DS75176 RS-485 transceiver (or similar) to the USART. +DS75176 ATmega168 +------ --------- + RO RXD + /RE --choice of I/O + DE --choice of I/O + DI TXD + GND GND + DO --to RS-485 wire + DO --to RS-485 wire + +5V From 5V Regulator + +The makefile allows you to build just the dlmstp or a simple +server. dlmstp is the datalink layer for MS/TP over RS-485. + +I used the makefile from the command line on Windows: +C:\code\bacnet-stack\ports\atmega168> make clean all + +I also used the bacnet.aps project file in AVR Studio to +make the project and simulate it. + +Note that the bacnet stack is currently layed out as encapsulating +modules that include both client and server functionality for each service. +The nice thing about the all in one modules that it permits easy unit +testing. The bad thing is that it puts all the unused code into the build. +Therefore, until the code is split into separate modules, +the unused sections must be commented out (use #if 0, #endif). + +Hopefully you find it useful! + +Steve Karg