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 cccf7b6 commit c9977f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions tests/psoc6/hw_ext/adc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@
adc_pin_mid = "P10_3"
adc_pin_max = "P10_0"
adc_wrong_pin_name = "P13_7"
# Enable after DUT setup
# print("SKIP")
# raise SystemExit
elif "CY8CPROTO-063-BLE" in machine:
adc_pin_gnd = "P10_2"
adc_pin_mid = "P10_3"
adc_pin_max = "P10_4"
adc_wrong_pin_name = "P13_7"
# print("SKIP")
# raise SystemExit

# 0.35V
tolerance_uv = 350000
Expand Down Expand Up @@ -63,17 +58,6 @@ 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)
adc1 = block.connect(3)
Expand Down
2 changes: 0 additions & 2 deletions tests/psoc6/hw_ext/adc.py.exp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Invalid ADC Pin
TypeError: Specified ADC id not supported. Currently only block 0 is configured!
TypeError: Invalid bits. Current ADC configuration supports only 12 bits resolution!

Expected voltage - 0 (uV) is approx same as obtained voltage(uV): True
Expected voltage - 0 (raw) is approx same as obtained voltage(raw): True
Expand Down

0 comments on commit c9977f8

Please sign in to comment.