Ver código fonte

对调B、C霍尔IO,硬件保持和旧小牙盘一致。

Deyauo 5 meses atrás
pai
commit
0f42b64086

+ 1 - 1
3.BasicFunction/Source/canAppl.c

@@ -272,7 +272,7 @@ void  Can_voInitMC_Run(void)
     strncpy(MC_VerInfo.HW_Version, (char *)"SC20100101V1    ", 16); //长度不超过16
 
     // Software version
-    char chFwVersion[16]="V1r0r0_";
+    char chFwVersion[16]="V1r0r0_20250226";
  //   strncat(chFwVersion,COMPLIE_TIME,9); // Commit time COMPLIE_TIME
    // strncat(chFwVersion,(char *)"20250103 08:55:00",9);
     strncpy(MC_VerInfo.FW_Version, (char *)chFwVersion, 16);

+ 2 - 2
4.BasicHardwSoftwLayer/1.BasicHardwLayer/Include/UserGpio_Config.h

@@ -13,9 +13,9 @@
 
 #define Hall_HA_PORT()         DL_GPIO_readPins(GPIOA, DL_GPIO_PIN_8)// (GPIOB->idt &GPIO_PINS_0) //HA
 
-#define Hall_HB_PORT()          DL_GPIO_readPins(GPIOB, DL_GPIO_PIN_3)//(GPIOB->idt & GPIO_PINS_5)//HB
+#define Hall_HB_PORT()          DL_GPIO_readPins(GPIOB, DL_GPIO_PIN_2)//(GPIOB->idt & GPIO_PINS_5)//HB
 
-#define Hall_HC_PORT()          DL_GPIO_readPins(GPIOB, DL_GPIO_PIN_2)//(GPIOB->idt &GPIO_PINS_4)//HC
+#define Hall_HC_PORT()          DL_GPIO_readPins(GPIOB, DL_GPIO_PIN_3)//(GPIOB->idt &GPIO_PINS_4)//HC
 
 //#define  TIM_BikeSped_GetITStatus()  DL_TimerG_getPendingInterrupt(SPEED_INST) & DL_TIMERG_IIDX_OVERFLOW//tmr_interrupt_flag_get(TMR16,TMR_OVF_FLAG)