driver_init.h 1.5 KB

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