summaryrefslogtreecommitdiff
path: root/ecos/packages/hal/cortexm/stm32/var/current/ChangeLog
blob: acc15b369205820f02c4d73acbf922acdb2ae53a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
2014-02-28  John Dallaway  <john@dallaway.org.uk>

	* src/stm32_misc.c: Ensure TIM2 clock enabled when profiling.
	[Bugzilla 1001953]

2013-04-06  Jerzy Dyrda  <jerzdy@gmail.com>

	* include/var_io_eth.h: 
	* include/var_io.h: Update ETH macros for F4 device. [ Bugzilla 1001219 ]

2013-01-19  John Dallaway  <john@dallaway.org.uk>

	* include/var_io.h: Fix CYGHWR_HAL_STM32_UART6 definition.

2012-04-23  James Smith  <jsmith@ecoscentric.com>

	* include/var_io_pins.h (CYGHWR_HAL_STM32_PIN_IN): Removed
	spurious parameter since the API for this macro should match the
	F2/F4 (HIPERFORMANCE) definition.

	* include/var_io_eth.h: Update F1 ETH_MII
	CYGHWR_HAL_STM32_PIN_IN() usage to reflect correct API.

2012-04-13  Christophe Coutand  <ecos@hotmail.co.uk>

	* include/var_io.h:
	Added definitions, CYGHWR_HAL_STM32_USB_CLOCK, 
	CYGHWR_HAL_STM32_CAN1_CLOCK and CYGHWR_HAL_STM32_CAN2_CLOCK 

2012-03-27  James Smith  <jsmith@ecoscentric.com>

	* tests/timers.c (TIMER_PRI): Add macro and manifests to allow
	easy manipulation of the base and delta between the timer
	priorities being tested.

2012-03-23  James Smith  <jsmith@ecoscentric.com>

	* include/var_io_usart.h: Provide common/shared UART pin
	definitions for F1, F2 and F4 devices using the new PIN wrapper
	macros. The RTS pin definitions for all STM32F families now use
	GPIO output since the driver uses software controlled
	RTS. Previously the F2/F4 defined the RTS pins as ALTFN.

	* include/var_io.h: Provide common/shared ADC pin definitions for
	F1, F2 and F4 devices using the new PIN_ANALOG() wrapper macro.

	* include/var_io_eth.h: Provide common MII pin definitions using
	the new PIN wrapper macros. Also remove MII_REMAP which was
	incorrectly using the wrong manifests (STM3210C-EVAL networking
	would not work) since decision taken that "plf_io.h" should
	contain board specific I/O pin mapping.

	* cdl/hal_cortexm_stm32.cdl: Remove CYGPKG_HAL_STM32_ETH and
	sub-option CYGHWR_HAL_STM32_ETH_MII_REMAP since ethernet pin
	mapping now present in platform specific "plf_io.h" header.

2012-03-22  James Smith  <jsmith@ecoscentric.com>

	* include/var_io_pins.h: Provide "common" wrapper macros
	CYGHWR_HAL_STM32_PIN_OUT, CYGHWR_HAL_STM32_PIN_ALTFN_OUT,
	CYGHWR_HAL_STM32_PIN_IN, CYGHWR_HAL_STM32_PIN_ALTFN_IN and
	CYGHWR_HAL_STM32_PIN_ANALOG for defining I/O pins to allow the
	same (where applicable) source calls to be used regardless of
	whether the target is F1 or HIPERFORMANCE (F2/F4).

	* cdl/hal_cortexm_stm32.cdl: Remove CYGPKG_HAL_STM32_ETH and
	sub-option CYGHWR_HAL_STM32_ETH_MII_REMAP since ethernet pin
	mapping now present in platform specific "plf_io.h" header.

2012-03-21  James Smith  <jsmith@ecoscentric.com>

	* include/var_io_pins.h: Provide similar support for F1 family
	devices as available for F2/F4 family devices by adding AT_LEAST
	and AT_MOST macros for specifying OUTPUT pin speed limits, and
	providing generic LOW, MED and FAST manifests to hide the actual
	device speed.

	* src/stm32_misc.c (hal_stm32_gpio_set): Use
	CYGHWR_HAL_STM32_GPIO_CNFMODE_SET macro instead of explicit
	bitmask manipulation for seeting F1 CRL/CRH.

