From ad021d4e5241b0833b1679025f7efb860851cfaf Mon Sep 17 00:00:00 2001 From: leeboby Date: Mon, 26 Aug 2024 11:55:33 +0800 Subject: [PATCH] examples: pwm.c: update for opi5ultra --- examples/pwm.c | 1 + wiringPi/wiringPi.c | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/pwm.c b/examples/pwm.c index 81b2f90..1be6a21 100644 --- a/examples/pwm.c +++ b/examples/pwm.c @@ -78,6 +78,7 @@ static void set_pwm_info(int pin) } break; case PI_MODEL_5_MAX: + case PI_MODEL_5_ULTRA: if (pin != 0 && pin != 1 && pin != 2 && pin != 8 && pin != 9 && pin != 17 && pin != 20 && pin != 21 && pin != 22 && pin !=23) { fprintf (stderr, "the pin you choose doesn't support hardware PWM\n") ; exit(1); diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 8019076..4172113 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -6569,6 +6569,7 @@ void rk3588_set_pwm_reg(int pin, rk3588_soc_info * rk3588_soc_info_ptr) printf("You can select wiringPi pin 2/5/6/7/17/18/21/22 for PWM pin.\n"); break; case PI_MODEL_5_MAX: + case PI_MODEL_5_ULTRA: printf("You can select wiringPi pin 0/1/2/8/9/17/20/21/22/23 for PWM pin.\n"); break; case PI_MODEL_CM5_TABLET: