Commit Graph

82 Commits

Author SHA1 Message Date
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
skarg 194c6d17ac Slimming down the Atmel AVR port. 2007-10-19 03:21:45 +00:00
skarg bfefe8cd62 Slimming down... 2007-10-19 01:33:28 +00:00
skarg a4d9a2eb69 Moved bacdcode.c and bacreal.c back to src, and removed the separate bacdcode directory. Since gcc linker can remove unused functions, this was wasted effort. Added bacreal unit test. 2007-10-18 12:13:46 +00:00
skarg 625ff40d71 Moved bacstr.c back to src. Since gcc and others tool linkers can remove unused functions, this turned out to be a wasted effort. 2007-10-18 11:50:14 +00:00
skarg 89ddbbe2a0 Moved iam.c back to src, and removed the separate iam directory. Since gcc and others tool linkers can remove unused functions, this turned out to be a wasted effort. 2007-10-18 11:41:18 +00:00
skarg 9b304596c9 Moved rp.c back to src, and removed the separate readprop directory. Since gcc linker can remove unused functions, this was wasted effort. 2007-10-18 11:29:05 +00:00
skarg 9ff27e38aa Corrected object supported list. 2007-10-16 22:46:28 +00:00
skarg fd50708718 Tuning the ATmega168 port demo project for the BTL plugfest. 2007-10-16 02:32:52 +00:00
skarg f70e80f146 Tuned the ATmega168 port demo project that runs a Device Object and 9 Analog Inputs, and uses ReadProperty service. Uses 16158 bytes of flash, 624 bytes of RAM with an APDU of 128. 2007-10-16 01:22:12 +00:00
skarg cbefb47a05 Added GCC options for removing unused functions/dead code. I don't have to split out all the functions from their files! 2007-10-15 12:26:47 +00:00
skarg 947756fa0d MovedMoved ReadProperty to subdirectory for library splitting. Split client, server, test for ReadProperty. 2007-10-14 02:19:24 +00:00
skarg 65b7dea8bf Reducing the memory required by ATmega168 port. 2007-10-14 02:01:18 +00:00
skarg 637b6900e3 Reducing the memory required by ATmega168 port. 2007-10-14 01:46:47 +00:00
skarg 5d04c62dbe made a copy 2007-10-14 01:28:04 +00:00
skarg c7a530838c made a copy 2007-10-14 00:48:35 +00:00
skarg c3e7c982da made a copy 2007-10-14 00:30:30 +00:00
skarg b290c71bd7 Split out Real encoding and decoding. 2007-10-14 00:03:23 +00:00