Skip to content

Commit

Permalink
tests/psoc6/adc: Removed redundant adc tests.
Browse files Browse the repository at this point in the history
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Apr 16, 2024
1 parent 2ebf645 commit 4b72e6e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 69 deletions.
26 changes: 0 additions & 26 deletions tests/psoc6/adc.py

This file was deleted.

3 changes: 0 additions & 3 deletions tests/psoc6/adc.py.exp

This file was deleted.

36 changes: 0 additions & 36 deletions tests/psoc6/adcblock.py

This file was deleted.

4 changes: 0 additions & 4 deletions tests/psoc6/adcblock.py.exp

This file was deleted.

10 changes: 10 additions & 0 deletions tests/psoc6/hw_ext/adc.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ def validate_adc_raw_value(adc_pin, exp_volt, act_volt):
except:
print("Invalid ADC Pin\n")

try:
adcBlock = ADCBlock(1)
except:
print("TypeError: Specified ADC id not supported. Currently only block 0 is configured!")

try:
adcBlock = ADCBlock(0, bits=10)
except:
print("TypeError: Invalid bits. Current ADC configuration supports only 12 bits resolution!")


block = ADCBlock(0, bits=12)
# ADCBlock.connect(channel)
Expand Down

0 comments on commit 4b72e6e

Please sign in to comment.