Files
AC-Controller/STM32_2021-1-15/Device/interface_595.h
T
kevin c70a004b2a 添加MDK工程
程序存在一个问题:开机没有自检
添加立创PCB

Signed-off-by: kevin <kevin@lmve.net>
2021-03-12 04:45:11 +08:00

14 lines
549 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef INTERFACE595_H_
#define INTERFACE595_H_
#include "c.h"
#define hc595_ds(x) HAL_GPIO_WritePin(HC595_DS_GPIO_Port,HC595_DS_Pin,x)
#define hc595_sc(x) HAL_GPIO_WritePin(HC595_SC_GPIO_Port,HC595_SC_Pin,x)
#define hc595_sc_swing(x) HAL_GPIO_WritePin(HC595_SC_SWING_GPIO_Port,HC595_SC_SWING_Pin,x)
#define hc595_sh(x) HAL_GPIO_WritePin(HC595_SH_GPIO_Port,HC595_SH_Pin,x)
#define read_hc595_ds HAL_GPIO_ReadPin(HC595_DS_GPIO_Port,HC595_DS_Pin) //×xÈ¡ÒýÄ_ëŠÆ½
void ds_in_or_out(char a);
uint8_t Read_Ds();
#endif