Use the prompt
Provide the device documentation, target platform, and timing constraints. Check register values and electrical assumptions against the hardware documentation before running generated code on the device.
Generate hardware interface code for I2C, SPI, UART protocols with proper interrupt handling.
For GitLab Duo
Generate code to interface with [HARDWARE COMPONENT]:
Specs:
[HARDWARE SPECIFICATIONS]
Protocol: [I2C/SPI/UART/etc]
Generate:
1. Initialization code
2. Read/write functions
3. Interrupt handlers
4. Error handling
5. Usage examplesProvide the device documentation, target platform, and timing constraints. Check register values and electrical assumptions against the hardware documentation before running generated code on the device.