Main Content

Create a Project Folder

The standard folder structure for a device driver block contains the System object™, asrcfolder, and anincludefolder.

Create a device driver project folder using thecodertarget.createDriverProjectfunction.

codertarget.createDriverProject('my_driver')

The device driver folder contains the following content:

  • A source folder,src, for the C/C++ source code.

  • An include folder,include, for the C/C++ header files and additional libraries.

  • A template System object for sink blocks,Sink.m.

  • A template System object for source blocks,Source.m.

In the next section, you willWrite the Hardware Specific C/C++ Code.

See Also

|