.. | .. |
---|
36 | 36 | /* |
---|
37 | 37 | * @brief |
---|
38 | 38 | * Business storage. |
---|
39 | | - * For each member of 'enum gpio_id', |
---|
40 | | - * store array of bits (packed into uint32_t slots), |
---|
41 | | - * index individual bit by 'en' value */ |
---|
42 | | - uint32_t *busyness[GPIO_ID_COUNT]; |
---|
| 39 | + * one byte For each member of 'enum gpio_id' |
---|
| 40 | + */ |
---|
| 41 | + char *busyness[GPIO_ID_COUNT]; |
---|
43 | 42 | }; |
---|
44 | 43 | |
---|
45 | 44 | enum gpio_result dal_gpio_service_open( |
---|
46 | | - struct gpio_service *service, |
---|
47 | | - enum gpio_id id, |
---|
48 | | - uint32_t en, |
---|
49 | | - enum gpio_mode mode, |
---|
50 | | - struct hw_gpio_pin **ptr); |
---|
| 45 | + struct gpio *gpio); |
---|
51 | 46 | |
---|
52 | 47 | void dal_gpio_service_close( |
---|
53 | 48 | struct gpio_service *service, |
---|
54 | 49 | struct hw_gpio_pin **ptr); |
---|
55 | 50 | |
---|
| 51 | +enum gpio_result dal_gpio_service_lock( |
---|
| 52 | + struct gpio_service *service, |
---|
| 53 | + enum gpio_id id, |
---|
| 54 | + uint32_t en); |
---|
| 55 | + |
---|
| 56 | +enum gpio_result dal_gpio_service_unlock( |
---|
| 57 | + struct gpio_service *service, |
---|
| 58 | + enum gpio_id id, |
---|
| 59 | + uint32_t en); |
---|
| 60 | + |
---|
56 | 61 | #endif |
---|