Kaynağa Gözat

fix:PWM6和PWM7误用

alienwalker 3 yıl önce
ebeveyn
işleme
761ad1b324
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6 6
      application/src/luat_pwm_air105.c

+ 6 - 6
application/src/luat_pwm_air105.c

@@ -183,12 +183,12 @@ int luat_pwm_open(int channel, size_t period, size_t pulse,int pnum) {
 		case 5:
 			GPIO_Iomux(GPIOC_07, 2);
 			break;
-		case 6:
-			GPIO_Iomux(GPIOC_08, 2);
-			break;
-		case 7:
-			GPIO_Iomux(GPIOC_09, 2);
-			break;
+//		case 6:
+//			GPIO_Iomux(GPIOC_08, 2);
+//			break;
+//		case 7:
+//			GPIO_Iomux(GPIOC_09, 2);
+//			break;
 		default:
 			break;
 	}