Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
10 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* Teensyduino Core Library
  2. * http://www.pjrc.com/teensy/
  3. * Copyright (c) 2017 PJRC.COM, LLC.
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining
  6. * a copy of this software and associated documentation files (the
  7. * "Software"), to deal in the Software without restriction, including
  8. * without limitation the rights to use, copy, modify, merge, publish,
  9. * distribute, sublicense, and/or sell copies of the Software, and to
  10. * permit persons to whom the Software is furnished to do so, subject to
  11. * the following conditions:
  12. *
  13. * 1. The above copyright notice and this permission notice shall be
  14. * included in all copies or substantial portions of the Software.
  15. *
  16. * 2. If the Software is incorporated into a build system that allows
  17. * selection among a list of target devices, then similar target
  18. * devices manufactured by PJRC.COM must be included in the list of
  19. * target devices and selectable in the same manner.
  20. *
  21. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  25. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  26. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  27. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  28. * SOFTWARE.
  29. */
  30. MEMORY
  31. {
  32. FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K
  33. RAM (rwx) : ORIGIN = 0x1FFF8000, LENGTH = 64K
  34. }
  35. ENTRY(_VectorsFlash)
  36. SECTIONS
  37. {
  38. .text : {
  39. . = 0;
  40. KEEP(*(.vectors))
  41. *(.startup*)
  42. /* TODO: does linker detect startup overflow onto flashconfig? */
  43. . = 0x400;
  44. KEEP(*(.flashconfig*))
  45. *(.text*)
  46. *(.rodata*)
  47. . = ALIGN(4);
  48. KEEP(*(.init))
  49. . = ALIGN(4);
  50. __preinit_array_start = .;
  51. KEEP (*(.preinit_array))
  52. __preinit_array_end = .;
  53. __init_array_start = .;
  54. KEEP (*(SORT(.init_array.*)))
  55. KEEP (*(.init_array))
  56. __init_array_end = .;
  57. } > FLASH = 0xFF
  58. .ARM.exidx : {
  59. __exidx_start = .;
  60. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  61. __exidx_end = .;
  62. } > FLASH
  63. _etext = .;
  64. .usbdescriptortable (NOLOAD) : {
  65. /* . = ORIGIN(RAM); */
  66. . = ALIGN(512);
  67. *(.usbdescriptortable*)
  68. } > RAM
  69. .dmabuffers (NOLOAD) : {
  70. . = ALIGN(4);
  71. *(.dmabuffers*)
  72. } > RAM
  73. .usbbuffers (NOLOAD) : {
  74. . = ALIGN(4);
  75. *(.usbbuffers*)
  76. } > RAM
  77. .data : AT (_etext) {
  78. . = ALIGN(4);
  79. _sdata = .;
  80. *(.fastrun*)
  81. *(.data*)
  82. . = ALIGN(4);
  83. _edata = .;
  84. } > RAM
  85. .noinit (NOLOAD) : {
  86. *(.noinit*)
  87. } > RAM
  88. .bss : {
  89. . = ALIGN(4);
  90. _sbss = .;
  91. __bss_start__ = .;
  92. *(.bss*)
  93. *(COMMON)
  94. . = ALIGN(4);
  95. _ebss = .;
  96. __bss_end = .;
  97. __bss_end__ = .;
  98. } > RAM
  99. _estack = ORIGIN(RAM) + LENGTH(RAM);
  100. _teensy_model_identifier = 0x21;
  101. }