Skip to content

Commit

Permalink
Merge remote-tracking branch 'ofw/dev' into mntm-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Sep 5, 2024
2 parents 8a799f3 + 6c7c0d5 commit b7d5881
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions flipper.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 16 additions & 0 deletions gpio.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ enum GpioInputPull {
DOWN = 2;
};

enum GpioOtgMode {
OFF = 0;
ON = 1;
};

message SetPinMode {
GpioPin pin = 1;
GpioPinMode mode = 2;
Expand Down Expand Up @@ -55,3 +60,14 @@ message WritePin {
GpioPin pin = 1;
uint32 value = 2;
}

message GetOtgMode {
};

message GetOtgModeResponse {
GpioOtgMode mode = 1;
};

message SetOtgMode {
GpioOtgMode mode = 1;
};

0 comments on commit b7d5881

Please sign in to comment.