add support for the webcam in code generation.
reorder webcam peripheral fields to optimize read/write frames.