Skip to content

Instantly share code, notes, and snippets.

@stan754
stan754 / CalculateIWDG.py
Created December 7, 2023 09:34
Calculate IWDG Reload value
import argparse
from tabulate import tabulate
parser = argparse.ArgumentParser(description='Calculate IWDG RLR')
parser.add_argument("-ms", help="Reload time in ms", default=20 , type=int)
parser.add_argument("-pr", help="PR value as decimal", default=1, type=int)
parser.add_argument("-lsi", help="LSI Clock in Hz", default=40000, type=int)
args = parser.parse_args()

Keybase proof

I hereby claim:

  • I am stan754 on github.
  • I am stan754 (https://keybase.io/stan754) on keybase.
  • I have a public key ASC079pNx_z8L4_IWYCSgwc21g4lRKxCOaRclhUtlgl8fgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am stan754 on github.
  • I am stan754 (https://keybase.io/stan754) on keybase.
  • I have a public key ASC36OGUE2KYCpVMdfr09rzh8BVEY49XHCjgGPPd0zBbxAo

To claim this, I am signing this object: