Skip to content

Commit

Permalink
[am62a] added the enabled GPIO1 pins support in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sinha-shreyash committed Apr 2, 2024
1 parent bb698b7 commit a0a1a9a
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/button_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import time

# Pin Definitons:
led_pin = 12 # Board pin 12
led_pin = 11 # Board pin 12
but_pin = 18 # Board pin 18


Expand Down
2 changes: 1 addition & 1 deletion samples/button_interrupt.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import time

# Pin Definitions:
led_pin_1 = 12
led_pin_1 = 11
led_pin_2 = 13
but_pin = 18

Expand Down
2 changes: 1 addition & 1 deletion samples/button_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import time

# Pin Definitons:
led_pin = 12 # BOARD pin 12
led_pin = 11 # BOARD pin 12
but_pin = 18 # BOARD pin 18


Expand Down
2 changes: 1 addition & 1 deletion samples/simple_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

def main():
# Pin Setup:
GPIO.setmode(GPIO.BCM) # BCM pin-numbering scheme from Raspberry Pi
GPIO.setmode(GPIO.BOARD) # BCM pin-numbering scheme from Raspberry Pi
# set pin as an output pin with optional initial state of HIGH
GPIO.setup(output_pin, GPIO.OUT, initial=GPIO.HIGH)

Expand Down
2 changes: 1 addition & 1 deletion samples/test_all_pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"hw_pwm": (32, 33, 36), # HW PWMs to skip for this test
},
"AM62A_SK": {
"unimplemented": (7, 8, 10, 11, 19, 21, 23, 24, 26, 38, 40),
"unimplemented": (7,),
"input_only": (),
"hw_pwm": (12, 33, 35, 36), # HW PWMs to skip for this test
},
Expand Down
12 changes: 12 additions & 0 deletions samples/test_all_pins_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,27 @@

am62a_sk_pin_defs = [
# BOARD BCM SOC
# (7, 4, "GPIO1_30"),
(8, 14, "GPIO1_25"),
(10, 15, "GPIO1_24"),
# (11, 17, "GPIO1_11"),
# (12, 18, "GPIO1_14"),
(13, 27, "GPIO0_42"),
(15, 22, "GPIO1_22"),
(16, 23, "GPIO0_38"),
(18, 24, "GPIO0_39"),
(19, 10, "GPIO1_18"),
(21, 9, "GPIO1_19"),
# (22, 25, "GPIO0_14"),
(23, 11, "GPIO1_17"),
# (24, 8, "GPIO1_15"),
# (26, 7, "GPIO1_16"),
(29, 5, "GPIO0_36"),
(31, 6, "GPIO0_33"),
(32, 12, "GPIO0_40"),
(37, 26, "GPIO0_41"),
(38, 20, "GPIO1_08"),
(40, 21, "GPIO1_07"),
]

am62p_sk_pin_defs = [
Expand Down
23 changes: 22 additions & 1 deletion samples/test_all_pins_pwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,28 @@
"hw_pwm": [32, 33, 36], # Designated HW PWM pins
},
"AM62A_SK": {
"sw_pwm": [13, 15, 16, 18, 22, 29, 31, 32, 37], # Can be any valid GPIO pins
"sw_pwm": [
8,
10,
11,
12,
13,
15,
16,
18,
19,
21,
22,
23,
24,
26,
29,
31,
32,
37,
38,
40,
], # Can be any valid GPIO pins
"hw_pwm": [12, 33, 35, 36], # Designated HW PWM pins
},
"AM62P_SK": {
Expand Down

0 comments on commit a0a1a9a

Please sign in to comment.