Communication.h 669 B

12345678910111213141516171819202122
  1. #ifndef __COMMUNICATION_H__
  2. #define __COMMUNICATION_H__
  3. #include "at32f403a_407.h"
  4. #if 0
  5. #define ADI_PAR_CS_PIN (1 << 1)
  6. #define ADI_PART_CS_PIN_OUT PM7 &= ~(ADI_PAR_CS_PIN);
  7. #define ADI_PART_CS_LOW P7 &= ~ADI_PAR_CS_PIN;
  8. #define ADI_PART_CS_HIGH P7 |= ADI_PAR_CS_PIN;
  9. #define GPIO1_PIN (1 << 3)
  10. #define GPIO1_STATE (P0 & GPIO1_PIN)
  11. #endif
  12. /******************************************************************************/
  13. /* Functions Prototypes */
  14. /******************************************************************************/
  15. #endif // __COMMUNICATION_H__