source: rtems/c/src/lib/libbsp/arm/stm32f4/preinstall.am @ 7db6953

4.11
Last change on this file since 7db6953 was 7db6953, checked in by Tomasz Gregorek <tomasz.gregorek@…>, on Sep 21, 2014 at 6:07:41 PM

bsp/stm32f4XXXX: System clock configuration

Added simple math to caclulate register values for the PLL
and for the prescalers. It will try to keep 48MHz for the USB OTG FS.
Also it will set latency on the Flash memory for the high speeds.

Limitations:
It is assumed that 1MHz resolution is enough.
Best fits for the clocks are achieved with multiplies of 42MHz.
Even though APB1, APB2 and AHB are calculated user is still required
to provide correct values for the bsp configuration for the:
STM32F4_PCLK1
STM32F4_PCLK2
STM32F4_HCLK (= system clock)
as those are used for the peripheral clocking calculations.

  • Property mode set to 100644
File size: 6.3 KB
Line 
1## Automatically generated by ampolish3 - Do not edit
2
3if AMPOLISH3
4$(srcdir)/preinstall.am: Makefile.am
5        $(AMPOLISH3) $(srcdir)/Makefile.am > $(srcdir)/preinstall.am
6endif
7
8PREINSTALL_DIRS =
9DISTCLEANFILES += $(PREINSTALL_DIRS)
10
11all-am: $(PREINSTALL_FILES)
12
13PREINSTALL_FILES =
14CLEANFILES = $(PREINSTALL_FILES)
15
16all-local: $(TMPINSTALL_FILES)
17
18TMPINSTALL_FILES =
19CLEANFILES += $(TMPINSTALL_FILES)
20
21$(PROJECT_LIB)/$(dirstamp):
22        @$(MKDIR_P) $(PROJECT_LIB)
23        @: > $(PROJECT_LIB)/$(dirstamp)
24PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
25
26$(PROJECT_INCLUDE)/$(dirstamp):
27        @$(MKDIR_P) $(PROJECT_INCLUDE)
28        @: > $(PROJECT_INCLUDE)/$(dirstamp)
29PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
30
31$(PROJECT_INCLUDE)/bsp/$(dirstamp):
32        @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp
33        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
34PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
35
36$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
37        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
38PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
39
40$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
41        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
42TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
43
44$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
45        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
46TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
47
48$(PROJECT_INCLUDE)/tm27.h: ../../shared/include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
49        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
50PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
51
52$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
53        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
54PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
55
56$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
57        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
58PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
59
60$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
61        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
62PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
63
64$(PROJECT_INCLUDE)/bsp/bootcard.h: ../../shared/include/bootcard.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
65        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/bootcard.h
66PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/bootcard.h
67
68$(PROJECT_INCLUDE)/bsp/utility.h: ../../shared/include/utility.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
69        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/utility.h
70PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/utility.h
71
72$(PROJECT_INCLUDE)/bsp/irq-generic.h: ../../shared/include/irq-generic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
73        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-generic.h
74PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-generic.h
75
76$(PROJECT_INCLUDE)/bsp/irq-info.h: ../../shared/include/irq-info.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
77        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-info.h
78PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-info.h
79
80$(PROJECT_INCLUDE)/bsp/stackalloc.h: ../../shared/include/stackalloc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
81        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stackalloc.h
82PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stackalloc.h
83
84$(PROJECT_INCLUDE)/bsp/start.h: ../shared/include/start.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
85        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/start.h
86PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/start.h
87
88$(PROJECT_INCLUDE)/bsp/armv7m-irq.h: ../shared/armv7m/include/armv7m-irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
89        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/armv7m-irq.h
90PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/armv7m-irq.h
91
92$(PROJECT_INCLUDE)/bsp/irq.h: include/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
94PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
95
96$(PROJECT_INCLUDE)/bsp/usart.h: include/usart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/usart.h
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/usart.h
99
100$(PROJECT_INCLUDE)/bsp/stm32f4.h: include/stm32f4.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
101        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f4.h
102PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f4.h
103
104$(PROJECT_INCLUDE)/bsp/stm32f10xxx_gpio.h: include/stm32f10xxx_gpio.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
105        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f10xxx_gpio.h
106PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f10xxx_gpio.h
107
108$(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h: include/stm32f10xxx_rcc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h
110PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f10xxx_rcc.h
111
112$(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h: include/stm32f10xxx_exti.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h
114PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f10xxx_exti.h
115
116$(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h: include/stm32f4xxxx_gpio.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h
118PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_gpio.h
119
120$(PROJECT_INCLUDE)/bsp/stm32f4xxxx_rcc.h: include/stm32f4xxxx_rcc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
121        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_rcc.h
122PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_rcc.h
123
124$(PROJECT_INCLUDE)/bsp/stm32f4xxxx_flash.h: include/stm32f4xxxx_flash.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_flash.h
126PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32f4xxxx_flash.h
127
128$(PROJECT_INCLUDE)/bsp/stm32_i2c.h: include/stm32_i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
129        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32_i2c.h
130PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32_i2c.h
131
132$(PROJECT_INCLUDE)/bsp/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/i2c.h
134PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/i2c.h
135
136$(PROJECT_INCLUDE)/bsp/stm32_usart.h: include/stm32_usart.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/stm32_usart.h
138PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/stm32_usart.h
139
140$(PROJECT_INCLUDE)/bsp/io.h: include/io.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/io.h
142PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/io.h
143
144$(PROJECT_INCLUDE)/bsp/rcc.h: include/rcc.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/rcc.h
146PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/rcc.h
147
Note: See TracBrowser for help on using the repository browser.