driver_init.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_H_INCLUDED
  9. #define DRIVER_INIT_H_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. #include <hal_mac_async.h>
  24. #include <hal_can_async.h>
  25. extern struct adc_sync_descriptor ADC_0;
  26. #define CONF_ADC_0_CHANNEL_10 10
  27. extern struct i2c_m_sync_desc I2C_0;
  28. extern struct usart_async_descriptor TARGET_IO;
  29. extern struct mac_async_descriptor MACIF;
  30. extern struct can_async_descriptor CAN_0;
  31. void ADC_0_PORT_init(void);
  32. void ADC_0_CLOCK_init(void);
  33. void ADC_0_init(void);
  34. void I2C_0_CLOCK_init(void);
  35. void I2C_0_init(void);
  36. void I2C_0_PORT_init(void);
  37. void TARGET_IO_PORT_init(void);
  38. void TARGET_IO_CLOCK_init(void);
  39. void TARGET_IO_init(void);
  40. void MACIF_CLOCK_init(void);
  41. void MACIF_init(void);
  42. void MACIF_PORT_init(void);
  43. void CAN_0_PORT_init(void);
  44. void CAN_0_CLOCK_init(void);
  45. void CAN_0_init(void);
  46. void CAN_0_example(void);
  47. /**
  48. * \brief Perform system initialization, initialize pins and clocks for
  49. * peripherals
  50. */
  51. void system_init(void);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif // DRIVER_INIT_H_INCLUDED