diff options
author | Andreas Färber <afaerber@suse.de> | 2016-05-14 20:21:49 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2016-05-20 21:38:03 +0100 |
commit | 0c8ec7c826c60391034fe5f0ea90f8538ac94b38 (patch) | |
tree | 3f1bf74454812f49bf5f2994a6eddc41677c99d8 /src/flash | |
parent | f630fac2e72af502d12139fdc864a01a4da7c868 (diff) |
Fix spelling of ARM Cortex
It's Cortex-Xn, not Cortex Xn or cortex xn or cortex-xn or CORTEX-Xn
or CortexXn. Further it's Cortex-M0+, not M0plus.
Cf. http://www.arm.com/products/processors/index.php
Consistently write it the official way, so that it stops propagating.
Originally spotted in the documentation, it mainly affects code comments
but also Atmel SAM3/SAM4/SAMV, NiietCM4 and SiM3x flash driver output.
Found via:
git grep -i "Cortex "
git grep -i "Cortex-" | grep -v "Cortex-" | grep -v ".cpu"
git grep -i "CortexM"
Change-Id: Ic7b6ca85253e027f6f0f751c628d1a2a391fe914
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/3483
Tested-by: jenkins
Reviewed-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/nor/at91sam3.c | 2 | ||||
-rw-r--r-- | src/flash/nor/at91sam4.c | 6 | ||||
-rw-r--r-- | src/flash/nor/atsamv.c | 2 | ||||
-rw-r--r-- | src/flash/nor/efm32.c | 6 | ||||
-rw-r--r-- | src/flash/nor/niietcm4.c | 2 | ||||
-rw-r--r-- | src/flash/nor/sim3x.c | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c index 9d119bbf..9782fd82 100644 --- a/src/flash/nor/at91sam3.c +++ b/src/flash/nor/at91sam3.c @@ -2482,7 +2482,7 @@ static const char *const eproc_names[] = { _unknown, /* 0 */ "arm946es", /* 1 */ "arm7tdmi", /* 2 */ - "cortex-m3", /* 3 */ + "Cortex-M3", /* 3 */ "arm920t", /* 4 */ "arm926ejs", /* 5 */ _unknown, /* 6 */ diff --git a/src/flash/nor/at91sam4.c b/src/flash/nor/at91sam4.c index 88ff6d7a..bcaaaa0f 100644 --- a/src/flash/nor/at91sam4.c +++ b/src/flash/nor/at91sam4.c @@ -1407,11 +1407,11 @@ static const char *const eproc_names[] = { _unknown, /* 0 */ "arm946es", /* 1 */ "arm7tdmi", /* 2 */ - "cortex-m3", /* 3 */ + "Cortex-M3", /* 3 */ "arm920t", /* 4 */ "arm926ejs", /* 5 */ - "cortex-a5", /* 6 */ - "cortex-m4", /* 7 */ + "Cortex-A5", /* 6 */ + "Cortex-M4", /* 7 */ _unknown, /* 8 */ _unknown, /* 9 */ _unknown, /* 10 */ diff --git a/src/flash/nor/atsamv.c b/src/flash/nor/atsamv.c index 08f8bb8b..77fb7e68 100644 --- a/src/flash/nor/atsamv.c +++ b/src/flash/nor/atsamv.c @@ -355,7 +355,7 @@ static int samv_probe(struct flash_bank *bank) uint8_t eproc = (device_id >> 5) & 0x7; if (eproc != 0) { - LOG_ERROR("unexpected eproc code: %d was expecting 0 (cortex-m7)", eproc); + LOG_ERROR("unexpected eproc code: %d was expecting 0 (Cortex-M7)", eproc); return ERROR_FAIL; } diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c index ab543d61..5627a627 100644 --- a/src/flash/nor/efm32.c +++ b/src/flash/nor/efm32.c @@ -144,11 +144,11 @@ static int efm32x_read_info(struct flash_bank *bank, return ret; if (((cpuid >> 4) & 0xfff) == 0xc23) { - /* Cortex M3 device */ + /* Cortex-M3 device */ } else if (((cpuid >> 4) & 0xfff) == 0xc24) { - /* Cortex M4 device(WONDER GECKO) */ + /* Cortex-M4 device (WONDER GECKO) */ } else if (((cpuid >> 4) & 0xfff) == 0xc60) { - /* Cortex M0plus device */ + /* Cortex-M0+ device */ } else { LOG_ERROR("Target is not Cortex-Mx Device"); return ERROR_FAIL; diff --git a/src/flash/nor/niietcm4.c b/src/flash/nor/niietcm4.c index 9e32c010..ff72ea0f 100644 --- a/src/flash/nor/niietcm4.c +++ b/src/flash/nor/niietcm4.c @@ -1719,7 +1719,7 @@ static int niietcm4_auto_probe(struct flash_bank *bank) static int get_niietcm4_info(struct flash_bank *bank, char *buf, int buf_size) { struct niietcm4_flash_bank *niietcm4_info = bank->driver_priv; - LOG_INFO("\nNIIET Cortex M4F %s\n%s", niietcm4_info->chip_name, niietcm4_info->chip_brief); + LOG_INFO("\nNIIET Cortex-M4F %s\n%s", niietcm4_info->chip_name, niietcm4_info->chip_brief); snprintf(buf, buf_size, " "); return ERROR_OK; diff --git a/src/flash/nor/sim3x.c b/src/flash/nor/sim3x.c index df4e19c2..bb1743e4 100644 --- a/src/flash/nor/sim3x.c +++ b/src/flash/nor/sim3x.c @@ -748,7 +748,7 @@ static int sim3x_read_info(struct flash_bank *bank) } if (((cpuid >> 4) & 0xfff) != 0xc23) { - LOG_ERROR("Target is not CortexM3"); + LOG_ERROR("Target is not Cortex-M3"); return ERROR_FAIL; } @@ -1009,7 +1009,7 @@ COMMAND_HANDLER(sim3x_lock) return ret; if ((val & CPUID_CHECK_VALUE_MASK) != CPUID_CHECK_VALUE) { - LOG_ERROR("Target is not ARM CortexM3 or is already locked"); + LOG_ERROR("Target is not ARM Cortex-M3 or is already locked"); return ERROR_FAIL; } } else { |