Implemented analogWrite()/PWM for Gen2.
Moved ADC pin number to channel translation out of the Arduino Wiring layer for simplicity and consistency.
Fixed problem with pin attributes table from the I/O expander bit value definitions.
Fixed problem in mux attributes table relating to the PWM MUXes.
Fixed typos in comments.