2012-03-15  James Smith  <jsmith@ecoscentric.com>

	* src/stm32_misc.c:
	* src/stm32_dma.c:
	* src/hal_diag.c:
	* include/var_io_usart.h:
	* include/var_io_pins.h:
	* include/var_io_eth.h:
	* include/var_io.h:
	* include/var_intr.h:
	* include/var_dma.h: Use HIPERFORMANCE manifest to add support for
	F4 devices.

	* cdl/hal_cortexm_stm32.cdl: Many minor changes to support
	Cortex-M4 and STM32F4 devices.

	* tests/timers.c (timers): Add TIM8_UP_TIM13 to the set of timers
	tested for those platforms where it is defined.

2012-03-13  James Smith  <jsmith@ecoscentric.com>

	* include/var_io.h (HAL_AARDVARK_CHECK_I2C): Macro for specific
	STM32 F1 devices that suffer from an I2C/FSMC errata to allow the
	Aardvark test cases to operate. Added STM32F4 RTC manifests.

2012-02-28  James Smith  <jsmith@ecoscentric.com>

	* src/stm32_dma.c (hal_stm32_dma_disable): Add new function to
	allow temporary disable of DMA stream for circular mode
	configurations.

	* include/var_dma.h: Added prototype for newly added
	hal_stm32_dma_disable() function.

2012-02-28  James Smith  <jsmith@ecoscentric.com>

	* src/stm32_dma.c (hal_stm32_dma_isr): Do not disable the stream
	when configured for circular mode.

2012-02-24  James Smith  <jsmith@ecoscentric.com>

	* include/var_io.h: Provide manifests covering STM32F2 ADC
	support.

	* include/var_intr.h: Provide explicit DMA2 CH4 and CH5 manifests
	for non-connectivity devices (e.g. STM3210E-EVAL target).

	* include/var_dma.h:
	* src/stm32_dma.c (hal_stm32_dma_configure_circular): Provide
	function to enable/disable DMA circular mode, and provide
	prototype in header and documentation.

2012-02-17  James Smith  <jsmith@ecoscentric.com>

	* include/var_io_pins.h: Fix F2 MODE_SET and OSPEED_SET macros to
	correctly mask register field bits.

2012-01-20  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_intr.h (CYGNUM_HAL_VSR_MAX): Reverse an earlier
	change to this value.

2012-01-13  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_io.h: Add shifts for RTC TR and DR register fields.

2012-01-12  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_intr.h: Reorganize vectors 43-49 so they are defined
	correctly for F2 devices.

	* include/var_io.h: Tidy up DMA defines. Move I2C and SPI pin and
	DMA channel definitions out to platform HALs.

	* include/var_io_pins.h (CYGHWR_HAL_STM32_GPIO_PUPD_SET): Fix
	buglet in register clear code.

	* cdl/hal_cortexm_stm32.cdl:
	* include/var_dma.h:
	* src/stm32_dma.c: Add DMA API.

