Browse Source

Добавил запись на SD и 2 буфера. Пашет. Далее АЦП...

amgladtsin 4 years ago
parent
commit
c6dba224be
100 changed files with 8047 additions and 2649 deletions
  1. 47 43
      STMF103_print_board.pcb
  2. 47 43
      STMF103_print_board.pcb-
  3. BIN
      STMF103_print_board.pdf
  4. BIN
      STMF103_print_board.xcf
  5. BIN
      STMF103_print_board_signs.png
  6. BIN
      STMF103_print_board_top.png
  7. 0 198
      stm32f1_02/build/main.hex
  8. 0 2318
      stm32f1_02/build/main.lst
  9. BIN
      stm32f1_02/build/main.o
  10. 0 0
      stm32f1_02_systick_SD/Makefile
  11. 6 0
      stm32f1_02_systick_SD/build/gdb.scr
  12. BIN
      stm32f1_02/build/main.bin
  13. BIN
      stm32f1_02/build/main.elf
  14. 218 0
      stm32f1_02_systick_SD/build/main.hex
  15. 2492 0
      stm32f1_02_systick_SD/build/main.lst
  16. BIN
      stm32f1_02_systick_SD/build/main.o
  17. BIN
      stm32f1_02/build/startup_stm32f10x_ld.o
  18. 0 0
      stm32f1_02_systick_SD/gdb.txt
  19. 0 0
      stm32f1_02_systick_SD/inc/core_cm3.h
  20. 0 0
      stm32f1_02_systick_SD/inc/misc.h
  21. 0 0
      stm32f1_02_systick_SD/inc/stm32_eval.h
  22. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x.h
  23. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_adc.h
  24. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_bkp.h
  25. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_can.h
  26. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_cec.h
  27. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_crc.h
  28. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_dac.h
  29. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_dbgmcu.h
  30. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_dma.h
  31. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_exti.h
  32. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_flash.h
  33. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_fsmc.h
  34. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_gpio.h
  35. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_i2c.h
  36. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_iwdg.h
  37. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_pwr.h
  38. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_rcc.h
  39. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_rtc.h
  40. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_sdio.h
  41. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_spi.h
  42. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_tim.h
  43. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_usart.h
  44. 0 0
      stm32f1_02_systick_SD/inc/stm32f10x_wwdg.h
  45. 0 0
      stm32f1_02_systick_SD/inc/system_stm32f10x.h
  46. 0 0
      stm32f1_02_systick_SD/lib/core_cm3.c
  47. 0 0
      stm32f1_02_systick_SD/lib/misc.c
  48. 0 0
      stm32f1_02_systick_SD/lib/stm32_eval.c
  49. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_adc.c
  50. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_bkp.c
  51. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_can.c
  52. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_cec.c
  53. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_crc.c
  54. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_dac.c
  55. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_dbgmcu.c
  56. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_dma.c
  57. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_exti.c
  58. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_flash.c
  59. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_fsmc.c
  60. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_gpio.c
  61. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_i2c.c
  62. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_iwdg.c
  63. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_pwr.c
  64. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_rcc.c
  65. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_rtc.c
  66. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_sdio.c
  67. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_spi.c
  68. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_tim.c
  69. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_usart.c
  70. 0 0
      stm32f1_02_systick_SD/lib/stm32f10x_wwdg.c
  71. 0 0
      stm32f1_02_systick_SD/lib/system_stm32f10x.c
  72. 83 46
      stm32f1_02/main.c
  73. 0 0
      stm32f1_02_systick_SD/main.c1
  74. 0 0
      stm32f1_02_systick_SD/main.h
  75. 0 0
      stm32f1_02_systick_SD/megacode.c
  76. 0 0
      stm32f1_02_systick_SD/readme.txt
  77. 0 0
      stm32f1_02_systick_SD/source/main.c
  78. 0 0
      stm32f1_02_systick_SD/source/startup_stm32f10x_ld.s
  79. 0 0
      stm32f1_02_systick_SD/stm32_flash.ld
  80. 0 0
      stm32f1_02_systick_SD/stm32f0xx_conf.h
  81. 0 0
      stm32f1_02_systick_SD/stm32f0xx_it.c
  82. 0 0
      stm32f1_02_systick_SD/stm32f0xx_it.h
  83. 0 0
      stm32f1_02_systick_SD/stm32f10x_conf.h
  84. 0 0
      stm32f1_02_systick_SD/stm32f10x_it.c
  85. 0 0
      stm32f1_02_systick_SD/stm32f10x_it.h
  86. 0 0
      stm32f1_02_systick_SD/system_stm32f0xx.c
  87. 0 0
      stm32f1_02_systick_SD/system_stm32f10x.c
  88. 31 0
      stm32f1_03/Makefile
  89. 6 0
      stm32f1_03/build/gdb.scr
  90. BIN
      stm32f1_03/build/main.bin
  91. BIN
      stm32f1_03/build/main.elf
  92. 218 0
      stm32f1_03/build/main.hex
  93. 2492 0
      stm32f1_03/build/main.lst
  94. BIN
      stm32f1_03/build/main.o
  95. BIN
      stm32f1_03/build/startup_stm32f10x_ld.o
  96. 1 1
      stm32f1_02/build/gdb.scr
  97. 1818 0
      stm32f1_03/inc/core_cm3.h
  98. 220 0
      stm32f1_03/inc/misc.h
  99. 368 0
      stm32f1_03/inc/stm32_eval.h
  100. 0 0
      stm32f1_03/inc/stm32f10x.h

+ 47 - 43
STMF103_print_board.pcb

