Patent ID: 7681174

Claim:
A method of generating program code for generating firmware of a device, the firmware describing relationships between a plurality of function names of the device and a plurality of control codes, the control codes receivable by the device from a second device for commanding the device to execute a corresponding function of the device, the method comprising: a computer system programmed for receiving the relationships between the plurality of function names of the device and the plurality of control codes; if at least one of the plurality of function names maps to more than one of the plurality of control codes, the computer system programmed for outputting a warning message; if at least one of the plurality of control codes maps to more than one function name of the device, the computer system programmed for outputting an error message; and according to the details of the warning message, and only if no error message is outputted, the computer system programmed for generating the program code according to the relationships.