HAL device id, refactored duplicate device ID code in wiring
warnings as errors in common
fixes for warnings (now errors) in common module