@@ -788,48 +788,48 @@ Symbol['~' 12.00mil]
 Attribute("PCB::grid::unit" "mil")
 Attribute("PCB::grid::size" "100.00mil")
 Via[39.2500mm 28.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[44.0000mm 21.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[44.0000mm 26.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[34.2500mm 36.0000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[43.2500mm 36.0000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[43.2500mm 45.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[34.2500mm 45.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 10.6500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 13.1900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 15.7300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 53.8300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 51.2900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 48.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 46.2100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 43.6700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 41.1300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 38.5900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 36.0500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 33.5100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 30.9700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 28.4300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 25.8900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 23.3500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 20.8100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 18.2700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 10.6500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 13.1900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 15.7300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 53.8300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 51.2900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 48.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 46.2100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 43.6700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 41.1300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 38.5900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 36.0500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 33.5100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 30.9700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 28.4300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 25.8900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 23.3500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 20.8100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 18.2700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[44.0000mm 21.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[44.0000mm 26.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[34.2500mm 36.0000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[43.2500mm 36.0000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[43.2500mm 45.5000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[34.2500mm 45.5000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 10.6500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 13.1900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 15.7300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 53.8300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 51.2900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 48.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 46.2100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 43.6700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 41.1300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 38.5900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 36.0500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 33.5100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 30.9700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 28.4300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 25.8900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 23.3500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 20.8100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 18.2700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 10.6500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 13.1900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 15.7300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 53.8300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 51.2900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 48.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 46.2100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 43.6700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 41.1300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 38.5900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 36.0500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 33.5100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 30.9700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 28.4300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 25.8900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 23.3500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 20.8100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 18.2700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
 Layer(1 "top")
 (
 	Line[1250.00mil 21.2500mm 31.2500mm 20.7500mm 0.3000mm 0.4000mm "clearline"]
@@ -890,7 +890,7 @@ Layer(1 "top")
 	Line[33.2500mm 44.5000mm 34.2500mm 45.5000mm 0.3000mm 0.4000mm "clearline"]
 	Line[33.2500mm 43.5000mm 33.2500mm 44.5000mm 0.3000mm 0.4000mm "clearline"]
 	Line[38.0000mm 37.2500mm 38.0000mm 43.0000mm 0.3000mm 0.4000mm "clearline"]
-	Line[35.2500mm 43.0000mm 41.0000mm 43.0000mm 0.3000mm 1.5240mm "clearline"]
+	Line[35.2500mm 43.0000mm 41.0000mm 43.0000mm 0.3000mm 60.00mil "clearline"]
 	Line[41.0000mm 38.5000mm 41.0000mm 44.2500mm 0.3000mm 0.4000mm "clearline"]
 	Line[38.0000mm 35.2500mm 38.0000mm 37.2500mm 0.3000mm 0.2000mm "clearline"]
 	Line[41.0000mm 44.2500mm 41.0000mm 46.2500mm 0.3000mm 0.2000mm "clearline"]
@@ -1135,6 +1135,10 @@ Layer(9 "silk")
 )
 Layer(10 "silk")
 (
+	Line[24.3900mm 56.3700mm 24.3900mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[54.8700mm 56.3700mm 54.8700mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[24.3900mm 8.1100mm 54.8700mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[24.3900mm 56.3700mm 54.8700mm 56.3700mm 0.3000mm 2.0000mm "clearline"]
 	Text[28.2500mm 14.5000mm 0 150 "PA0" "clearline"]
 	Text[28.5000mm 32.5000mm 0 150 "PA7" "clearline"]
 	Text[28.5000mm 17.0000mm 0 150 "PA1" "clearline"]

+ 47 - 43
STMF103_print_board.pcb-

@@ -788,48 +788,48 @@ Symbol['~' 12.00mil]
 Attribute("PCB::grid::unit" "mil")
 Attribute("PCB::grid::size" "100.00mil")
 Via[39.2500mm 28.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[44.0000mm 21.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[44.0000mm 26.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[34.2500mm 36.0000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[43.2500mm 36.0000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[43.2500mm 45.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[34.2500mm 45.5000mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 10.6500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 13.1900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 15.7300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 53.8300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 51.2900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 48.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 46.2100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 43.6700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 41.1300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 38.5900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 36.0500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 33.5100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 30.9700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 28.4300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 25.8900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 23.3500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 20.8100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[26.9300mm 18.2700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 10.6500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 13.1900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 15.7300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 53.8300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 51.2900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 48.7500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 46.2100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 43.6700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 41.1300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 38.5900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 36.0500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 33.5100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 30.9700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 28.4300mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 25.8900mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 23.3500mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 20.8100mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
-Via[52.3300mm 18.2700mm 1.5000mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[44.0000mm 21.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[44.0000mm 26.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[34.2500mm 36.0000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[43.2500mm 36.0000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[43.2500mm 45.5000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[34.2500mm 45.5000mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 10.6500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 13.1900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 15.7300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 53.8300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 51.2900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 48.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 46.2100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 43.6700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 41.1300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 38.5900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 36.0500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 33.5100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 30.9700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 28.4300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 25.8900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 23.3500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 20.8100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[26.9300mm 18.2700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 10.6500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 13.1900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 15.7300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 53.8300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 51.2900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 48.7500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 46.2100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 43.6700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 41.1300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 38.5900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 36.0500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 33.5100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 30.9700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 28.4300mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 25.8900mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 23.3500mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 20.8100mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
+Via[52.3300mm 18.2700mm 2.2620mm 0.4000mm 0.0000 0.5000mm "" ""]
 Layer(1 "top")
 (
 	Line[1250.00mil 21.2500mm 31.2500mm 20.7500mm 0.3000mm 0.4000mm "clearline"]
@@ -890,7 +890,7 @@ Layer(1 "top")
 	Line[33.2500mm 44.5000mm 34.2500mm 45.5000mm 0.3000mm 0.4000mm "clearline"]
 	Line[33.2500mm 43.5000mm 33.2500mm 44.5000mm 0.3000mm 0.4000mm "clearline"]
 	Line[38.0000mm 37.2500mm 38.0000mm 43.0000mm 0.3000mm 0.4000mm "clearline"]
-	Line[35.2500mm 43.0000mm 41.0000mm 43.0000mm 0.3000mm 1.5240mm "clearline"]
+	Line[35.2500mm 43.0000mm 41.0000mm 43.0000mm 0.3000mm 60.00mil "clearline"]
 	Line[41.0000mm 38.5000mm 41.0000mm 44.2500mm 0.3000mm 0.4000mm "clearline"]
 	Line[38.0000mm 35.2500mm 38.0000mm 37.2500mm 0.3000mm 0.2000mm "clearline"]
 	Line[41.0000mm 44.2500mm 41.0000mm 46.2500mm 0.3000mm 0.2000mm "clearline"]
@@ -1135,6 +1135,10 @@ Layer(9 "silk")
 )
 Layer(10 "silk")
 (
+	Line[24.3900mm 56.3700mm 24.3900mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[54.8700mm 56.3700mm 54.8700mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[24.3900mm 8.1100mm 54.8700mm 8.1100mm 0.3000mm 2.0000mm "clearline"]
+	Line[24.3900mm 56.3700mm 54.8700mm 56.3700mm 0.3000mm 2.0000mm "clearline"]
 	Text[28.2500mm 14.5000mm 0 150 "PA0" "clearline"]
 	Text[28.5000mm 32.5000mm 0 150 "PA7" "clearline"]
 	Text[28.5000mm 17.0000mm 0 150 "PA1" "clearline"]

BIN
STMF103_print_board.pdf


BIN
STMF103_print_board.xcf


BIN
STMF103_print_board_signs.png


BIN
STMF103_print_board_top.png


+ 0 - 198
stm32f1_02/build/main.hex

@@ -1,198 +0,0 @@
-:020000040800F2
-:1000000000280020C50B0008090C0008090C000896
-:10001000090C0008090C0008090C00080000000089
-:10002000000000000000000000000000090C0008B3
-:10003000090C000800000000090C0008A50A0008CF
-:10004000090C0008090C0008090C0008090C00083C
-:10005000090C0008090C0008090C0008090C00082C
-:10006000090C0008090C0008090C0008090C00081C
-:10007000090C0008090C0008090C0008090C00080C
-:10008000090C0008090C0008090C0008090C0008FC
-:10009000090C0008090C0008090C0008090C0008EC
-:1000A000090C0008090C0008090C0008090C0008DC
-:1000B000090C0008090C000800000000090C0008E9
-:1000C000090C00080000000000000000090C0008F6
-:1000D00000000000090C0008090C000800000000E6
-:1000E000090C0008090C0008090C000800000000B9
-:1000F0000000000000000000000000000000000000
-:0C01000000000000000000005FF808F1A3
-:10010C0080B500AF154A154B1B6843F00103136013
-:10011C001249124B5A68124B13404B600F4A0F4B4B
-:10012C001B6823F0847323F4803313600B4A0B4B4E
-:10013C001B6823F480231360084A084B5B6823F484
-:10014C00FE035360054B4FF41F029A6000F078F8E1
-:10015C00044B4FF000629A6000BF80BD001002405B
-:10016C000000FFF800ED00E080B485B000AF002384
-:10017C00FB600023BB6000237B602C4B5B6803F0AF
-:10018C000C03FB60FB68042B07D0082B09D0002B59
-:10019C0033D1274B274A1A6033E0254B254A1A6086
-:1001AC002FE0224B5B6803F47013BB601F4B5B6842
-:1001BC0003F480337B60BB689B0C0233BB607B68B1
-:1001CC00002B06D1BB681C4A02FB03F3184A1360D0
-:1001DC0017E0164B5B6803F40033002B06D0BB68AA
-:1001EC00154A02FB03F3124A13600AE0BB68114A7A
-:1001FC0002FB03F30E4A136003E00D4B0D4A1A6029
-:10020C0000BF0A4B5B6803F0F0031B090B4AD35C7D
-:10021C00DBB2FB60064B1A68FB6822FA03F3044A54
-:10022C00136000BF1437BD4680BC704700100240FD
-:10023C000000002000127A0000093D00040000209C
-:10024C0080B500AF00F002F800BF80BD80B483B071
-:10025C0000AF00237B6000233B603A4A394B1B689C
-:10026C0043F480331360374B1B6803F400333B605B
-:10027C007B6801337B603B68002B03D17B68B3F553
-:10028C00A06FF0D12F4B1B6803F40033002B02D06E
-:10029C0001233B6001E000233B603B68012B4BD109
-:1002AC00294A294B1B6843F010031360264A264B3E
-:1002BC001B6823F003031360234A234B1B6843F092
-:1002CC00020313601F4A1F4B5B6853601D4A1D4B92
-:1002DC005B6853601B4A1B4B5B6843F48063536041
-:1002EC00184A184B5B6823F47C135360154A154B62
-:1002FC005B6843F4E8135360124A124B1B6843F0DB
-:10030C008073136000BF0F4B1B6803F00073002B4E
-:10031C00F9D00C4A0B4B5B6823F003035360094A7A
-:10032C00084B5B6843F00203536000BF054B5B68EE
-:10033C0003F00C03082BF9D100BF0C37BD4680BC71
-:10034C00704700BF001002400020024080B485B00E
-:10035C0000AF78600B467B800023FB737B681B89A6
-:10036C009AB27B8813409BB2002B02D00123FB7303
-:10037C0001E00023FB73FB7B18461437BD4680BCA1
-:10038C00704700BF80B483B000AF78600B467B80B1
-:10039C007B687A889A8100BF0C37BD4680BC704759
-:1003AC0080B483B000AF78607B689B899BB21846A1
-:1003BC000C37BD4680BC704780B582B000AF034699
-:1003CC00FB7100BF02210E48FFF7C0FF0346002B54
-:1003DC00F8D0FB799BB219460948FFF7D3FF00BF51
-:1003EC0001210748FFF7B2FF0346002BF8D0044861
-:1003FC00FFF7D6FF0346DBB218460837BD4680BD73
-:10040C000030014080B489B000AF786039600023BF
-:10041C00FB6100233B610023BB610023FB600023D5
-:10042C007B610023BB603B68DB7803F00F03FB614F
-:10043C003B68DB7803F01003002B05D03B689B78FE
-:10044C001A46FB691343FB613B681B88DBB2002B2C
-:10045C0044D07B681B687B610023BB6138E00122C0
-:10046C00BB6902FA03F3FB603B681B881A46FB6806
-:10047C0013403B613A69FB689A4226D1BB699B00E9
-:10048C00FB600F22FB6802FA03F3BB60BB68DB4323
-:10049C007A6913407B61FA69FB6802FA03F37A69A3
-:1004AC0013437B613B68DB78282B05D10122BB69A8
-:1004BC009A407B685A6108E03B68DB78482B04D192
-:1004CC000122BB699A407B681A61BB690133BB612D
-:1004DC00BB69072BC3D97B687A691A603B681B8898
-:1004EC00FF2B46D97B685B687B610023BB613AE0DC
-:1004FC00BB690833012202FA03F3FB603B681B88DB
-:10050C001A46FB6813403B613A69FB689A4227D153
-:10051C00BB699B00FB600F22FB6802FA03F3BB6014
-:10052C00BB68DB437A6913407B61FA69FB6802FAAA
-:10053C0003F37A6913437B613B68DB78282B05D185
-:10054C00BB69083301229A407B685A613B68DB78AF
-:10055C00482B05D1BB69083301229A407B681A618C
-:10056C00BB690133BB61BB69072BC1D97B687A6955
-:10057C005A6000BF2437BD4680BC704780B485B03C
-:10058C0000AF786039600023FB817B681B88FB819E
-:10059C00FB8903F44153FB813B681A883B685B88F9
-:1005AC0013439AB23B689B8813439AB23B68DB882F
-:1005BC0013439AB23B681B8913439AB23B685B891D
-:1005CC0013439AB23B689B8913439AB23B68DB890D
-:1005DC0013439AB2FB891343FB817B68FA891A8017
-:1005EC007B689B8B9BB223F400639AB27B689A83E3
-:1005FC003B681A8A7B681A8200BF1437BD4680BCE0
-:10060C00704700BF80B483B000AF78600B46FB70BE
-:10061C00FB78002B08D07B681B889BB243F040030F
-:10062C009AB27B681A8007E07B681B889BB223F028
-:10063C0040039AB27B681A8000BF0C37BD4680BC61
-:10064C00704700BF80B483B000AF78600B467B80EE
-:10065C007A887B681A6100BF0C37BD4680BC704736
-:10066C0080B483B000AF78600B46FB70FB78002B36
-:10067C0006D00949084B9A697B6813438B6106E0E5
-:10068C000549054B9A697B68DB4313408B6100BFBE
-:10069C000C37BD4680BC70470010024080B483B05C
-:1006AC0000AF78600B467B807A887B685A6100BF0C
-:1006BC000C37BD4680BC704780B586B000AF0121B9
-:1006CC000420FFF7CDFF01214FF48050FFF7C8FF46
-:1006DC00E023BB820323BB751823FB7507F11403BE
-:1006EC0019461748FFF78EFE1023BB821023FB75AB
-:1006FC0007F1140319461248FFF784FE00233B80D0
-:10070C004FF482737B800023BB800223FB80012388
-:10071C003B814FF400737B810823BB810023FB8159
-:10072C0007233B823B4619460648FFF727FF01216A
-:10073C000448FFF767FF00BF1837BD4680BD00BFF8
-:10074C00000801400030014080B500AF102118486E
-:10075C00FFF7A4FF95220021002000F02BF80120C8
-:10076C0000F05EF80346002B01D0FF231DE01021A2
-:10077C000F48FFF767FFFF20FFF71EFE10210C4804
-:10078C00FFF78CFFFF220021012000F013F800205E
-:10079C0000F046F80346002BE9D110210448FFF77E
-:1007AC0051FFFF20FFF708FE0023184680BD00BF55
-:1007BC000008014080B586B000AF03463960FB717C
-:1007CC001346BB7100237B61FB7943F04003DBB222
-:1007DC003B733B681B0EDBB27B733B681B0CDBB2C1
-:1007EC00BB733B681B0ADBB2FB733B68DBB23B742D
-:1007FC00BB797B7400237B610AE007F10C027B69F7
-:10080C0013441B781846FFF7D7FD7B6901337B61D6
-:10081C007B69052BF1D900BF1837BD4680BD00BFE1
-:10082C0080B584B000AF0346FB7140F6FF73FB60EC
-:10083C0002E0FB68013BFB6000F012F803461A462D
-:10084C00FB79934202D0FB68002BF2D1FB68002BA2
-:10085C0001D1FF2300E0002318461037BD4680BDB0
-:10086C0080B582B000AF0023FB7100BF02210E489F
-:10087C00FFF76CFD0346002BF8D0FF210A48FFF769
-:10088C0081FD00BF01210848FFF760FD0346002BE6
-:10089C00F8D00548FFF784FD0346FB71FB79184639
-:1008AC000837BD4680BD00BF0030014080B582B026
-:1008BC0000AF00237B601EE0FFF7D2FF0346FB7006
-:1008CC00FB7803F01F03FB70FB780B2B06D00D2B72
-:1008DC0006D0052B06D10523BB7006E00B2316E0D2
-:1008EC000D2314E0FF23BB7000BFBB78052B06D093
-:1008FC007B6801337B607B68402BDDD900E000BF57
-:10090C0000BFFFF7ADFF0346002BFAD0FB7818466B
-:10091C000837BD4680BD00BF80B582B000AF002354
-:10092C007B60FFF7C9FE10210A48FFF78BFE0023FE
-:10093C007B6005E0FF20FFF73FFD7B6801337B60A8
-:10094C007B68092BF6D9FFF7FFFE034618460837DC
-:10095C00BD4680BD0008014080B584B000AF786012
-:10096C000023FB60FF23FB7210211A48FFF796FE51
-:10097C00FF2279681820FFF71DFF0020FFF750FFBA
-:10098C000346002B19D1FF20FFF716FDFE20FFF7C1
-:10099C0013FD0023FB6002E0FB680133FB60FB6886
-:1009AC00FF2BF9D9FFF75CFFFFF75AFFFFF77EFF2C
-:1009BC000346052B01D10023FB7210210548FFF7DC
-:1009CC0041FEFF20FFF7F8FCFB7A18461037BD46B6
-:1009DC0080BD00BF0008014080B500AF094B1B88EB
-:1009EC00002B01D100230AE0FFF796FF03469AB2D1
-:1009FC00044B1A80034B1B88002BF5D1012318469E
-:100A0C0080BD00BF1800002080B500AF00BFFFF70D
-:100A1C00E3FF0346002BFAD100BF80BD80B500AFC9
-:100A2C00FFF7F2FF0B4B00221A800B4B4FF40072B6
-:100A3C001A60094B1B681846FFF78EFF03469AB2E3
-:100A4C00064B1A80044B1B6803F50073024A1360B3
-:100A5C00EFE700BF2602002028020020180000202B
-:100A6C0080B500AF0A4B1B68002B07D11021094839
-:100A7C00FFF7E8FD064B01221A6006E0102105483D
-:100A8C00FFF70CFE024B00221A6000BF80BD00BFB6
-:100A9C00140000200008014080B400AF3A4B1B78D2
-:100AAC00FF2B18D1394B1B78012B06D1384B1B78F7
-:100ABC00022B02D1354B02221A70344B1B78022BBD
-:100ACC0006D1334B1B78012B02D1304B01221A700B
-:100ADC002D4B00221A702D4B1B78012B25D12D4B41
-:100AEC00B1221A80284B1B781A462B4B19882B4B9A
-:100AFC0023F81210244B1B780133DAB2224B1A70F4
-:100B0C00214B1B781A46234B1B8899B2234B23F895
-:100B1C0012101D4B1B780133DAB21B4B1A701E4B93
-:100B2C001B8801339AB21C4B1A80184B1B78022B72
-:100B3C0025D1184BB2221A80134B1B781A46164B30
-:100B4C001988174B23F812100F4B1B780133DAB2AC
-:100B5C000D4B1A700C4B1B781A460E4B1B8899B216
-:100B6C000F4B23F81210084B1B780133DAB2064BEB
-:100B7C001A70094B1B8801339AB2074B1A8000BFBD
-:100B8C00BD4680BC704700BF3006002031060020F7
-:100B9C00320600202C0200203406002030020020F7
-:100BAC00300400200C0C0008000000201C00002069
-:100BBC001C00002038060020002103E00A4B5B5883
-:100BCC004350043109480A4B42189A42F6D3094A59
-:100BDC0002E0002342F8043B074B9A42F9D3FFF79B
-:100BEC008FFAFFF71BFF70470C0C00080000002069
-:100BFC001C0000201C00002038060020FEE700002E
-:100C0C0000A24A04000000000000000001020304DE
-:0C0C1C00060708090A000000FFFF0000A6
-:0400000508000BC51F
-:00000001FF

File diff suppressed because it is too large
+ 0 - 2318
stm32f1_02/build/main.lst


BIN
stm32f1_02/build/main.o


stm32f1_02/Makefile → stm32f1_02_systick_SD/Makefile


+ 6 - 0
stm32f1_02_systick_SD/build/gdb.scr

@@ -0,0 +1,6 @@
+tar ext :4242
+load
+continue
+print Buffer1
+print Buffer2
+

BIN
stm32f1_02/build/main.bin


BIN
stm32f1_02/build/main.elf


+ 218 - 0
stm32f1_02_systick_SD/build/main.hex

@@ -0,0 +1,218 @@
+:020000040800F2
+:1000000000280020050D0008490D0008490D0008D2
+:10001000490D0008490D0008490D000800000000C6
+:10002000000000000000000000000000490D000872
+:10003000490D000800000000490D0008C90B000828
+:10004000490D0008490D0008490D0008490D000838
+:10005000490D0008490D0008490D0008490D000828
+:10006000490D0008490D0008490D0008490D000818
+:10007000490D0008490D0008490D0008490D000808
+:10008000490D0008490D0008490D0008490D0008F8
+:10009000490D0008490D0008490D0008490D0008E8
+:1000A000490D0008490D0008490D0008490D0008D8
+:1000B000490D0008490D000800000000490D000826
+:1000C000490D00080000000000000000490D000874
+:1000D00000000000490D0008490D00080000000064
+:1000E000490D0008490D0008490D000800000000F6
+:1000F0000000000000000000000000000000000000
+:0C01000000000000000000005FF808F1A3
+:10010C0080B483B000AF03463960FB7197F90730B8
+:10011C00002B0BDA0D49FB7903F00F03043B3A6813
+:10012C00D2B21201D2B20B441A7609E0084997F9FF
+:10013C0007303A68D2B21201D2B20B4483F80023D2
+:10014C0000BF0C37BD4680BC704700BF00ED00E01F
+:10015C0000E100E080B582B000AF78607B68B3F15D
+:10016C00807F01D3012311E00A4A7B6823F07F438F
+:10017C00013B53600F214FF0FF30FFF7C1FF054BE0
+:10018C0000229A60034B07221A6000231846083796
+:10019C00BD4680BD10E000E080B500AF154A154BA0
+:1001AC001B6843F0010313601249124B5A68124B3F
+:1001BC0013404B600F4A0F4B1B6823F0847323F4DE
+:1001CC00803313600B4A0B4B1B6823F480231360A2
+:1001DC00084A084B5B6823F4FE035360054B4FF44D
+:1001EC001F029A6000F078F8044B4FF000629A609E
+:1001FC0000BF80BD001002400000FFF800ED00E0E1
+:10020C0080B485B000AF0023FB600023BB600023EB
+:10021C007B602C4B5B6803F00C03FB60FB68042BCE
+:10022C0007D0082B09D0002B33D1274B274A1A6053
+:10023C0033E0254B254A1A602FE0224B5B6803F410
+:10024C007013BB601F4B5B6803F480337B60BB682F
+:10025C009B0C0233BB607B68002B06D1BB681C4A2D
+:10026C0002FB03F3184A136017E0164B5B6803F4A8
+:10027C000033002B06D0BB68154A02FB03F3124A6D
+:10028C0013600AE0BB68114A02FB03F30E4A1360C9
+:10029C0003E00D4B0D4A1A6000BF0A4B5B6803F07C
+:1002AC00F0031B090B4AD35CDBB2FB60064B1A68EC
+:1002BC00FB6822FA03F3044A136000BF1437BD46EF
+:1002CC0080BC7047001002400000002000127A0031
+:1002DC0000093D000400002080B500AF00F002F8DA
+:1002EC0000BF80BD80B483B000AF00237B600023CF
+:1002FC003B603A4A394B1B6843F480331360374BED
+:10030C001B6803F400333B607B6801337B603B6804
+:10031C00002B03D17B68B3F5A06FF0D12F4B1B687A
+:10032C0003F40033002B02D001233B6001E00023D7
+:10033C003B603B68012B4BD1294A294B1B6843F08E
+:10034C0010031360264A264B1B6823F0030313602B
+:10035C00234A234B1B6843F0020313601F4A1F4BB5
+:10036C005B6853601D4A1D4B5B6853601B4A1B4BFB
+:10037C005B6843F480635360184A184B5B6823F442
+:10038C007C135360154A154B5B6843F4E8135360B8
+:10039C00124A124B1B6843F08073136000BF0F4B63
+:1003AC001B6803F00073002BF9D00C4A0B4B5B68F5
+:1003BC0023F003035360094A084B5B6843F00203C4
+:1003CC00536000BF054B5B6803F00C03082BF9D19D
+:1003DC0000BF0C37BD4680BC704700BF0010024008
+:1003EC000020024080B485B000AF78600B467B8063
+:1003FC000023FB737B681B899AB27B8813409BB2EA
+:10040C00002B02D00123FB7301E00023FB73FB7B69
+:10041C0018461437BD4680BC704700BF80B483B00B
+:10042C0000AF78600B467B807B687A889A8100BF2E
+:10043C000C37BD4680BC704780B483B000AF786089
+:10044C007B689B899BB218460C37BD4680BC7047B5
+:10045C0080B582B000AF0346FB7100BF02210E488D
+:10046C00FFF7C0FF0346002BF8D0FB799BB219466F
+:10047C000948FFF7D3FF00BF01210748FFF7B2FF80
+:10048C000346002BF8D00448FFF7D6FF0346DBB237
+:10049C0018460837BD4680BD0030014080B489B095
+:1004AC0000AF786039600023FB6100233B610023BF
+:1004BC00BB610023FB6000237B610023BB603B68B6
+:1004CC00DB7803F00F03FB613B68DB7803F0100370
+:1004DC00002B05D03B689B781A46FB691343FB61E4
+:1004EC003B681B88DBB2002B44D07B681B687B61AC
+:1004FC000023BB6138E00122BB6902FA03F3FB6005
+:10050C003B681B881A46FB6813403B613A69FB68E1
+:10051C009A4226D1BB699B00FB600F22FB6802FA52
+:10052C0003F3BB60BB68DB437A6913407B61FA69F8
+:10053C00FB6802FA03F37A6913437B613B68DB784F
+:10054C00282B05D10122BB699A407B685A6108E0CF
+:10055C003B68DB78482B04D10122BB699A407B684D
+:10056C001A61BB690133BB61BB69072BC3D97B68BB
+:10057C007A691A603B681B88FF2B46D97B685B68DD
+:10058C007B610023BB613AE0BB690833012202FAAC
+:10059C0003F3FB603B681B881A46FB6813403B6106
+:1005AC003A69FB689A4227D1BB699B00FB600F221A
+:1005BC00FB6802FA03F3BB60BB68DB437A69134048
+:1005CC007B61FA69FB6802FA03F37A6913437B6176
+:1005DC003B68DB78282B05D1BB69083301229A4094
+:1005EC007B685A613B68DB78482B05D1BB690833C3
+:1005FC0001229A407B681A61BB690133BB61BB69FC
+:10060C00072BC1D97B687A695A6000BF2437BD4675
+:10061C0080BC704780B485B000AF7860396000232F
+:10062C00FB817B681B88FB81FB8903F44153FB81B5
+:10063C003B681A883B685B8813439AB23B689B887B
+:10064C0013439AB23B68DB8813439AB23B681B890D
+:10065C0013439AB23B685B8913439AB23B689B89FC
+:10066C0013439AB23B68DB8913439AB2FB89134359
+:10067C00FB817B68FA891A807B689B8B9BB223F485
+:10068C0000639AB27B689A833B681A8A7B681A82E9
+:10069C0000BF1437BD4680BC704700BF80B483B028
+:1006AC0000AF78600B46FB70FB78002B08D07B68A2
+:1006BC001B889BB243F040039AB27B681A8007E018
+:1006CC007B681B889BB223F040039AB27B681A802C
+:1006DC0000BF0C37BD4680BC704700BF80B483B0F0
+:1006EC0000AF78600B467B807A887B681A6100BF0C
+:1006FC000C37BD4680BC704780B483B000AF7860C7
+:10070C000B46FB70FB78002B06D00949084B9A6905
+:10071C007B6813438B6106E00549054B9A697B683E
+:10072C00DB4313408B6100BF0C37BD4680BC704768
+:10073C000010024080B483B000AF78600B467B8021
+:10074C007A887B685A6100BF0C37BD4680BC704705
+:10075C0080B586B000AF01210420FFF7CDFF012149
+:10076C004FF48050FFF7C8FFE023BB820323BB7517
+:10077C001823FB7507F1140319461748FFF78EFE73
+:10078C001023BB821023FB7507F114031946124882
+:10079C00FFF784FE00233B804FF482737B800023A1
+:1007AC00BB800223FB8001233B814FF400737B81D0
+:1007BC000823BB810023FB8107233B823B46194660
+:1007CC000648FFF727FF01210448FFF767FF00BF2A
+:1007DC001837BD4680BD00BF000801400030014005
+:1007EC0080B500AF10211848FFF7A4FF9522002117
+:1007FC00002000F02BF8012000F05EF80346002BDF
+:10080C0001D0FF231DE010210F48FFF767FFFF20E9
+:10081C00FFF71EFE10210C48FFF78CFFFF22002172
+:10082C00012000F013F8002000F046F80346002BDE
+:10083C00E9D110210448FFF751FFFF20FFF708FE14
+:10084C000023184680BD00BF0008014080B586B06B
+:10085C0000AF03463960FB711346BB7100237B610B
+:10086C00FB7943F04003DBB23B733B681B0EDBB2FE
+:10087C007B733B681B0CDBB2BB733B681B0ADBB2A4
+:10088C00FB733B68DBB23B74BB797B7400237B61ED
+:10089C000AE007F10C027B6913441B781846FFF73A
+:1008AC00D7FD7B6901337B617B69052BF1D900BFD7
+:1008BC001837BD4680BD00BF80B584B000AF03467D
+:1008CC00FB7140F6FF73FB6002E0FB68013BFB60D1
+:1008DC0000F012F803461A46FB79934202D0FB68EB
+:1008EC00002BF2D1FB68002B01D1FF2300E0002389
+:1008FC0018461037BD4680BD80B582B000AF0023CE
+:10090C00FB7100BF02210E48FFF76CFD0346002B64
+:10091C00F8D0FF210A48FFF781FD00BF01210848EC
+:10092C00FFF760FD0346002BF8D00548FFF784FD68
+:10093C000346FB71FB7918460837BD4680BD00BFE6
+:10094C000030014080B582B000AF00237B601EE018
+:10095C00FFF7D2FF0346FB70FB7803F01F03FB701D
+:10096C00FB780B2B06D00D2B06D0052B06D10523BF
+:10097C00BB7006E00B2316E00D2314E0FF23BB70C5
+:10098C0000BFBB78052B06D07B6801337B607B688E
+:10099C00402BDDD900E000BF00BFFFF7ADFF0346E1
+:1009AC00002BFAD0FB7818460837BD4680BD00BF37
+:1009BC0080B582B000AF00237B60FFF7C9FE102129
+:1009CC000A48FFF78BFE00237B6005E0FF20FFF752
+:1009DC003FFD7B6801337B607B68092BF6D9FFF701
+:1009EC00FFFE034618460837BD4680BD000801408F
+:1009FC0080B500AF094B1B88002B01D100230AE006
+:100A0C00FFF7D6FF03469AB2044B1A80034B1B88A0
+:100A1C00002BF5D10123184680BD00BF1800002023
+:100A2C0080B500AF00BFFFF7E3FF0346002BFAD100
+:100A3C0000BF80BD80B584B000AF78603B4B1A78A6
+:100A4C003B4B1A70394B00221A700023FB60FF23BA
+:100A5C00FB7210213748FFF76DFEFF2279681820D2
+:100A6C00FFF7F4FE0020FFF727FF0346002B4ED1C3
+:100A7C00FF20FFF7EDFCFE20FFF7EAFC2C4B1B7868
+:100A8C00012B1AD10023FB6014E02B4AFB6832F8CF
+:100A9C001330DBB21846FFF7DBFC274AFB6832F851
+:100AAC0013301B0A9BB2DBB21846FFF7D1FCFB6874
+:100ABC000133FB60FB68FF2BE7D91D4B1B78022B26
+:100ACC001AD10023FB6014E01C4AFB6832F8133087
+:100ADC00DBB21846FFF7BCFC184AFB6832F813303F
+:100AEC001B0A9BB2DBB21846FFF7B2FCFB68013362
+:100AFC00FB60FB68FF2BE7D9FFF7FEFEFFF7FCFE60
+:100B0C00FFF720FF0346052B01D10023FB721021B8
+:100B1C000848FFF7E3FDFF20FFF79AFC044B002287
+:100B2C001A70FB7A18461037BD4680BD300600207F
+:100B3C001B0000200008014030020020300400207F
+:100B4C0080B500AFFFF734FF03461A46144B1A600A
+:100B5C00FFF766FF134B00221A80134B4FF4007201
+:100B6C001A60FFF74DFB114B1B68114AA2FB0323C4
+:100B7C005B0B1846FFF7EEFA0E4B1B78002BFBD0E5
+:100B8C000D4B01221A70084B1B681846FFF752FFD9
+:100B9C00054B1B6803F50073034A1360ECE700BFB9
+:100BAC001400002026020020280200200000002053
+:100BBC005917B7D1300600203206002080B400AFA0
+:100BCC00404B1B78012B29D13F4B1B78012B25D097
+:100BDC003E4BB1221A803E4B1B781A463D4B19886E
+:100BEC003D4B23F812103A4B1B780133DAB2384BD9
+:100BFC001A70374B1B781A46344B1B8899B2364BFC
+:100C0C0023F81210324B1B780133DAB2304B1A70C6
+:100C1C00304B1B8801339AB22E4B1A80294B1B7810
+:100C2C00022B29D1284B1B78022B25D0274BB22223
+:100C3C001A80274B1B781A46264B1988274B23F80A
+:100C4C001210234B1B780133DAB2214B1A70204B54
+:100C5C001B781A461D4B1B8899B2204B23F8121097
+:100C6C001B4B1B780133DAB2194B1A70194B1B88CA
+:100C7C0001339AB2174B1A80154B1B78FE2B0CD1F3
+:100C8C00104B1B78012B08D10E4B02221A70144BFF
+:100C9C0001221A700E4B00221A700D4B1B78FE2B82
+:100CAC000CD1084B1B78022B08D1064B01221A7071
+:100CBC000B4B02221A70064B00221A7000BFBD4665
+:100CCC0080BC70471A0000201B0000202C02002062
+:100CDC0031060020340600203002002030040020B1
+:100CEC00300600204C0D0008000000201C000020E5
+:100CFC001C00002038060020002103E00A4B5B5842
+:100D0C004350043109480A4B42189A42F6D3094A17
+:100D1C0002E0002342F8043B074B9A42F9D3FFF759
+:100D2C003BFAFFF70DFF70474C0D00080000002048
+:100D3C001C0000201C00002038060020FEE70000EC
+:100D4C0000A24A040000000000000000010203049D
+:0C0D5C00060708090A000000FFFF010262
+:0400000508000D05DD
+:00000001FF

File diff suppressed because it is too large
+ 2492 - 0
stm32f1_02_systick_SD/build/main.lst


BIN
stm32f1_02_systick_SD/build/main.o


BIN
stm32f1_02/build/startup_stm32f10x_ld.o


stm32f1_02/gdb.txt → stm32f1_02_systick_SD/gdb.txt


stm32f1_02/inc/core_cm3.h → stm32f1_02_systick_SD/inc/core_cm3.h


stm32f1_02/inc/misc.h → stm32f1_02_systick_SD/inc/misc.h


stm32f1_02/inc/stm32_eval.h → stm32f1_02_systick_SD/inc/stm32_eval.h


stm32f1_02/inc/stm32f10x.h → stm32f1_02_systick_SD/inc/stm32f10x.h


stm32f1_02/inc/stm32f10x_adc.h → stm32f1_02_systick_SD/inc/stm32f10x_adc.h


stm32f1_02/inc/stm32f10x_bkp.h → stm32f1_02_systick_SD/inc/stm32f10x_bkp.h


stm32f1_02/inc/stm32f10x_can.h → stm32f1_02_systick_SD/inc/stm32f10x_can.h


stm32f1_02/inc/stm32f10x_cec.h → stm32f1_02_systick_SD/inc/stm32f10x_cec.h


stm32f1_02/inc/stm32f10x_crc.h → stm32f1_02_systick_SD/inc/stm32f10x_crc.h


stm32f1_02/inc/stm32f10x_dac.h → stm32f1_02_systick_SD/inc/stm32f10x_dac.h


stm32f1_02/inc/stm32f10x_dbgmcu.h → stm32f1_02_systick_SD/inc/stm32f10x_dbgmcu.h


stm32f1_02/inc/stm32f10x_dma.h → stm32f1_02_systick_SD/inc/stm32f10x_dma.h


stm32f1_02/inc/stm32f10x_exti.h → stm32f1_02_systick_SD/inc/stm32f10x_exti.h


stm32f1_02/inc/stm32f10x_flash.h → stm32f1_02_systick_SD/inc/stm32f10x_flash.h


stm32f1_02/inc/stm32f10x_fsmc.h → stm32f1_02_systick_SD/inc/stm32f10x_fsmc.h


stm32f1_02/inc/stm32f10x_gpio.h → stm32f1_02_systick_SD/inc/stm32f10x_gpio.h


stm32f1_02/inc/stm32f10x_i2c.h → stm32f1_02_systick_SD/inc/stm32f10x_i2c.h


stm32f1_02/inc/stm32f10x_iwdg.h → stm32f1_02_systick_SD/inc/stm32f10x_iwdg.h


stm32f1_02/inc/stm32f10x_pwr.h → stm32f1_02_systick_SD/inc/stm32f10x_pwr.h


stm32f1_02/inc/stm32f10x_rcc.h → stm32f1_02_systick_SD/inc/stm32f10x_rcc.h


stm32f1_02/inc/stm32f10x_rtc.h → stm32f1_02_systick_SD/inc/stm32f10x_rtc.h


stm32f1_02/inc/stm32f10x_sdio.h → stm32f1_02_systick_SD/inc/stm32f10x_sdio.h


stm32f1_02/inc/stm32f10x_spi.h → stm32f1_02_systick_SD/inc/stm32f10x_spi.h


stm32f1_02/inc/stm32f10x_tim.h → stm32f1_02_systick_SD/inc/stm32f10x_tim.h


stm32f1_02/inc/stm32f10x_usart.h → stm32f1_02_systick_SD/inc/stm32f10x_usart.h


stm32f1_02/inc/stm32f10x_wwdg.h → stm32f1_02_systick_SD/inc/stm32f10x_wwdg.h


stm32f1_02/inc/system_stm32f10x.h → stm32f1_02_systick_SD/inc/system_stm32f10x.h


stm32f1_02/lib/core_cm3.c → stm32f1_02_systick_SD/lib/core_cm3.c


stm32f1_02/lib/misc.c → stm32f1_02_systick_SD/lib/misc.c


stm32f1_02/lib/stm32_eval.c → stm32f1_02_systick_SD/lib/stm32_eval.c


stm32f1_02/lib/stm32f10x_adc.c → stm32f1_02_systick_SD/lib/stm32f10x_adc.c


stm32f1_02/lib/stm32f10x_bkp.c → stm32f1_02_systick_SD/lib/stm32f10x_bkp.c


stm32f1_02/lib/stm32f10x_can.c → stm32f1_02_systick_SD/lib/stm32f10x_can.c


stm32f1_02/lib/stm32f10x_cec.c → stm32f1_02_systick_SD/lib/stm32f10x_cec.c


stm32f1_02/lib/stm32f10x_crc.c → stm32f1_02_systick_SD/lib/stm32f10x_crc.c


stm32f1_02/lib/stm32f10x_dac.c → stm32f1_02_systick_SD/lib/stm32f10x_dac.c


stm32f1_02/lib/stm32f10x_dbgmcu.c → stm32f1_02_systick_SD/lib/stm32f10x_dbgmcu.c


stm32f1_02/lib/stm32f10x_dma.c → stm32f1_02_systick_SD/lib/stm32f10x_dma.c


stm32f1_02/lib/stm32f10x_exti.c → stm32f1_02_systick_SD/lib/stm32f10x_exti.c


stm32f1_02/lib/stm32f10x_flash.c → stm32f1_02_systick_SD/lib/stm32f10x_flash.c


stm32f1_02/lib/stm32f10x_fsmc.c → stm32f1_02_systick_SD/lib/stm32f10x_fsmc.c


stm32f1_02/lib/stm32f10x_gpio.c → stm32f1_02_systick_SD/lib/stm32f10x_gpio.c


stm32f1_02/lib/stm32f10x_i2c.c → stm32f1_02_systick_SD/lib/stm32f10x_i2c.c


stm32f1_02/lib/stm32f10x_iwdg.c → stm32f1_02_systick_SD/lib/stm32f10x_iwdg.c


stm32f1_02/lib/stm32f10x_pwr.c → stm32f1_02_systick_SD/lib/stm32f10x_pwr.c


stm32f1_02/lib/stm32f10x_rcc.c → stm32f1_02_systick_SD/lib/stm32f10x_rcc.c


stm32f1_02/lib/stm32f10x_rtc.c → stm32f1_02_systick_SD/lib/stm32f10x_rtc.c


stm32f1_02/lib/stm32f10x_sdio.c → stm32f1_02_systick_SD/lib/stm32f10x_sdio.c


stm32f1_02/lib/stm32f10x_spi.c → stm32f1_02_systick_SD/lib/stm32f10x_spi.c


stm32f1_02/lib/stm32f10x_tim.c → stm32f1_02_systick_SD/lib/stm32f10x_tim.c


stm32f1_02/lib/stm32f10x_usart.c → stm32f1_02_systick_SD/lib/stm32f10x_usart.c


stm32f1_02/lib/stm32f10x_wwdg.c → stm32f1_02_systick_SD/lib/stm32f10x_wwdg.c


stm32f1_02/lib/system_stm32f10x.c → stm32f1_02_systick_SD/lib/system_stm32f10x.c


+ 83 - 46
stm32f1_02/main.c

@@ -151,7 +151,7 @@ uint16_t writeBufFilled = 0;
 volatile uint32_t SDWriteOffset  = 0;
 volatile uint16_t ADC1ConvertedValue = 0;
 uint16_t Buffer1[256] = {0}, Buffer2[256] = {0};
-uint8_t  BuffCount = 0, Rstatus = 0, Wstatus = 0;
+uint8_t  BuffReady = 0, BuffCount = 0, Rstatus = 1, Wstatus = 2, check = 0;
 
 uint16_t TMSTP = 0;
 
@@ -779,31 +779,56 @@ SD_Error SD_Init(void)
   return (SD_GoIdleState());
 }
 
+
+
+
+uint8_t _checkSDStatus() {
+if (SD_Status == SD_RESPONSE_NO_ERROR)
+return 0;
+
+do
+SD_Status = SD_Init();
+while (SD_Status != SD_RESPONSE_NO_ERROR);
+
+return 1;
+}
+
+void checkSDStatus() {
+while (_checkSDStatus()) { 
+//<----><------>writeBufFilled = 0;
+//<----><------>SDWriteOffset  = SD_WriteHeaders();
+}
+}
+
+
 SD_Error SD_WriteBlock_1(uint32_t WriteAddr)
 {
+  Wstatus = BuffReady;
+  BuffReady = 0;
   uint32_t i = 0;
   SD_Error rvalue = SD_RESPONSE_FAILURE;
-
   SD_CS_LOW();
-
   SD_SendCmd(SD_CMD_WRITE_SINGLE_BLOCK, WriteAddr, 0xFF);
-
   if (!SD_GetResponse(SD_RESPONSE_NO_ERROR))
   {
     SD_WriteByte(SD_DUMMY_BYTE);
-
     SD_WriteByte(0xFE);
-
-    for (i = 0; i < SD_BUFSIZE/sizeof(*Buffer1); i += 1)
+	if (Wstatus == 1){
+    for (i = 0; i < SD_BUFSIZE/2; i += 1)
     {
-
+    SD_WriteByte(Buffer1[i]);
+    SD_WriteByte(Buffer1[i] >> 8);
+    }
+    }
     
-
-
-
-
-
+    if (Wstatus == 2){
+    for (i = 0; i < SD_BUFSIZE/2; i += 1)
+    {
+    SD_WriteByte(Buffer2[i]);
+    SD_WriteByte(Buffer2[i] >> 8);
+    }
     }
+    
     SD_ReadByte();
     SD_ReadByte();
     if (SD_GetDataResponse() == SD_DATA_OK)
@@ -813,54 +838,66 @@ SD_Error SD_WriteBlock_1(uint32_t WriteAddr)
   }
   SD_CS_HIGH();
   SD_WriteByte(SD_DUMMY_BYTE);
-
+    Wstatus = 0;
   return rvalue;
 }
 
 
-
-uint8_t _checkSDStatus() {
-if (SD_Status == SD_RESPONSE_NO_ERROR)
-return 0;
-
-do
-SD_Status = SD_Init();
-while (SD_Status != SD_RESPONSE_NO_ERROR);
-
-return 1;
-}
-
-void checkSDStatus() {
-while (_checkSDStatus()) { 
-//<----><------>writeBufFilled = 0;
-//<----><------>SDWriteOffset  = SD_WriteHeaders();
-}
-}
-
-
-
-
 int main(void) {
-//    SystemCoreClockUpdate();
-//    SysTick_Config(SystemCoreClock/1000);
-//    status = SD_Init();
+
+    status = SD_Init();
     checkSDStatus();
     writeBufFilled = 0;
 //    SD_WriteHeaders();
     SDWriteOffset  = SD_BUFSIZE;
-
+    SystemCoreClockUpdate();
+    SysTick_Config(SystemCoreClock/10000);
     while (1)
 	{
-	if (status == 1){
-	SD_Status = SD_WriteBlock_1(SDWriteOffset);
-	SDWriteOffset  += SD_BUFSIZE;
-	status = 0;
+	if (BuffReady != 0){
+	check=1;
+//	SD_WriteBlock_1(SDWriteOffset);
+        SDWriteOffset  = SDWriteOffset + SD_BUFSIZE;
+
+
+
 	}
-    
-    }
 
+    }
+}
 
 void SysTick_Handler(void) {
 
+if (Rstatus == 1 && Wstatus != 1){
+ADC1ConvertedValue = 0xB1;
+Buffer1[BuffCount] = TMSTP;
+BuffCount++;
+Buffer1[BuffCount] = ADC1ConvertedValue;
+BuffCount++;
+TMSTP++;
+}
+
+if (Rstatus == 2 && Wstatus != 2){
+ADC1ConvertedValue = 0xB2;
+Buffer2[BuffCount] = TMSTP;
+BuffCount++;
+Buffer2[BuffCount] = ADC1ConvertedValue;
+BuffCount++;
+TMSTP++;
+}
+
+if ( BuffCount == 254 && Rstatus == 1 ){
+	Rstatus = 2;
+	BuffReady = 1;
+	BuffCount = 0;
+}
+
+if (BuffCount == 254 && Rstatus == 2){
+	Rstatus = 1;
+	BuffReady = 2;
+	BuffCount = 0;
+}
+
+
 }
 

stm32f1_02/main.c1 → stm32f1_02_systick_SD/main.c1


stm32f1_02/main.h → stm32f1_02_systick_SD/main.h


stm32f1_02/megacode.c → stm32f1_02_systick_SD/megacode.c


stm32f1_02/readme.txt → stm32f1_02_systick_SD/readme.txt


stm32f1_02/source/main.c → stm32f1_02_systick_SD/source/main.c


stm32f1_02/source/startup_stm32f10x_ld.s → stm32f1_02_systick_SD/source/startup_stm32f10x_ld.s


stm32f1_02/stm32_flash.ld → stm32f1_02_systick_SD/stm32_flash.ld


stm32f1_02/stm32f0xx_conf.h → stm32f1_02_systick_SD/stm32f0xx_conf.h


stm32f1_02/stm32f0xx_it.c → stm32f1_02_systick_SD/stm32f0xx_it.c


stm32f1_02/stm32f0xx_it.h → stm32f1_02_systick_SD/stm32f0xx_it.h


stm32f1_02/stm32f10x_conf.h → stm32f1_02_systick_SD/stm32f10x_conf.h


stm32f1_02/stm32f10x_it.c → stm32f1_02_systick_SD/stm32f10x_it.c


stm32f1_02/stm32f10x_it.h → stm32f1_02_systick_SD/stm32f10x_it.h


stm32f1_02/system_stm32f0xx.c → stm32f1_02_systick_SD/system_stm32f0xx.c


stm32f1_02/system_stm32f10x.c → stm32f1_02_systick_SD/system_stm32f10x.c


+ 31 - 0
stm32f1_03/Makefile

@@ -0,0 +1,31 @@
+CC      = arm-none-eabi-gcc
+LD      = arm-none-eabi-gcc -v
+CP      = arm-none-eabi-objcopy
+OD      = arm-none-eabi-objdump
+
+CFLAGS  =  -I./ -I./lib -I./inc -c -fno-common -O0 -g -mcpu=cortex-m3 -mthumb 
+LFLAGS  = -Tstm32_flash.ld -nostartfiles
+ODFLAGS = -S
+AR+= -rcs
+
+all: test
+
+clean: -rm build/main.lst build/startup_stm32f10x_ld.o build/main.o build/main.elf build/main.lst build/main.bin
+
+test: main.elf 
+	@ echo "...copying"
+	$(CP) -O binary build/main.elf build/main.bin
+	$(CP) -O ihex build/main.elf build/main.hex
+	$(OD) $(ODFLAGS) build/main.elf > build/main.lst
+
+main.elf: main.o startup.o stm32_flash.ld
+	@ echo "..linking"
+	$(LD) $(LFLAGS) -o build/main.elf build/main.o build/startup_stm32f10x_ld.o
+
+main.o: main.c
+	@ echo ".compiling"
+	$(CC) $(CFLAGS) main.c -o build/main.o
+
+startup.o: source/startup_stm32f10x_ld.s
+	@ echo ".compiling"
+	$(CC) $(CFLAGS) source/startup_stm32f10x_ld.s -o build/startup_stm32f10x_ld.o

+ 6 - 0
stm32f1_03/build/gdb.scr

@@ -0,0 +1,6 @@
+tar ext :4242
+load
+continue
+print Buffer1
+print Buffer2
+

BIN
stm32f1_03/build/main.bin


BIN
stm32f1_03/build/main.elf


+ 218 - 0
stm32f1_03/build/main.hex

@@ -0,0 +1,218 @@
+:020000040800F2
+:1000000000280020050D0008490D0008490D0008D2
+:10001000490D0008490D0008490D000800000000C6
+:10002000000000000000000000000000490D000872
+:10003000490D000800000000490D0008C90B000828
+:10004000490D0008490D0008490D0008490D000838
+:10005000490D0008490D0008490D0008490D000828
+:10006000490D0008490D0008490D0008490D000818
+:10007000490D0008490D0008490D0008490D000808
+:10008000490D0008490D0008490D0008490D0008F8
+:10009000490D0008490D0008490D0008490D0008E8
+:1000A000490D0008490D0008490D0008490D0008D8
+:1000B000490D0008490D000800000000490D000826
+:1000C000490D00080000000000000000490D000874
+:1000D00000000000490D0008490D00080000000064
+:1000E000490D0008490D0008490D000800000000F6
+:1000F0000000000000000000000000000000000000
+:0C01000000000000000000005FF808F1A3
+:10010C0080B483B000AF03463960FB7197F90730B8
+:10011C00002B0BDA0D49FB7903F00F03043B3A6813
+:10012C00D2B21201D2B20B441A7609E0084997F9FF
+:10013C0007303A68D2B21201D2B20B4483F80023D2
+:10014C0000BF0C37BD4680BC704700BF00ED00E01F
+:10015C0000E100E080B582B000AF78607B68B3F15D
+:10016C00807F01D3012311E00A4A7B6823F07F438F
+:10017C00013B53600F214FF0FF30FFF7C1FF054BE0
+:10018C0000229A60034B07221A6000231846083796
+:10019C00BD4680BD10E000E080B500AF154A154BA0
+:1001AC001B6843F0010313601249124B5A68124B3F
+:1001BC0013404B600F4A0F4B1B6823F0847323F4DE
+:1001CC00803313600B4A0B4B1B6823F480231360A2
+:1001DC00084A084B5B6823F4FE035360054B4FF44D
+:1001EC001F029A6000F078F8044B4FF000629A609E
+:1001FC0000BF80BD001002400000FFF800ED00E0E1
+:10020C0080B485B000AF0023FB600023BB600023EB
+:10021C007B602C4B5B6803F00C03FB60FB68042BCE
+:10022C0007D0082B09D0002B33D1274B274A1A6053
+:10023C0033E0254B254A1A602FE0224B5B6803F410
+:10024C007013BB601F4B5B6803F480337B60BB682F
+:10025C009B0C0233BB607B68002B06D1BB681C4A2D
+:10026C0002FB03F3184A136017E0164B5B6803F4A8
+:10027C000033002B06D0BB68154A02FB03F3124A6D
+:10028C0013600AE0BB68114A02FB03F30E4A1360C9
+:10029C0003E00D4B0D4A1A6000BF0A4B5B6803F07C
+:1002AC00F0031B090B4AD35CDBB2FB60064B1A68EC
+:1002BC00FB6822FA03F3044A136000BF1437BD46EF
+:1002CC0080BC7047001002400000002000127A0031
+:1002DC0000093D000400002080B500AF00F002F8DA
+:1002EC0000BF80BD80B483B000AF00237B600023CF
+:1002FC003B603A4A394B1B6843F480331360374BED
+:10030C001B6803F400333B607B6801337B603B6804
+:10031C00002B03D17B68B3F5A06FF0D12F4B1B687A
+:10032C0003F40033002B02D001233B6001E00023D7
+:10033C003B603B68012B4BD1294A294B1B6843F08E
+:10034C0010031360264A264B1B6823F0030313602B
+:10035C00234A234B1B6843F0020313601F4A1F4BB5
+:10036C005B6853601D4A1D4B5B6853601B4A1B4BFB
+:10037C005B6843F480635360184A184B5B6823F442
+:10038C007C135360154A154B5B6843F4E8135360B8
+:10039C00124A124B1B6843F08073136000BF0F4B63
+:1003AC001B6803F00073002BF9D00C4A0B4B5B68F5
+:1003BC0023F003035360094A084B5B6843F00203C4
+:1003CC00536000BF054B5B6803F00C03082BF9D19D
+:1003DC0000BF0C37BD4680BC704700BF0010024008
+:1003EC000020024080B485B000AF78600B467B8063
+:1003FC000023FB737B681B899AB27B8813409BB2EA
+:10040C00002B02D00123FB7301E00023FB73FB7B69
+:10041C0018461437BD4680BC704700BF80B483B00B
+:10042C0000AF78600B467B807B687A889A8100BF2E
+:10043C000C37BD4680BC704780B483B000AF786089
+:10044C007B689B899BB218460C37BD4680BC7047B5
+:10045C0080B582B000AF0346FB7100BF02210E488D
+:10046C00FFF7C0FF0346002BF8D0FB799BB219466F
+:10047C000948FFF7D3FF00BF01210748FFF7B2FF80
+:10048C000346002BF8D00448FFF7D6FF0346DBB237
+:10049C0018460837BD4680BD0030014080B489B095
+:1004AC0000AF786039600023FB6100233B610023BF
+:1004BC00BB610023FB6000237B610023BB603B68B6
+:1004CC00DB7803F00F03FB613B68DB7803F0100370
+:1004DC00002B05D03B689B781A46FB691343FB61E4
+:1004EC003B681B88DBB2002B44D07B681B687B61AC
+:1004FC000023BB6138E00122BB6902FA03F3FB6005
+:10050C003B681B881A46FB6813403B613A69FB68E1
+:10051C009A4226D1BB699B00FB600F22FB6802FA52
+:10052C0003F3BB60BB68DB437A6913407B61FA69F8
+:10053C00FB6802FA03F37A6913437B613B68DB784F
+:10054C00282B05D10122BB699A407B685A6108E0CF
+:10055C003B68DB78482B04D10122BB699A407B684D
+:10056C001A61BB690133BB61BB69072BC3D97B68BB
+:10057C007A691A603B681B88FF2B46D97B685B68DD
+:10058C007B610023BB613AE0BB690833012202FAAC
+:10059C0003F3FB603B681B881A46FB6813403B6106
+:1005AC003A69FB689A4227D1BB699B00FB600F221A
+:1005BC00FB6802FA03F3BB60BB68DB437A69134048
+:1005CC007B61FA69FB6802FA03F37A6913437B6176
+:1005DC003B68DB78282B05D1BB69083301229A4094
+:1005EC007B685A613B68DB78482B05D1BB690833C3
+:1005FC0001229A407B681A61BB690133BB61BB69FC
+:10060C00072BC1D97B687A695A6000BF2437BD4675
+:10061C0080BC704780B485B000AF7860396000232F
+:10062C00FB817B681B88FB81FB8903F44153FB81B5
+:10063C003B681A883B685B8813439AB23B689B887B
+:10064C0013439AB23B68DB8813439AB23B681B890D
+:10065C0013439AB23B685B8913439AB23B689B89FC
+:10066C0013439AB23B68DB8913439AB2FB89134359
+:10067C00FB817B68FA891A807B689B8B9BB223F485
+:10068C0000639AB27B689A833B681A8A7B681A82E9
+:10069C0000BF1437BD4680BC704700BF80B483B028
+:1006AC0000AF78600B46FB70FB78002B08D07B68A2
+:1006BC001B889BB243F040039AB27B681A8007E018
+:1006CC007B681B889BB223F040039AB27B681A802C
+:1006DC0000BF0C37BD4680BC704700BF80B483B0F0
+:1006EC0000AF78600B467B807A887B681A6100BF0C
+:1006FC000C37BD4680BC704780B483B000AF7860C7
+:10070C000B46FB70FB78002B06D00949084B9A6905
+:10071C007B6813438B6106E00549054B9A697B683E
+:10072C00DB4313408B6100BF0C37BD4680BC704768
+:10073C000010024080B483B000AF78600B467B8021
+:10074C007A887B685A6100BF0C37BD4680BC704705
+:10075C0080B586B000AF01210420FFF7CDFF012149
+:10076C004FF48050FFF7C8FFE023BB820323BB7517
+:10077C001823FB7507F1140319461748FFF78EFE73
+:10078C001023BB821023FB7507F114031946124882
+:10079C00FFF784FE00233B804FF482737B800023A1
+:1007AC00BB800223FB8001233B814FF400737B81D0
+:1007BC000823BB810023FB8107233B823B46194660
+:1007CC000648FFF727FF01210448FFF767FF00BF2A
+:1007DC001837BD4680BD00BF000801400030014005
+:1007EC0080B500AF10211848FFF7A4FF9522002117
+:1007FC00002000F02BF8012000F05EF80346002BDF
+:10080C0001D0FF231DE010210F48FFF767FFFF20E9
+:10081C00FFF71EFE10210C48FFF78CFFFF22002172
+:10082C00012000F013F8002000F046F80346002BDE
+:10083C00E9D110210448FFF751FFFF20FFF708FE14
+:10084C000023184680BD00BF0008014080B586B06B
+:10085C0000AF03463960FB711346BB7100237B610B
+:10086C00FB7943F04003DBB23B733B681B0EDBB2FE
+:10087C007B733B681B0CDBB2BB733B681B0ADBB2A4
+:10088C00FB733B68DBB23B74BB797B7400237B61ED
+:10089C000AE007F10C027B6913441B781846FFF73A
+:1008AC00D7FD7B6901337B617B69052BF1D900BFD7
+:1008BC001837BD4680BD00BF80B584B000AF03467D
+:1008CC00FB7140F6FF73FB6002E0FB68013BFB60D1
+:1008DC0000F012F803461A46FB79934202D0FB68EB
+:1008EC00002BF2D1FB68002B01D1FF2300E0002389
+:1008FC0018461037BD4680BD80B582B000AF0023CE
+:10090C00FB7100BF02210E48FFF76CFD0346002B64
+:10091C00F8D0FF210A48FFF781FD00BF01210848EC
+:10092C00FFF760FD0346002BF8D00548FFF784FD68
+:10093C000346FB71FB7918460837BD4680BD00BFE6
+:10094C000030014080B582B000AF00237B601EE018
+:10095C00FFF7D2FF0346FB70FB7803F01F03FB701D
+:10096C00FB780B2B06D00D2B06D0052B06D10523BF
+:10097C00BB7006E00B2316E00D2314E0FF23BB70C5
+:10098C0000BFBB78052B06D07B6801337B607B688E
+:10099C00402BDDD900E000BF00BFFFF7ADFF0346E1
+:1009AC00002BFAD0FB7818460837BD4680BD00BF37
+:1009BC0080B582B000AF00237B60FFF7C9FE102129
+:1009CC000A48FFF78BFE00237B6005E0FF20FFF752
+:1009DC003FFD7B6801337B607B68092BF6D9FFF701
+:1009EC00FFFE034618460837BD4680BD000801408F
+:1009FC0080B500AF094B1B88002B01D100230AE006
+:100A0C00FFF7D6FF03469AB2044B1A80034B1B88A0
+:100A1C00002BF5D10123184680BD00BF1800002023
+:100A2C0080B500AF00BFFFF7E3FF0346002BFAD100
+:100A3C0000BF80BD80B584B000AF78603B4B1A78A6
+:100A4C003B4B1A70394B00221A700023FB60FF23BA
+:100A5C00FB7210213748FFF76DFEFF2279681820D2
+:100A6C00FFF7F4FE0020FFF727FF0346002B4ED1C3
+:100A7C00FF20FFF7EDFCFE20FFF7EAFC2C4B1B7868
+:100A8C00012B1AD10023FB6014E02B4AFB6832F8CF
+:100A9C001330DBB21846FFF7DBFC274AFB6832F851
+:100AAC0013301B0A9BB2DBB21846FFF7D1FCFB6874
+:100ABC000133FB60FB68FF2BE7D91D4B1B78022B26
+:100ACC001AD10023FB6014E01C4AFB6832F8133087
+:100ADC00DBB21846FFF7BCFC184AFB6832F813303F
+:100AEC001B0A9BB2DBB21846FFF7B2FCFB68013362
+:100AFC00FB60FB68FF2BE7D9FFF7FEFEFFF7FCFE60
+:100B0C00FFF720FF0346052B01D10023FB721021B8
+:100B1C000848FFF7E3FDFF20FFF79AFC044B002287
+:100B2C001A70FB7A18461037BD4680BD300600207F
+:100B3C001B0000200008014030020020300400207F
+:100B4C0080B500AFFFF734FF03461A46144B1A600A
+:100B5C00FFF766FF134B00221A80134B4FF4007201
+:100B6C001A60FFF74DFB114B1B68114AA2FB0323C4
+:100B7C005B0B1846FFF7EEFA0E4B1B78002BFBD0E5
+:100B8C000D4B01221A70084B1B681846FFF752FFD9
+:100B9C00054B1B6803F50073034A1360ECE700BFB9
+:100BAC001400002026020020280200200000002053
+:100BBC005917B7D1300600203206002080B400AFA0
+:100BCC00404B1B78012B29D13F4B1B78012B25D097
+:100BDC003E4BB1221A803E4B1B781A463D4B19886E
+:100BEC003D4B23F812103A4B1B780133DAB2384BD9
+:100BFC001A70374B1B781A46344B1B8899B2364BFC
+:100C0C0023F81210324B1B780133DAB2304B1A70C6
+:100C1C00304B1B8801339AB22E4B1A80294B1B7810
+:100C2C00022B29D1284B1B78022B25D0274BB22223
+:100C3C001A80274B1B781A46264B1988274B23F80A
+:100C4C001210234B1B780133DAB2214B1A70204B54
+:100C5C001B781A461D4B1B8899B2204B23F8121097
+:100C6C001B4B1B780133DAB2194B1A70194B1B88CA
+:100C7C0001339AB2174B1A80154B1B78FE2B0CD1F3
+:100C8C00104B1B78012B08D10E4B02221A70144BFF
+:100C9C0001221A700E4B00221A700D4B1B78FE2B82
+:100CAC000CD1084B1B78022B08D1064B01221A7071
+:100CBC000B4B02221A70064B00221A7000BFBD4665
+:100CCC0080BC70471A0000201B0000202C02002062
+:100CDC0031060020340600203002002030040020B1
+:100CEC00300600204C0D0008000000201C000020E5
+:100CFC001C00002038060020002103E00A4B5B5842
+:100D0C004350043109480A4B42189A42F6D3094A17
+:100D1C0002E0002342F8043B074B9A42F9D3FFF759
+:100D2C003BFAFFF70DFF70474C0D00080000002048
+:100D3C001C0000201C00002038060020FEE70000EC
+:100D4C0000A24A040000000000000000010203049D
+:0C0D5C00060708090A000000FFFF010262
+:0400000508000D05DD
+:00000001FF

File diff suppressed because it is too large
+ 2492 - 0
stm32f1_03/build/main.lst


BIN
stm32f1_03/build/main.o


BIN
stm32f1_03/build/startup_stm32f10x_ld.o


+ 1 - 1
stm32f1_02/build/gdb.scr

@@ -1,4 +1,4 @@
 tar ext :4242
 load
 continue
-print status
+print SCNT

File diff suppressed because it is too large
+ 1818 - 0
stm32f1_03/inc/core_cm3.h


+ 220 - 0
stm32f1_03/inc/misc.h

@@ -0,0 +1,220 @@
+/**
+  ******************************************************************************
+  * @file    misc.h
+  * @author  MCD Application Team
+  * @version V3.5.0
+  * @date    11-March-2011
+  * @brief   This file contains all the functions prototypes for the miscellaneous
+  *          firmware library functions (add-on to CMSIS functions).
+  ******************************************************************************
+  * @attention
+  *
+  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
+  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
+  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
+  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
+  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
+  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
+  *
+  * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
+  ******************************************************************************
+  */
+
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef __MISC_H
+#define __MISC_H
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
+/* Includes ------------------------------------------------------------------*/
+#include "stm32f10x.h"
+
+/** @addtogroup STM32F10x_StdPeriph_Driver
+  * @{
+  */
+
+/** @addtogroup MISC
+  * @{
+  */
+
+/** @defgroup MISC_Exported_Types
+  * @{
+  */
+
+/** 
+  * @brief  NVIC Init Structure definition  
+  */
+
+typedef struct
+{
+  uint8_t NVIC_IRQChannel;                    /*!< Specifies the IRQ channel to be enabled or disabled.
+                                                   This parameter can be a value of @ref IRQn_Type 
+                                                   (For the complete STM32 Devices IRQ Channels list, please
+                                                    refer to stm32f10x.h file) */
+
+  uint8_t NVIC_IRQChannelPreemptionPriority;  /*!< Specifies the pre-emption priority for the IRQ channel
+                                                   specified in NVIC_IRQChannel. This parameter can be a value
+                                                   between 0 and 15 as described in the table @ref NVIC_Priority_Table */
+
+  uint8_t NVIC_IRQChannelSubPriority;         /*!< Specifies the subpriority level for the IRQ channel specified
+                                                   in NVIC_IRQChannel. This parameter can be a value
+                                                   between 0 and 15 as described in the table @ref NVIC_Priority_Table */
+
+  FunctionalState NVIC_IRQChannelCmd;         /*!< Specifies whether the IRQ channel defined in NVIC_IRQChannel
+                                                   will be enabled or disabled. 
+                                                   This parameter can be set either to ENABLE or DISABLE */   
+} NVIC_InitTypeDef;
+ 
+/**
+  * @}
+  */
+
+/** @defgroup NVIC_Priority_Table 
+  * @{
+  */
+
+/**
+@code  
+ The table below gives the allowed values of the pre-emption priority and subpriority according
+ to the Priority Grouping configuration performed by NVIC_PriorityGroupConfig function
+  ============================================================================================================================
+    NVIC_PriorityGroup   | NVIC_IRQChannelPreemptionPriority | NVIC_IRQChannelSubPriority  | Description
+  ============================================================================================================================
+   NVIC_PriorityGroup_0  |                0                  |            0-15             |   0 bits for pre-emption priority
+                         |                                   |                             |   4 bits for subpriority
+  ----------------------------------------------------------------------------------------------------------------------------
+   NVIC_PriorityGroup_1  |                0-1                |            0-7              |   1 bits for pre-emption priority
+                         |                                   |                             |   3 bits for subpriority
+  ----------------------------------------------------------------------------------------------------------------------------    
+   NVIC_PriorityGroup_2  |                0-3                |            0-3              |   2 bits for pre-emption priority
+                         |                                   |                             |   2 bits for subpriority
+  ----------------------------------------------------------------------------------------------------------------------------    
+   NVIC_PriorityGroup_3  |                0-7                |            0-1              |   3 bits for pre-emption priority
+                         |                                   |                             |   1 bits for subpriority
+  ----------------------------------------------------------------------------------------------------------------------------    
+   NVIC_PriorityGroup_4  |                0-15               |            0                |   4 bits for pre-emption priority
+                         |                                   |                             |   0 bits for subpriority                       
+  ============================================================================================================================
+@endcode
+*/
+
+/**
+  * @}
+  */
+
+/** @defgroup MISC_Exported_Constants
+  * @{
+  */
+
+/** @defgroup Vector_Table_Base 
+  * @{
+  */
+
+#define NVIC_VectTab_RAM             ((uint32_t)0x20000000)
+#define NVIC_VectTab_FLASH           ((uint32_t)0x08000000)
+#define IS_NVIC_VECTTAB(VECTTAB) (((VECTTAB) == NVIC_VectTab_RAM) || \
+                                  ((VECTTAB) == NVIC_VectTab_FLASH))
+/**
+  * @}
+  */
+
+/** @defgroup System_Low_Power 
+  * @{
+  */
+
+#define NVIC_LP_SEVONPEND            ((uint8_t)0x10)
+#define NVIC_LP_SLEEPDEEP            ((uint8_t)0x04)
+#define NVIC_LP_SLEEPONEXIT          ((uint8_t)0x02)
+#define IS_NVIC_LP(LP) (((LP) == NVIC_LP_SEVONPEND) || \
+                        ((LP) == NVIC_LP_SLEEPDEEP) || \
+                        ((LP) == NVIC_LP_SLEEPONEXIT))
+/**
+  * @}
+  */
+
+/** @defgroup Preemption_Priority_Group 
+  * @{
+  */
+
+#define NVIC_PriorityGroup_0         ((uint32_t)0x700) /*!< 0 bits for pre-emption priority
+                                                            4 bits for subpriority */
+#define NVIC_PriorityGroup_1         ((uint32_t)0x600) /*!< 1 bits for pre-emption priority
+                                                            3 bits for subpriority */
+#define NVIC_PriorityGroup_2         ((uint32_t)0x500) /*!< 2 bits for pre-emption priority
+                                                            2 bits for subpriority */
+#define NVIC_PriorityGroup_3         ((uint32_t)0x400) /*!< 3 bits for pre-emption priority
+                                                            1 bits for subpriority */
+#define NVIC_PriorityGroup_4         ((uint32_t)0x300) /*!< 4 bits for pre-emption priority
+                                                            0 bits for subpriority */
+
+#define IS_NVIC_PRIORITY_GROUP(GROUP) (((GROUP) == NVIC_PriorityGroup_0) || \
+                                       ((GROUP) == NVIC_PriorityGroup_1) || \
+                                       ((GROUP) == NVIC_PriorityGroup_2) || \
+                                       ((GROUP) == NVIC_PriorityGroup_3) || \
+                                       ((GROUP) == NVIC_PriorityGroup_4))
+
+#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)  ((PRIORITY) < 0x10)
+
+#define IS_NVIC_SUB_PRIORITY(PRIORITY)  ((PRIORITY) < 0x10)
+
+#define IS_NVIC_OFFSET(OFFSET)  ((OFFSET) < 0x000FFFFF)
+
+/**
+  * @}
+  */
+
+/** @defgroup SysTick_clock_source 
+  * @{
+  */
+
+#define SysTick_CLKSource_HCLK_Div8    ((uint32_t)0xFFFFFFFB)
+#define SysTick_CLKSource_HCLK         ((uint32_t)0x00000004)
+#define IS_SYSTICK_CLK_SOURCE(SOURCE) (((SOURCE) == SysTick_CLKSource_HCLK) || \
+                                       ((SOURCE) == SysTick_CLKSource_HCLK_Div8))
+/**
+  * @}
+  */
+
+/**
+  * @}
+  */
+
+/** @defgroup MISC_Exported_Macros
+  * @{
+  */
+
+/**
+  * @}
+  */
+
+/** @defgroup MISC_Exported_Functions
+  * @{
+  */
+
+void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup);
+void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct);
+void NVIC_SetVectorTable(uint32_t NVIC_VectTab, uint32_t Offset);
+void NVIC_SystemLPConfig(uint8_t LowPowerMode, FunctionalState NewState);
+void SysTick_CLKSourceConfig(uint32_t SysTick_CLKSource);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __MISC_H */
+
+/**
+  * @}
+  */
+
+/**
+  * @}
+  */
+
+/**
+  * @}
+  */
+
+/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/

+ 368 - 0
stm32f1_03/inc/stm32_eval.h

@@ -0,0 +1,368 @@
+/**
+  ******************************************************************************
+  * @file    stm32_eval.h
+  * @author  MCD Application Team
+  * @version V4.5.0
+  * @date    07-March-2011
+  * @brief   Header file for stm32_eval.c module.
+  ******************************************************************************
+  * @attention
+  *
+  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
+  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
+  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
+  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
+  * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
+  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
+  *
+  * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
+  ******************************************************************************  
+  */ 
+  
+/* Define to prevent recursive inclusion -------------------------------------*/
+#ifndef __STM32_EVAL_H
+#define __STM32_EVAL_H
+
+#ifdef __cplusplus
+ extern "C" {
+#endif 
+
+/* Includes ------------------------------------------------------------------*/
+
+/** @addtogroup Utilities
+  * @{
+  */ 
+  
+/** @addtogroup STM32_EVAL
+  * @{
+  */ 
+
+/** @defgroup STM32_EVAL_Abstraction_Layer
+  * @{
+  */
+  
+/** @defgroup STM32_EVAL_HARDWARE_RESOURCES
+  * @{
+  */
+
+/**
+@code  
+ The table below gives an overview of the hardware resources supported by each 
+ STM32 EVAL board.
+     - LCD: TFT Color LCD (Parallel (FSMC) and Serial (SPI))
+     - IOE: IO Expander on I2C
+     - sFLASH: serial SPI FLASH (M25Pxxx)
+     - sEE: serial I2C EEPROM (M24C08, M24C32, M24C64)
+     - TSENSOR: Temperature Sensor (LM75)
+     - SD: SD Card memory (SPI and SDIO (SD Card MODE)) 
+  =================================================================================================================+
+    STM32 EVAL     | LED | Buttons  | Com Ports |    LCD    | IOE  | sFLASH | sEE | TSENSOR | SD (SPI) | SD(SDIO)  |
+  =================================================================================================================+
+   STM3210B-EVAL   |  4  |    8     |     2     | YES (SPI) | NO   |  YES   | NO  |   YES   |    YES   |    NO     |
+  -----------------------------------------------------------------------------------------------------------------+
+   STM3210E-EVAL   |  4  |    8     |     2     | YES (FSMC)| NO   |  YES   | NO  |   YES   |    NO    |    YES    |
+  -----------------------------------------------------------------------------------------------------------------+
+   STM3210C-EVAL   |  4  |    3     |     1     | YES (SPI) | YES  |  NO    | YES |   NO    |    YES   |    NO     |
+  -----------------------------------------------------------------------------------------------------------------+
+   STM32100B-EVAL  |  4  |    8     |     2     | YES (SPI) | NO   |  YES   | NO  |   YES   |    YES   |    NO     |
+  -----------------------------------------------------------------------------------------------------------------+
+   STM32L152-EVAL  |  4  |    8     |     2     | YES (SPI) | NO   |  NO    | NO  |   YES   |    YES   |    NO     |
+  -----------------------------------------------------------------------------------------------------------------+
+   STM32100E-EVAL  |  4  |    8     |     2     | YES (FSMC)| YES  |  YES   | YES |   YES   |    YES   |    NO     |
+  =================================================================================================================+
+@endcode
+*/
+
+/**
+  * @}
+  */
+  
+/** @defgroup STM32_EVAL_Exported_Types
+  * @{
+  */
+typedef enum 
+{
+  LED1 = 0,
+  LED2 = 1,
+  LED3 = 2,
+  LED4 = 3
+} Led_TypeDef;
+
+typedef enum 
+{  
+  BUTTON_WAKEUP = 0,
+  BUTTON_TAMPER = 1,
+  BUTTON_KEY = 2,
+  BUTTON_RIGHT = 3,
+  BUTTON_LEFT = 4,
+  BUTTON_UP = 5,
+  BUTTON_DOWN = 6,
+  BUTTON_SEL = 7
+} Button_TypeDef;
+
+typedef enum 
+{  
+  BUTTON_MODE_GPIO = 0,
+  BUTTON_MODE_EXTI = 1
+} ButtonMode_TypeDef;
+
+typedef enum 
+{ 
+  JOY_NONE = 0,
+  JOY_SEL = 1,
+  JOY_DOWN = 2,
+  JOY_LEFT = 3,
+  JOY_RIGHT = 4,
+  JOY_UP = 5
+} JOYState_TypeDef
+;
+
+typedef enum 
+{
+  COM1 = 0,
+  COM2 = 1
+} COM_TypeDef;   
+/**
+  * @}
+  */ 
+  
+/** @defgroup STM32_EVAL_Exported_Constants
+  * @{
+  */
+
+/** 
+  * @brief  Uncomment the line corresponding to the STMicroelectronics evaluation
+  *   board used in your application.
+  *   
+  *  Tip: To avoid modifying this file each time you need to switch between these
+  *       boards, you can define the board in your toolchain compiler preprocessor.    
+  */ 
+#if !defined (USE_STM32100B_EVAL) && !defined (USE_STM3210B_EVAL) &&  !defined (USE_STM3210E_EVAL)\
+   &&  !defined (USE_STM3210C_EVAL) &&  !defined (USE_STM32L152_EVAL) &&  !defined (USE_STM32100E_EVAL)
+ //#define USE_STM32100B_EVAL
+ //#define USE_STM3210B_EVAL
+ //#define USE_STM3210E_EVAL
+ //#define USE_STM3210C_EVAL
+ //#define USE_STM32L152_EVAL
+ //#define USE_STM32100E_EVAL
+#endif
+
+#ifdef USE_STM32100B_EVAL
+ #include "stm32f10x.h"
+ #include "stm32100b_eval/stm32100b_eval.h"
+#elif defined USE_STM3210B_EVAL
+ #include "stm32f10x.h"
+ #include "stm3210b_eval/stm3210b_eval.h" 
+#elif defined USE_STM3210E_EVAL
+ #include "stm32f10x.h"
+ #include "stm3210e_eval/stm3210e_eval.h"
+#elif defined USE_STM3210C_EVAL
+ #include "stm32f10x.h"
+ #include "stm3210c_eval/stm3210c_eval.h"
+#elif defined USE_STM32L152_EVAL
+ #include "stm32l1xx.h"
+ #include "stm32l152_eval/stm32l152_eval.h" 
+#elif defined USE_STM32100E_EVAL
+ #include "stm32f10x.h"
+ #include "stm32100e_eval/stm32100e_eval.h"
+#else 
+ #error "Please select first the STM32 EVAL board to be used (in stm32_eval.h)"
+#endif                      
+
+
+/** 
+  * @brief  STM32 Button Defines Legacy  
+  */ 
+#define Button_WAKEUP        BUTTON_WAKEUP
+#define Button_TAMPER        BUTTON_TAMPER
+#define Button_KEY           BUTTON_KEY
+#define Button_RIGHT         BUTTON_RIGHT
+#define Button_LEFT          BUTTON_LEFT
+#define Button_UP            BUTTON_UP
+#define Button_DOWN          BUTTON_DOWN
+#define Button_SEL           BUTTON_SEL
+#define Mode_GPIO            BUTTON_MODE_GPIO
+#define Mode_EXTI            BUTTON_MODE_EXTI
+#define Button_Mode_TypeDef  ButtonMode_TypeDef
+#define JOY_CENTER           JOY_SEL
+#define JOY_State_TypeDef    JOYState_TypeDef 
+
+/** 
+  * @brief  LCD Defines Legacy  
+  */ 
+#define LCD_RSNWR_GPIO_CLK  LCD_NWR_GPIO_CLK
+#define LCD_SPI_GPIO_PORT   LCD_SPI_SCK_GPIO_PORT
+#define LCD_SPI_GPIO_CLK    LCD_SPI_SCK_GPIO_CLK
+#define R0                  LCD_REG_0
+#define R1                  LCD_REG_1
+#define R2                  LCD_REG_2
+#define R3                  LCD_REG_3
+#define R4                  LCD_REG_4
+#define R5                  LCD_REG_5
+#define R6                  LCD_REG_6
+#define R7                  LCD_REG_7
+#define R8                  LCD_REG_8
+#define R9                  LCD_REG_9
+#define R10                 LCD_REG_10
+#define R12                 LCD_REG_12
+#define R13                 LCD_REG_13
+#define R14                 LCD_REG_14
+#define R15                 LCD_REG_15
+#define R16                 LCD_REG_16
+#define R17                 LCD_REG_17
+#define R18                 LCD_REG_18
+#define R19                 LCD_REG_19
+#define R20                 LCD_REG_20
+#define R21                 LCD_REG_21
+#define R22                 LCD_REG_22
+#define R23                 LCD_REG_23
+#define R24                 LCD_REG_24
+#define R25                 LCD_REG_25
+#define R26                 LCD_REG_26
+#define R27                 LCD_REG_27
+#define R28                 LCD_REG_28
+#define R29                 LCD_REG_29
+#define R30                 LCD_REG_30
+#define R31                 LCD_REG_31
+#define R32                 LCD_REG_32
+#define R33                 LCD_REG_33
+#define R34                 LCD_REG_34
+#define R36                 LCD_REG_36
+#define R37                 LCD_REG_37
+#define R40                 LCD_REG_40
+#define R41                 LCD_REG_41
+#define R43                 LCD_REG_43
+#define R45                 LCD_REG_45
+#define R48                 LCD_REG_48
+#define R49                 LCD_REG_49
+#define R50                 LCD_REG_50
+#define R51                 LCD_REG_51
+#define R52                 LCD_REG_52
+#define R53                 LCD_REG_53
+#define R54                 LCD_REG_54
+#define R55                 LCD_REG_55
+#define R56                 LCD_REG_56
+#define R57                 LCD_REG_57
+#define R59                 LCD_REG_59
+#define R60                 LCD_REG_60
+#define R61                 LCD_REG_61
+#define R62                 LCD_REG_62
+#define R63                 LCD_REG_63
+#define R64                 LCD_REG_64
+#define R65                 LCD_REG_65
+#define R66                 LCD_REG_66
+#define R67                 LCD_REG_67
+#define R68                 LCD_REG_68
+#define R69                 LCD_REG_69
+#define R70                 LCD_REG_70
+#define R71                 LCD_REG_71
+#define R72                 LCD_REG_72
+#define R73                 LCD_REG_73
+#define R74                 LCD_REG_74
+#define R75                 LCD_REG_75
+#define R76                 LCD_REG_76
+#define R77                 LCD_REG_77
+#define R78                 LCD_REG_78
+#define R79                 LCD_REG_79
+#define R80                 LCD_REG_80
+#define R81                 LCD_REG_81
+#define R82                 LCD_REG_82
+#define R83                 LCD_REG_83
+#define R96                 LCD_REG_96
+#define R97                 LCD_REG_97
+#define R106                LCD_REG_106
+#define R118                LCD_REG_118
+#define R128                LCD_REG_128
+#define R129                LCD_REG_129
+#define R130                LCD_REG_130
+#define R131                LCD_REG_131
+#define R132                LCD_REG_132
+#define R133                LCD_REG_133
+#define R134                LCD_REG_134
+#define R135                LCD_REG_135
+#define R136                LCD_REG_136
+#define R137                LCD_REG_137
+#define R139                LCD_REG_139
+#define R140                LCD_REG_140
+#define R141                LCD_REG_141
+#define R143                LCD_REG_143
+#define R144                LCD_REG_144
+#define R145                LCD_REG_145
+#define R146                LCD_REG_146
+#define R147                LCD_REG_147
+#define R148                LCD_REG_148
+#define R149                LCD_REG_149
+#define R150                LCD_REG_150
+#define R151                LCD_REG_151
+#define R152                LCD_REG_152
+#define R153                LCD_REG_153
+#define R154                LCD_REG_154
+#define R157                LCD_REG_157
+#define R192                LCD_REG_192
+#define R193                LCD_REG_193
+#define R227                LCD_REG_227
+#define R229                LCD_REG_229
+#define R231                LCD_REG_231
+#define R239                LCD_REG_239
+#define White               LCD_COLOR_WHITE
+#define Black               LCD_COLOR_BLACK
+#define Grey                LCD_COLOR_GREY
+#define Blue                LCD_COLOR_BLUE
+#define Blue2               LCD_COLOR_BLUE2
+#define Red                 LCD_COLOR_RED
+#define Magenta             LCD_COLOR_MAGENTA
+#define Green               LCD_COLOR_GREEN
+#define Cyan                LCD_COLOR_CYAN
+#define Yellow              LCD_COLOR_YELLOW
+#define Line0               LCD_LINE_0
+#define Line1               LCD_LINE_1
+#define Line2               LCD_LINE_2
+#define Line3               LCD_LINE_3
+#define Line4               LCD_LINE_4
+#define Line5               LCD_LINE_5
+#define Line6               LCD_LINE_6
+#define Line7               LCD_LINE_7
+#define Line8               LCD_LINE_8
+#define Line9               LCD_LINE_9
+#define Horizontal          LCD_DIR_HORIZONTAL
+#define Vertical            LCD_DIR_VERTICAL
+
+
+/**
+  * @}
+  */ 
+
+/** @defgroup STM32_EVAL_Exported_Macros
+  * @{
+  */ 
+/**
+  * @}
+  */ 
+
+/** @defgroup STM32_EVAL_Exported_Functions
+  * @{
+  */ 
+/**
+  * @}
+  */ 
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif /* __STM32_EVAL_H */
+
+/**
+  * @}
+  */ 
+
+/**
+  * @}
+  */ 
+
+/**
+  * @}
+  */   
+
+/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/

+ 0 - 0
stm32f1_03/inc/stm32f10x.h


Some files were not shown because too many files changed in this diff