Combined the interface set into the datalink_init for all the datalink layers. Changed all the demo programs to use datalink_init instead of specific datalink functions.

This commit is contained in:
skarg
2007-05-25 01:08:42 +00:00
parent 076ee5f3ca
commit 8026dc003b
29 changed files with 123 additions and 295 deletions
+1 -9
View File
@@ -140,18 +140,10 @@ int main(int argc, char *argv[])
Init_Service_Handlers();
RTOS_Initialize();
/* init the physical layer */
#ifdef BACDL_BIP
if (!bip_init())
return 1;
#endif
#ifdef BACDL_ETHERNET
if (!ethernet_init(NULL))
return 1;
#endif
#ifdef BACDL_MSTP
dlmstp_set_my_address(0x05);
dlmstp_init();
#endif
datalink_init(NULL);
iam_send(&Handler_Transmit_Buffer[0]);
/* loop forever */
for (;;) {