Commit Graph

99 Commits

Author SHA1 Message Date
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg 69fad0502a Changed MS/TP idle state: when no-token timeout occurs, clear the receive frame flags in case a message was received and timeout occurred, which may cause MS/TP to stop working in optimized dlmstp loops which don't check for new events when either of those flags are set. Thank you, Jason! 2009-09-17 03:38:20 +00:00
skarg c304b8b330 Added a parameter to Device_Encode_Property_APDU so that it matched all the ther objects, which required all the demo and ports to modify their device and h_rp files. 2009-08-23 03:48:27 +00:00
skarg 4b422d6c1c Changed modulo and division operations on 256 to bit shift using include/bytes.h macro to improve code size on architectures that don't do division natively. 2009-08-20 14:38:25 +00:00
skarg 49d6b46ac6 Updated for latest files and removed some paths in project file. 2009-08-12 14:14:37 +00:00
skarg 976514ba8f Added PICS for ATmega168 port device. 2009-08-04 16:23:51 +00:00
skarg 0c4edb33d9 Fixed up file indent, comments, and eol-type. 2009-05-13 03:46:02 +00:00
skarg 30c01de3a4 Refactored the GCC C-Stack functions into their own file. 2009-05-12 20:41:42 +00:00
skarg 75bd715bd4 corrected possible overflow in dlmstp.c for PIC and RTOS-32. Thank you Martin! 2009-03-06 11:04:51 +00:00
skarg a42b63d5c7 Changed the data type of the MS/TP index for the receiving byte to allow an APDU of 480 bytes. 2009-02-16 18:53:15 +00:00
skarg cba4fdd1d2 Added avrdude support in ATmega Makefile. 2008-11-27 04:36:02 +00:00
skarg 0e9a805f75 Moved the iam_send to demo/handler/s_iam.c to keep application code out of the core encode/decode library. 2008-11-14 14:41:28 +00:00
skarg c7a5c05ac7 Moved send I-Am to a send module and out of iam.c. 2008-11-12 15:38:43 +00:00
skarg 38dc91e540 Added WhoIs to bit string returned for Services Supported. 2008-10-30 21:09:39 +00:00
skarg 6073793013 updated hardware BOM for ATmega168 port. 2008-10-22 20:05:08 +00:00
skarg 437de29ce7 Added splintrc and lint checking. 2008-09-26 15:21:13 +00:00
skarg 3a0f109d66 Added h_npdu to demo lib and example projects. 2008-09-07 04:23:44 +00:00
skarg 3d3d7e420d Ran the comment and indent tools on the source code. 2008-04-24 01:07:23 +00:00
skarg dff2ef777b Updated the readme for AVR. 2008-04-09 15:39:01 +00:00
skarg be315cc392 Changed the default APDU size to reduce stack requirements. 2008-04-04 16:00:08 +00:00
skarg be7cfceb41 Updated readme file for Atmel AVR ATmega168 port. 2008-03-28 14:18:07 +00:00
skarg 69e7992cd1 Added CStack check to project by putting it into the device object as property 512. The compile shows 648 bytes of RAM used, and the device has 1024 bytes of RAM, leaving 376 for the CStack. Property 512 index 0 returns 376. So, my understanding is that the RAM that is not allocated to the variables is used for the CStack, something to keep in mind when developing. After some exercising, the stack shows 159 CStack bytes free, meaning that 216 bytes of CStack are used. Note that 0xC5 (197) was used to paint the CStack. 2008-03-28 02:47:33 +00:00
skarg 919f4b67bd Fixed IAR embedded workbench atmega168 project by allocating more CSTACK space. Simplified the iar/gcc compatibility. 2008-03-25 22:14:38 +00:00
skarg a174b9bf59 Added more functionality to the ATmega168 demo. 2008-03-20 21:32:39 +00:00
skarg 944cb46e51 Enhanced the ATmega168 demo project to include WriteProperty service to the Analog Value and Device objects. 2008-03-19 23:17:19 +00:00
skarg 80023d79db Corrected indentation using the indent tool. 2008-03-19 21:26:54 +00:00
skarg fb453ae1aa Corrected bug in ATmega168 demo in the RS-485 driver. Also updated the IAR project for Embedded workbench 5.10. Stats:
IAR Atmel AVR C/C++ Compiler V5.10A/W32 
10191 bytes of CODE memory (+36 range fill) 
  775 bytes of DATA memory (+24 absolute) 

