riscv-openocd/src
Andreas Fritiofson a1f6b6612b stm32f1x: improve variable naming and avoid potential divide-by-zero
Don't call a variable num_pages if it holds the flash size. Also rearrange
flash size to num_pages calculation to avoid divide-by-zero if there will
be a device with < 1024 byte pages someday.

Change-Id: I2febea39694a2f9750de141f52ec88ae1599c086
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/211
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2011-11-17 17:28:13 +00:00
..
flash stm32f1x: improve variable naming and avoid potential divide-by-zero 2011-11-17 17:28:13 +00:00
helper Fix "Evaluate 'script' in the global scope" 2011-10-24 17:40:52 +00:00
jtag bitq: make private functions static 2011-11-16 23:47:59 +00:00
pld Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
rtos ecos: add missing error propagation 2011-11-07 16:14:47 +00:00
server gdb_server: assert to avoid malloc(0) 2011-11-03 11:16:16 +00:00
svf svf: fix warnings 2011-11-10 15:43:30 +00:00
target target: make it absolutely clear that no null pointers are accepted 2011-11-14 23:39:20 +00:00
transport transport: move files over to transport folder 2011-06-13 15:51:04 +02:00
xsvf xsvf: add missing error propagation 2011-11-07 20:35:42 +00:00
Makefile.am ULINK driver: Add '-lm' linker flag when building this driver (required for correct calculation of JTAG TCK speed setting) 2011-08-31 16:25:42 +02:00
ecosboard.c jim tests: use installed 2010-10-29 15:10:51 +02:00
hello.c HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
hello.h HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
main.c logging: turn of stdout/stderr buffering 2010-09-20 20:45:48 +02:00
openocd.c replace berlios url's with sourceforge url's 2011-10-11 17:18:05 +01:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00