driver_init.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Code generated from Atmel Start.
  3. *
  4. * This file will be overwritten when reconfiguring your Atmel Start project.
  5. * Please copy examples or other code you want to keep to a separate file
  6. * to avoid losing it when reconfiguring.
  7. */
  8. #ifndef DRIVER_INIT_INCLUDED
  9. #define DRIVER_INIT_INCLUDED
  10. #include "atmel_start_pins.h"
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <hal_atomic.h>
  15. #include <hal_delay.h>
  16. #include <hal_gpio.h>
  17. #include <hal_init.h>
  18. #include <hal_io.h>
  19. #include <hal_sleep.h>
  20. #include <hal_adc_sync.h>
  21. #include <hal_i2c_m_sync.h>
  22. #include <hal_usart_async.h>
  23. extern struct adc_sync_descriptor ADC_0;
  24. extern struct i2c_m_sync_desc I2C_0;
  25. extern struct usart_async_descriptor TARGET_IO;
  26. void ADC_0_PORT_init(void);
  27. void ADC_0_CLOCK_init(void);
  28. void ADC_0_init(void);
  29. void I2C_0_CLOCK_init(void);
  30. void I2C_0_init(void);
  31. void I2C_0_PORT_init(void);
  32. void TARGET_IO_PORT_init(void);
  33. void TARGET_IO_CLOCK_init(void);
  34. void TARGET_IO_init(void);
  35. /**
  36. * \brief Perform system initialization, initialize pins and clocks for
  37. * peripherals
  38. */
  39. void system_init(void);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. #endif // DRIVER_INIT_INCLUDED