Assignment - Add Output Synchronous Device Support, that does Error Logging, to an IOC Application ---------------------------------------------------------------- Add exampleApp synchronous device support for a stringout record that logs, using errlogPrintf, the stringout VAL. Change to log with errlogSevPrintf, instead of errlogPrintf, where a severity string (Info, Minor, Major, or Fatal) is specified in the OUT field. Create a database with 4 stringout records (one for each severity), using the device support. See Chapter 6.6 of the app dev guide for setting up the device database definition file. See section 6.12.2 for setting up the record's DTYP and OUT fields. See Chapter 10 of the app dev guide for the prototype and description of errlogPrintf and errlogSevPrintf. Will errlogPrintf block record processing? Hints: (1) In exampleApp/src, copy devXxxSoft.c to devStringout.c. Edit devStringout.c to change devXxxSoft to devStringout and xxx to stringout. Change read_stringout to write_stringout. Add inclusion of errlog.h for the errlogPrintf macro. (2) Edit devStringout.c - init_record does nothing for the first part of the assignment. For the second part of the assignment, set the record's DPVT (device private) field to the desired integer severity (use the errlogSevEnum typedef) based on the INST_IO string. (3) Edit devStringout.c - write_stringout calls the errlogPrintf function using val and an appropriate format string. It needs to reset udf. For the second part of the assignment, it calls errlogSevPrintf with the severity set to the record's DPVT field. (6) Create devStringout.dbd with the appropriate "device" line for the stringout record. Use INST_IO. (7) Add devStringout.c and devStringout.dbd to exampleApp/src/Makefile. (8) Create exampleApp/Db/dberrlog.db with a stringout record. Add it to the Makefile. (9) Do a "make" of exampleApp. (10) Change iocBoot/ioc*/st.cmd to add dberrlog.db. (11) Restart the rtems and linux iocs. (12) caput various strings to the errlog PV and watch the values appear on on the screen connected to the ioc. (13) What would it take to get the message to the cmlog browser?