Create a Project Folder
The standard folder structure for a device driver block contains the System Object, asrc
folder, and include folder.
Create a device driver project folder using thecodertarget.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 willWrite the Hardware-Specific C/C++ Code.
See Also
Create a Digital Read Block|Write the Hardware-Specific C/C++ Code