|TCPmaker : Visual Tour Exploring and Customizing the Generated Code|
TCPmaker just adds a few important files on top of the very capable Microchip TCP-IP Stack, as shown in the diagram below.
The column on the left shows how we have added a bit to the main module of the application: Microchip's file MainDemo.c. The main() function in this module normally contains some initialization code that starts things up in your board as well in various parts of the Microchip Stack. We have added a line that initializes our "message pump," called mtServer.c, shown in the middle column.
After the main() function initializes things, it enters an infinite loop that periodically calls various servers in the Stack. We have added a line to that infinite loop, that calls our mtServer() message pump regularly.
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21|