Closed trylimits closed 9 years ago
Done. @Blackjack92 pls review.
I extended the existing driver struct similar to SunOS (unix-based). See http://docs.oracle.com/cd/E19253-01/816-4855/config12-91355/index.html at "cb_ops".
I will implement the driver for LED (Bug #5) to demonstrate the concept.
@Blackjack92 @mpe5651 Please review and close if this interface to drivers is ok.
Imo this interface covers all use-cases and we should be fine with it.
Abstract driver works for the momement.
Usage example:
DeviceManagerInit();
int i = 0;
char* leds[] = { "LED0", "LED1", "LED2", "LED3" };
for (i = 0; i < 4; i++) {
device_t led = DeviceManagerGetDevice(leds[i], 4);
DeviceManagerOpen(led);
DeviceManagerWrite(led, "1", 1);
}
See title