7 months ago | Paul Boddie | file changeset files shortlog | Introduced support for the SPI peripheral on the JZ4780. Removed DMA buffer handling from the AIC/I2S peripheral support, changing the transfer operation to use an arbitrary physical address. Changed the hw_info test program to support use of the SPI peripheral and GPIO-driven SPI communication in the same session. Added a test picture in RGB16 format for use with the hw_info program. | cpm-library-improvements |
paul@111 | 1 | #include <l4/devices/protocols.h> |
paul@111 | 2 | #include <stdint.h> |
paul@111 | 3 | |
paul@111 | 4 | [protocol(LANDFALL_PWM)] |
paul@111 | 5 | interface PWM |
paul@111 | 6 | { |
paul@111 | 7 | void set_control(in uint8_t control); |
paul@111 | 8 | |
paul@111 | 9 | void set_duty(in uint16_t duty); |
paul@111 | 10 | |
paul@111 | 11 | void set_period(in uint16_t period); |
paul@111 | 12 | }; |