Skip to content

Commit

Permalink
Revert change to key_src setter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Aug 5, 2024
1 parent 4f90f39 commit 851de15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/PeriphDrivers/Source/TPU/tpu_reva.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ int MXC_TPU_RevA_Cipher_Config(mxc_tpu_reva_regs_t *tpu, mxc_tpu_reva_modesel_t
// ******************************* Function to Select the Source of the Cipher Key *************************************
int MXC_TPU_RevA_Cipher_KeySelect(mxc_tpu_reva_regs_t *tpu, mxc_tpu_reva_keysrc_t key_src)
{
MXC_SETFIELD(tpu->cipher_ctrl, MXC_F_TPU_REVA_CIPHER_CTRL_SRC,
key_src << MXC_F_TPU_REVA_CIPHER_CTRL_SRC_POS);
MXC_SETFIELD(tpu->cipher_ctrl, MXC_F_TPU_REVA_CIPHER_CTRL_SRC, key_src);
// Note: "key_src" enum is set with "S" definitions instead of "V" definitions, so shifting is not necessary

return E_SUCCESS;
}
Expand Down

0 comments on commit 851de15

Please sign in to comment.