Create a Project Folder

The standard folder structure for a device driver block contains the System object™, a src folder, and an include folder.

Create a device driver project folder using the codertarget.createDriverProject function.

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 will Write the Hardware Specific C/C++ Code.

See Also

|