Skip to content

Commit

Permalink
Fixed minor bug with padframe driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Isachi committed Sep 2, 2024
1 parent 73c1bc9 commit 7f1b9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/include/padframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void write_padframe_pen(uint8_t cfg_reg_offset, uint8_t pen){

void write_padframe_psel(uint8_t cfg_reg_offset, uint8_t psel){
uint32_t config_reg = readw(PADFRAME_BASE_ADDRESS + cfg_reg_offset);
config_reg = (config_reg & ~0x10 ) | ((pen & 0x1) << 4);
config_reg = (config_reg & ~0x10 ) | ((psel & 0x1) << 4);
writew(config_reg, PADFRAME_BASE_ADDRESS + cfg_reg_offset);
}

Expand Down

0 comments on commit 7f1b9cc

Please sign in to comment.