2011-12-15  Jonathan Larmour  <jifl@eCosCentric.com>

	* cdl/hal_cortexm_stm32.cdl (CYGHWR_HAL_CORTEXM_STM32_CONNECTIVITY):
	Rather than list every F2 part, just say all F2 since we don't yet know
	of F2 parts that don't have connectivity.
	(CYGHWR_HAL_STM32_ETH_MII_REMAP): Allow pin remapping to be configurable
	as a standard setting, alternate mapping, or provided by the platform.
	* include/var_io.h: Add MCO1_MASK/MCO2_MASK and
	MCO1PRE_MASK/MCO2PRE_MASK defns. Add CYGHWR_HAL_STM32_FLASH_CR_PSIZE()
	to make flash parallelism easier to set.
	* include/var_io_eth.h: Fix MACMIIAR_CR_MASK define.
	Allow specification (and checking) of MACMIIAR_CR to set MDC clock
	according to defined MHz ranges - this allows it to vary between
	processors.
	Support above CYGHWR_HAL_STM32_ETH_MII_REMAP changes.
	Add alternate mappings for F2 eth pins (although it's a different
	subset to F1.

2011-12-12  Jonathan Larmour  <jifl@eCosCentric.com>

	* src/stm32_misc.c (hal_start_clocks): Remove unnecessary fiddling
	after RCC reset. Avoid overflow from PLL multiplier. Handle PLLQ
	and RTCPRE on F2.

	* include/var_io.h (CYGHWR_HAL_STM32_RCC_CFGR_RTCPRE): Add set macro
	separate from mask.

	* cdl/hal_cortexm_stm32.cdl: Improve clock option descriptions. Add
	CYGHWR_HAL_CORTEXM_STM32_CLOCK_PLLQ_DIV.

2011-12-08  Jonathan Larmour  <jifl@eCosCentric.com>

	* cdl/hal_cortexm_stm32.cdl: Add selections for processors in F2
	family, and allow discrimination between those and F1.
	* include/var_intr.h: Modify and add to interrupt list for F2.
	(HAL_VAR_INTERRUPT_{MASK,UNMASK,ACKNOWLEDGE,CONFIGURE ): Update
	EXTI interrupts that need special mapping for F2.
	* include/var_io.h: Many additions and changes for F2. To avoid
	an unmanageable size, split out GPIO/pin config, USART and ETH
	peripheral definitions into new files.
	* include/var_io_pins.h: New file for GPIO and pin configuration.
	* include/var_io_usart.h: New file for USART definitions.
	* include/var_io_eth.h: New file for Ethernet peripheral definitions.
	* src/hal_diag.c: Allow for new style pin remapping used by F2
	while still allowing F1 to work.
	Support USART6 (which we call UART5).
	(hal_stm32_serial_init_channel): Only use AFIO on F1.
	* src/stm32_misc.c (hal_stm32_gpio_{set,out,in}): Support new GPIO
	pin setting.
	(hal_stm32_uart_setbaud): Support UART6 (called UART5 in CDL).
	(hal_enable_profile_timer): Ensure timer peripheral (defaulting to TIM6)
	has its clock enabled.

2011-10-07  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_io.h: Separate FSMC and ETH register definitions,
	which seem to have got a little mixed together at some point.

2011-02-03  Alan Bowman  <alan.bowman@datong.co.uk>

	* include/var_io.h: Fix CYGHWR_HAL_STM32_RCC_CFGR_PPRE2_*
	definitions. [ Bugzilla 1001137 ]

2011-01-21  Ilija Kocho  <ilijak@siva.com.mk>

	* src/stm32_misc.c (hal_start_clocks): Added optional calculation of
	hal_cortexm_systick_clock when 'internal' clock source is selected.

2011-01-13  John Dallaway  <john@dallaway.org.uk>

	* src/stm32_misc.c: Implement a profiling timer on TIM2.
	* cdl/hal_cortexm_stm32.cdl: Add CDL option to enable the profiling
	timer.

2011-01-13  Nick Garnett  <nickg@ecoscentric.com>

	* src/stm32_misc.c (hal_start_clocks): Correct bit clear operation
	when disabling external clock.

2009-10-26  Ross Younger  <wry@ecoscentric.com>

	* include/var_io.h: Minor corrections to the FSMC register defs.

2009-10-22  Nick Garnett  <nickg@ecoscentric.com>

	* cdl/hal_cortexm_stm32.cdl:
	* include/var_io.h: Add remap configuration for SPI busses.

2009-08-10  Simon Kallweit  <simon.kallweit@intefo.ch>

	* include/var_io.h: Added more register definitions for FSMC

2009-07-02  Nick Garnett  <nickg@ecoscentric.com>

	* cdl/hal_cortexm_stm32.cdl: Add remap configuration for UARTS.

	* include/var_io.h (CYGHWR_HAL_STM32_AFIO_CLOCK): Add AFIO clock control.
	(CYGHWR_HAL_STM32_UART*_REMAP_CONFIG): Add remap support for UARTS.

	* src/hal_diag.c (channel_data_t, hal_stm32_serial_init_channel):
	Add support for UART remapping.

2009-06-29  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_io.h (CYGHWR_HAL_STM32_ETH): Add support for
	ethernet device on connectivity line devices.
	Add device clock control support.

	* include/var_intr.h:
	* cdl/hal_cortexm_stm32.cdl: Add support for connectivity line
	devices.

	* src/stm32_misc.c (hal_variant_init): Remove default enable of
	all device clocks.
	(hal_stm32_clock_enable, hal_stm32_clock_disable): Add routines to
	enable individual device clocks.

	* src/hal_diag.c (stm32_ser_channels)
	(hal_stm32_serial_init_channel): Add clock enable support.

2009-04-17  Simon Kallweit  <simon.kallweit@intefo.ch>

	* src/hal_diag.c (hal_stm32_serial_getc_timeout): Fix for higher
	baudrates. The original version lost bytes due to the long
	timeout.

2009-03-23  Nick Garnett  <nickg@ecoscentric.com>

	* src/stm32_misc.c (hal_variant_init): Add write to AHBENR
	register to enable all AHB based devices.

	* include/var_io.h (CYGHWR_HAL_STM32_IWDG_*): Add defines for
	independent watchdog.

2009-02-27  Simon Kallweit  <simon.kallweit@intefo.ch>

	* include/var_io.h:
	Add mask for CYGHWR_HAL_STM32_RCC_CFGR_ADCPRE.
	Fixed CYGHWR_HAL_STM32_RTC_CRL_ALRF.
	Add register definitions for ADC.
	Add additional timer registers.
	* src/stm32_mis.c:
	Moved system clock initialization into it's own function, so it can
	be called after wakeup from sleep modes.
	Added hal_stm32_timer_clock() to get current clock of timers.

2009-02-10  Chris Holgate  <chris@zynaptic.com>

	* include/var_io.h: Add mask for CYGHWR_HAL_STM32_AFIO_MAPR_SWJ.

2009-02-04  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_intr.h: Various fixes to allow external interrupts
	to work.

	* include/var_io.h: Add AFIO, DMA, SPI and USB definitions.

	* src/stm32_misc.c (hal_stm32_gpio_set): Refetch bit number for
	setting pullup/down.

2008-11-24  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_intr.h (CYGNUM_HAL_INTERRUPT_DMA1_CHX): Rename DMA0
	to DMA1 to match ST's numbering elsewhere.

	* include/var_io.h (CYGHWR_HAL_STM32_GPIO_CFG): Remove PULLUP bit
	from mask. Previous addition was incorrect.

2008-11-24  Simon Kallweit  <simon.kallweit@intefo.ch>

	* include/var_io.h: Corrected capitalisation.
	
2008-11-12  Simon Kallweit  <simon.kallweit@intefo.ch>

	* include/var_io.h: Changed CYGHWR_HAL_STM32_BD_UNPROTECT to
	CYGHWR_HAL_STM32_BD_PROTECT, inverting the argument.
	* src/stm32_misc.c: Changed hal_stm32_bd_unprotect() to
	hal_stm32_bd_protect(), inverting the argument.

2008-11-11  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_io.h: Add power control definitions.

	* src/stm32_misc.c (hal_stm32_bd_unprotect): Add this function to
	control backup domain write protection.

2008-10-14  Nick Garnett  <nickg@ecoscentric.com>

	* tests/timers.c: Add ifdefs to avoid compiling tests when not all
	packages or components are present.

2008-10-10  Nick Garnett  <nickg@ecoscentric.com>

	* cdl/hal_cortexm_stm32.cdl: Only build tests if the kernel is present.

	* include/var_io.h (CYGHWR_HAL_STM32_GPIO_CFG): Add PULLUP bit to mask.

	* tests/timers.c (timers_test): Terminate with PASS_FINISH rather
	than just FINISH.

2008-10-08  Nick Garnett  <nickg@ecoscentric.com>

	* include/var_intr.h (CYGNUM_HAL_ISR_MAX, CYGNUM_HAL_VSR_MAX): Fix
	definition of these values.

	* tests/timers.c: Fix to run for maximum duration of 2 minutes.

2008-10-06  Nick Garnett  <nickg@ecoscentric.com>

	* cdl/hal_cortexm_stm32.cdl:
	* include/variant.inc:
	* include/var_arch.h:
	* include/var_intr.h:
	* include/var_io.h:
	* include/hal_cache.h:
	* include/hal_diag.h:
	* include/plf_stub.h:
	* src/hal_diag.c:
	* src/stm32_misc.c:
	New package -- ST STM32 variant HAL.	
	
//===========================================================================
// ####GPLCOPYRIGHTBEGIN####                                                
// -------------------------------------------                              
// This file is part of eCos, the Embedded Configurable Operating System.   
// Copyright (C) 2008, 2009, 2011, 2013, 2014 Free Software Foundation, Inc.                        
//
// This program is free software; you can redistribute it and/or modify     
// it under the terms of the GNU General Public License as published by     
// the Free Software Foundation; either version 2 or (at your option) any   
// later version.                                                           
//
// This program is distributed in the hope that it will be useful, but      
// WITHOUT ANY WARRANTY; without even the implied warranty of               
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
// General Public License for more details.                                 
//
// You should have received a copy of the GNU General Public License        
// along with this program; if not, write to the                            
// Free Software Foundation, Inc., 51 Franklin Street,                      
// Fifth Floor, Boston, MA  02110-1301, USA.                                
// -------------------------------------------                              
// ####GPLCOPYRIGHTEND####                                                  
//===========================================================================