Skip to content

Commit

Permalink
chromium_ec: Add full-width input module
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <dhs@frame.work>
  • Loading branch information
JohnAZoidberg committed Aug 1, 2024
1 parent b6b235c commit fbe6dc2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions framework_lib/src/chromium_ec/input_deck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ enum InputDeckMux {
/// C1 all the way left
/// B1 all the way left
/// Keyboard left
/// Full Width module
TopRow0 = 0,
/// C1 2nd-most left
/// Keyboard middle
Expand Down Expand Up @@ -38,7 +39,7 @@ pub enum InputModuleType {
Reserved3,
Reserved4,
Reserved5,
Reserved6,
FullWidth,
HubBoard,
GenericA,
GenericB,
Expand All @@ -58,7 +59,7 @@ impl From<u8> for InputModuleType {
3 => Self::Reserved3,
4 => Self::Reserved4,
5 => Self::Reserved5,
6 => Self::Reserved6,
6 => Self::FullWidth,
7 => Self::HubBoard,
8 => Self::GenericA,
9 => Self::GenericB,
Expand All @@ -84,7 +85,7 @@ impl InputModuleType {
Self::Reserved3 => 0,
Self::Reserved4 => 0,
Self::Reserved5 => 0,
Self::Reserved6 => 0,
Self::FullWidth => 8,
Self::HubBoard => 0,
Self::GenericA => 6,
Self::GenericB => 2,
Expand Down Expand Up @@ -202,6 +203,7 @@ pub struct TopRowPositions {
/// C1 all the way left
/// B1 all the way left
/// Keyboard left
/// Full Width module
pub pos0: InputModuleType,
/// C1 2nd-most left
/// Keyboard middle
Expand Down

0 comments on commit fbe6dc2

Please sign in to comment.