My target board have two MACs, one in MCU chip,the other is connect to MCU local bus. I like to use RL-TCPNET in my board. How to use?
As far as I understand, TCPnet works as a singleton, thus you can instantiate only one stack.
If that is what you want, then you just chose one MAC in your system, use it and drop the other. The way to do it is by following some example projects which come with TCPnet.
If instead you really want to use two stacks, one for each MAC and use them to receive-send packets in an independent way up to application layer ... well that is complicate.
If you really want using TCPnet the best solution is to purchase a licence for its source code and then modify it. At this point you could duplicate data structure and callback functions (and maybe also high-level API).
Regards, Marco.
Given the ridiculously high cost involved to get access to the TCPnet source, I really can not recommend that route.
Any nonstandard use of the stack will be way outside the boundaries of Keil support, so it would be much better to go with another stack where you can discuss any problem on a web forum and get other interested people to share the work load.
View all questions in Keil forum