完成度大概98.99%
This commit is contained in:
@@ -19,6 +19,12 @@ void my_code();
|
||||
#define HC595_SCK2(x) HAL_GPIO_WritePin(HC595_SLK2_GPIO_Port, HC595_SLK2_Pin, x)
|
||||
#define READ_HC595_DCK HAL_GPIO_ReadPin(HC595_DLK_GPIO_Port,HC595_DLK_Pin)
|
||||
|
||||
#define MOT_IN1(x) HAL_GPIO_WritePin(MOT_IN1_GPIO_Port, MOT_IN1_Pin, x)
|
||||
#define MOT_IN2(x) HAL_GPIO_WritePin(MOT_IN2_GPIO_Port, MOT_IN2_Pin, x)
|
||||
|
||||
#define READ_MOT_IN1 HAL_GPIO_ReadPin(MOT_IN1_GPIO_Port, MOT_IN1_Pin)
|
||||
#define READ_MOT_IN2 HAL_GPIO_ReadPin(MOT_IN2_GPIO_Port, MOT_IN2_Pin)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char begin;
|
||||
|
||||
Reference in New Issue
Block a user