DEV_Config.h 886 B

12345678910111213141516171819202122232425262728293031323334
  1. /******************************************************************************
  2. **************************Hardware interface layer*****************************
  3. * | file : DEV_Config.h
  4. * | version : V1.0
  5. * | date : 2020-06-16
  6. * | function : Provide the hardware underlying interface
  7. ******************************************************************************/
  8. #ifndef _DEV_CONFIG_H_
  9. #define _DEV_CONFIG_H_
  10. #include <SPI.h>
  11. #include <Wire.h>
  12. #include <avr/pgmspace.h>
  13. /**
  14. * data
  15. **/
  16. #define UBYTE uint8_t
  17. #define UWORD uint16_t
  18. #define UDOUBLE uint32_t
  19. #define IIC_ADR 0X3C
  20. #define IIC_CMD 0X00
  21. #define IIC_RAM 0X40
  22. uint8_t System_Init(void);
  23. // void DEV_SPI_WriteByte(uint8_t DATA);
  24. void I2C_Write_Byte(uint8_t value, uint8_t Cmd);
  25. void Driver_Delay_ms(unsigned long xms);
  26. void Driver_Delay_us(int xus);
  27. #endif