avr-gcc (GCC) 4.2.2 (WinAVR 20071221rc1)
Program:   12052 bytes (73.6% Full)
Data:        481 bytes (47.0% Full)
2008-03-19 20:21:44 +00:00
skarg c8677814a6 Corrected bug in ATmega168 port demo project, which required some code reduction to fit using GCC compiler. 2008-03-14 22:15:49 +00:00
skarg cf9d15631a Indented using indent script. Corrected any C++ comments using the comment script. 2008-03-10 21:00:48 +00:00
skarg 25b4979a28 Shorted the device name to give me a few more bytes. 2008-03-10 20:45:41 +00:00
skarg eb7196668c Corrected the MS/TP TEST REQUEST state such that it now returns the data from the request per BACnet 9.3.5 which says "The data, if present, shall be that which was present in the initiating Test_Request." Thank you to Martin Labbe! 2008-03-09 13:52:48 +00:00
skarg 280d8c8c51 Corrected makefile define. 2008-01-10 20:15:53 +00:00
skarg 9abf112d45 Moved the inline optimization to the Makefile. 2008-01-09 16:50:44 +00:00
skarg 89432a85c3 Applied standard indentation to files. 2008-01-08 23:13:51 +00:00
skarg e17cb0559e Converted C++ comments to C comments. 2008-01-08 21:30:50 +00:00
skarg e79bd532af Updated atmega project. 2008-01-07 23:01:44 +00:00
skarg a8e679f8d7 Compiled ATmega16 port example project with IAR Embedded workbench. 2008-01-07 21:41:15 +00:00
skarg 9f1dc8223f Corrected read-property handler example for encoding ack without an extra buffer. 2008-01-07 21:40:33 +00:00
skarg f8adfe1f41 Added read-property methods to encode ack without an extra buffer. 2008-01-04 23:06:46 +00:00
skarg 72abef8e1d Corrected atmega port MS/TP code where APDU size > 255 caused APDU layer to not process packets. 2008-01-03 18:49:38 +00:00
skarg ab7fe095f4 Added comment for reducing code size. 2008-01-02 14:28:31 +00:00
skarg 767fe208e0 Added "static inline" to functions that were only used once, and reduced code usage by 6 bytes for each occurance. 2008-01-02 14:27:41 +00:00
skarg 1477603af6 indented. 2007-11-29 16:39:48 +00:00
skarg 411d6c1b24 Indented. 2007-11-29 15:56:53 +00:00
skarg 35f2aaed00 Corrected race condition where the MS/TP Master Node FSM may miss the first packet since it may not run until after the first packet has arrived if the ReceivedValidFrame flag is set to false during MSTP_MASTER_STATE_INITIALIZE. Thank you to anand! 2007-11-16 13:27:51 +00:00
skarg 39f0a6f876 Corrected EOL style. 2007-10-28 13:32:45 +00:00
skarg 1f61a4e7b5 Removed the WriteProperty support on Atmega168 - Program size was at 108%. Gotta think of some ways to slim down. 2007-10-25 04:00:13 +00:00
skarg 4d2f46b395 Added defines for each BACAPP datatype so that the developer could only use the ones they need for their WriteProperty applications. 2007-10-19 17:11:31 +00:00
skarg 740bb873be 2007-10-19 04:11:20 +00:00
skarg 1f8a8b6f84 Slimming down the Atmel AVR port. 2007-10-19 03:26:43 +00:00