mcuconf.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. #ifndef MCUCONF_H
  14. #define MCUCONF_H
  15. /*
  16. * AVR drivers configuration.
  17. * The following settings override the default settings present in
  18. * the various device driver implementation headers.
  19. * Note that the settings for each driver only have effect if the driver
  20. * is enabled in halconf.h.
  21. */
  22. /*
  23. * ADC driver system settings.
  24. */
  25. #define AVR_ADC_USE_ADC1 FALSE
  26. /*
  27. * EXT drivers system settings.
  28. */
  29. #define AVR_EXT_USE_INT0 FALSE
  30. #define AVR_EXT_USE_INT1 FALSE
  31. #define AVR_EXT_USE_INT2 FALSE
  32. #define AVR_EXT_USE_INT3 FALSE
  33. #define AVR_EXT_USE_INT4 FALSE
  34. #define AVR_EXT_USE_INT5 FALSE
  35. /*
  36. * PCINT driver system settings.
  37. */
  38. #define AVR_EXT_USE_PCINT0 FALSE
  39. #define AVR_EXT_USE_PCINT1 FALSE
  40. #define AVR_EXT_USE_PCINT2 FALSE
  41. #define AVR_EXT_USE_PCINT3 FALSE
  42. #define AVR_EXT_USE_PCINT4 FALSE
  43. #define AVR_EXT_USE_PCINT5 FALSE
  44. #define AVR_EXT_USE_PCINT6 FALSE
  45. #define AVR_EXT_USE_PCINT7 FALSE
  46. #define AVR_EXT_USE_PCINT8 FALSE
  47. #define AVR_EXT_USE_PCINT9 FALSE
  48. #define AVR_EXT_USE_PCINT10 FALSE
  49. /*
  50. * CAN driver system settings.
  51. */
  52. /*
  53. * MAC driver system settings.
  54. */
  55. /*
  56. * PWM driver system settings.
  57. */
  58. #define AVR_PWM_USE_TIM1 FALSE
  59. #define AVR_PWM_USE_TIM2 FALSE
  60. #define AVR_PWM_USE_TIM3 FALSE
  61. #define AVR_PWM_USE_TIM4 FALSE
  62. #define AVR_PWM_USE_TIM5 FALSE
  63. /*
  64. * ICU driver system settings.
  65. */
  66. #define AVR_ICU_USE_TIM1 FALSE
  67. #define AVR_ICU_USE_TIM3 FALSE
  68. #define AVR_ICU_USE_TIM4 FALSE
  69. #define AVR_ICU_USE_TIM5 FALSE
  70. /*
  71. * GPT driver system settings.
  72. */
  73. #define AVR_GPT_USE_TIM1 FALSE
  74. #define AVR_GPT_USE_TIM2 FALSE
  75. #define AVR_GPT_USE_TIM3 FALSE
  76. #define AVR_GPT_USE_TIM4 FALSE
  77. #define AVR_GPT_USE_TIM5 FALSE
  78. /*
  79. * UART driver system settings.
  80. */
  81. #define AVR_UART_USE_USART1 TRUE
  82. #define AVR_UART_USE_USART2 FALSE
  83. /*
  84. * SERIAL driver system settings.
  85. */
  86. #define AVR_SERIAL_USE_USART0 FALSE
  87. #define AVR_SERIAL_USE_USART1 FALSE
  88. /*
  89. * I2C driver system settings.
  90. */
  91. #define AVR_I2C_USE_I2C1 FALSE
  92. /*
  93. * SPI driver system settings.
  94. */
  95. #define AVR_SPI_USE_SPI1 FALSE
  96. #define AVR_SPI_USE_16BIT_POLLED_EXCHANGE FALSE
  97. /*
  98. * USB driver system settings.
  99. */
  100. #define AVR_USB_USE_USB1 FALSE
  101. #define AVR_USB_USE_NAMED_ADDRESS_SPACES FALSE
  102. #endif /* MCUCONF_H */