2023-08-22 06:46 AM - edited 2023-08-22 06:47 AM
hi everyone.
I'm trying to index different GPIO ports and pins.
#define STEP1_HALF1_PORT GPIOA
#define STEP2_HALF1_PORT GPIOB
#define STEP3_HALF1_PORT GPIOA
#define STEP4_HALF1_PORT GPIOC
#define STEP5_HALF1_PORT GPIOB
GPIO_TypeDef *Half1StepPortNum[5] = {
STEP1_HALF1_PORT,
STEP2_HALF1_PORT,
STEP3_HALF1_PORT,
STEP4_HALF1_PORT,
STEP5_HALF1_PORT };
BUT the code does not work. and stuck
2023-08-22 06:54 AM
The code you presented is fine. The issue is somewhere else.