driver_init.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_flash.h>
  22. #include <hal_i2c_m_sync.h>
  23. #include <hal_usart_async.h>
  24. #include <hal_can_async.h>
  25. extern struct adc_sync_descriptor ADC_0;
  26. extern struct flash_descriptor FLASH_0;
  27. extern struct i2c_m_sync_desc I2C_0;
  28. extern struct usart_async_descriptor TARGET_IO;
  29. extern struct can_async_descriptor CAN_0;
  30. void ADC_0_PORT_init(void);
  31. void ADC_0_CLOCK_init(void);
  32. void ADC_0_init(void);
  33. void FLASH_0_init(void);
  34. void FLASH_0_CLOCK_init(void);
  35. void I2C_0_CLOCK_init(void);
  36. void I2C_0_init(void);
  37. void I2C_0_PORT_init(void);
  38. void TARGET_IO_PORT_init(void);
  39. void TARGET_IO_CLOCK_init(void);
  40. void TARGET_IO_init(void);
  41. /**
  42. * \brief Perform system initialization, initialize pins and clocks for
  43. * peripherals
  44. */
  45. void system_init(void);
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif // DRIVER_INIT_INCLUDED