Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example shows the external reference to the node specification AppSpec, which is typically allocated within the configuration file co_obj_cfg.c, and the allocation of the CANopen node memory AppNode.


Code Block
languagecpp
extern const CO_NODE_SPEC AppSpec;
             CO_NODE      AppNode;


With these objects, the CANopen node can be initialized and started:


Code Block
languagecpp
    :
    CONodeInit (&AppNode, (CO_NODE_SPEC *)&AppSpec);
    :