diff --git a/Changelog b/Changelog index 9d10ef1..4758acf 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,9 @@ # Changelog +## [0.24] +### Added +- Gpio: 5V control messages: GetOtgMode, GetOtgModeResponse, SetOtgMode + ## [0.23] ### Added - Storage: New TarExtract request to unpack a tar archive to a given directory diff --git a/flipper.proto b/flipper.proto index a4527e6..989af13 100644 --- a/flipper.proto +++ b/flipper.proto @@ -123,6 +123,9 @@ message Main { .PB_Gpio.ReadPin gpio_read_pin = 55; .PB_Gpio.ReadPinResponse gpio_read_pin_response = 56; .PB_Gpio.WritePin gpio_write_pin = 57; + .PB_Gpio.GetOtgMode gpio_get_otg_mode = 72; + .PB_Gpio.GetOtgModeResponse gpio_get_otg_mode_response = 73; + .PB_Gpio.SetOtgMode gpio_set_otg_mode = 74; .PB_App.AppStateResponse app_state_response = 58; .PB_Property.GetRequest property_get_request = 61; .PB_Property.GetResponse property_get_response = 62; diff --git a/gpio.proto b/gpio.proto index 446ae14..236767b 100644 --- a/gpio.proto +++ b/gpio.proto @@ -25,6 +25,11 @@ enum GpioInputPull { DOWN = 2; }; +enum GpioOtgMode { + OFF = 0; + ON = 1; +}; + message SetPinMode { GpioPin pin = 1; GpioPinMode mode = 2; @@ -55,3 +60,14 @@ message WritePin { GpioPin pin = 1; uint32 value = 2; } + +message GetOtgMode { +}; + +message GetOtgModeResponse { + GpioOtgMode mode = 1; +}; + +message SetOtgMode { + GpioOtgMode mode = 1; +};