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.

This commit is contained in:
skarg
2007-10-16 01:22:12 +00:00
parent cbefb47a05
commit f70e80f146
7 changed files with 36 additions and 83 deletions
+4 -4
View File
@@ -152,23 +152,23 @@ int main(void)
init();
#if defined(BACDL_MSTP)
//RS485_Set_Baud_Rate(38400);
RS485_Set_Baud_Rate(38400);
dlmstp_set_max_master(127);
dlmstp_set_max_info_frames(1);
#endif
datalink_init(NULL);
for (;;) {
if (Send_I_Am)
if (Send_I_Am) {
Send_I_Am = false;
iam_send(&Handler_Transmit_Buffer[0]);
}
input_switch_read();
task_milliseconds();
/* other tasks */
/* BACnet handling */
pdu_len = datalink_receive(&src, &PDUBuffer[0], sizeof(PDUBuffer), 0);
if (pdu_len) {
#if !defined(TEST_MSTP)
npdu_handler(&src, &PDUBuffer[0], pdu_len);
#endif
NPDU_LED_On();
}
}