Updated the PIC port for MS/TP. Tested on my hardware.

This commit is contained in:
skarg
2008-11-30 04:39:53 +00:00
parent a4cd23761c
commit 0b490d5440
4 changed files with 6 additions and 30 deletions
+6 -1
View File
@@ -231,7 +231,6 @@ void Initialize_Variables(
ENABLE_TIMER4_INT();
/* interrupts must be enabled before we read our inputs */
Global_Int(INT_ENABLED);
dlmstp_init();
/* Start our time from now */
Milliseconds = 0;
}
@@ -259,6 +258,12 @@ void main(
RCONbits.NOT_RI = 1;
Hardware_Initialize();
Initialize_Variables();
/* initialize BACnet Data Link Layer */
dlmstp_set_my_address(42);
dlmstp_set_max_info_frames(1);
dlmstp_set_max_master(127);
RS485_Set_Baud_Rate(38400);
dlmstp_init();
/* Handle anything that needs to be done on powerup */
/* Greet the BACnet world! */
Send_I_Am(&Handler_Transmit_Buffer[0]);