mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-20 20:58:09 +08:00
12 lines
265 B
C
12 lines
265 B
C
|
// Copyright (c) 2023 Cesanta Software Limited
|
||
|
// All rights reserved
|
||
|
|
||
|
#define LED PICO_DEFAULT_LED_PIN
|
||
|
|
||
|
static inline int gpio_read(uint16_t pin) {
|
||
|
return gpio_get_out_level(pin);
|
||
|
}
|
||
|
static inline void gpio_write(uint16_t pin, bool val) {
|
||
|
gpio_put(pin, val);
|
||
|
}
|