| 55 | } |
| 56 | |
| 57 | bool configureWithPinBitmask(uint64_t pinBitMask, Mode mode, bool pullUp, bool pullDown) { |
| 58 | #ifdef ESP_PLATFORM |
| 59 | gpio_config_t sd_gpio_config = { |
| 60 | .pin_bit_mask = pinBitMask, |
| 61 | .mode = toEspGpioMode(mode), |
| 62 | .pull_up_en = pullUp ? GPIO_PULLUP_ENABLE : GPIO_PULLUP_DISABLE, |
| 63 | .pull_down_en = pullDown ? GPIO_PULLDOWN_ENABLE : GPIO_PULLDOWN_DISABLE, |
| 64 | .intr_type = GPIO_INTR_DISABLE, |
| 65 | }; |
| 66 | return gpio_config(&sd_gpio_config) == ESP_OK; |
| 67 | #else |
| 68 | return true; |
| 69 | #endif |
| 70 | } |
| 71 | |
| 72 | bool configure(Pin pin, Mode mode, bool pullUp, bool pullDown) { |
| 73 | #ifdef ESP_PLATFORM |
no test coverage detected