| 263 | }; |
| 264 | |
| 265 | OneWireBus* owb_gpio_initialize(owb_gpio_driver_info *driver_info, int pin) |
| 266 | { |
| 267 | driver_info->bus.driver = &gpio_function_table; |
| 268 | driver_info->bus.timing = &_StandardTiming; |
| 269 | |
| 270 | driver_info->bus.config = c_malloc(sizeof(modGPIOConfigurationRecord)); |
| 271 | if ( driver_info->bus.config == NULL ) { |
| 272 | return NULL; |
| 273 | } |
| 274 | if (modGPIOInit(driver_info->bus.config , NULL, pin, kModGPIOInput)) { |
| 275 | return NULL; |
| 276 | } |
| 277 | |
| 278 | return &(driver_info->bus); |
| 279 | } |
no test coverage detected