Create variables

  1. Create a module software instance structure for the TC module to store the TC driver state while it is in use.
    struct tc_module tc_instance;
    
    Note: This should never go out of scope as long as the module is in use. In most cases, this should be global.
  2. Create a module software instance structure for DMA resource to store the DMA resource state while it is in use.
    struct dma_resource example_resource;
    
    Note: This should never go out of scope as long as the module is in use. In most cases, this should be global.