Skip to content

Commit

Permalink
tests/psoc6: Modified Timer period in tests.
Browse files Browse the repository at this point in the history
Signed-off-by: IFX-Anusha <Anusha.TR@infineon.com>
  • Loading branch information
IFX-Anusha committed Apr 12, 2024
1 parent 894b21e commit dc37893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions tests/psoc6/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def call_periodic(timer):


def test_oneshot():
# Periodic timer
# Oneshot timer
global oneshot_triggered
tim_oneshot = Timer(0, period=1000, mode=Timer.ONE_SHOT, callback=call_oneshot)

Expand All @@ -28,13 +28,13 @@ def test_oneshot():
print("Oneshot timer triggered")
oneshot_triggered = False
finally:
tim_oneshot.deinit() # Deinitialize the periodic timer
tim_oneshot.deinit() # Deinitialize the Oneshot timer


def test_periodic():
# Periodic timer
global periodic_triggered
tim_periodic = Timer(0, period=1, mode=Timer.PERIODIC, callback=call_periodic)
tim_periodic = Timer(0, period=1000, mode=Timer.PERIODIC, callback=call_periodic)

try:
# Wait for 15 seconds
Expand Down
7 changes: 0 additions & 7 deletions tests/psoc6/timer.py.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,3 @@ Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered
Periodic timer triggered

0 comments on commit dc37893

Please sign in to comment.