Skip to content

Commit 551f06b

Browse files
committed
Merge branch 'master' into freedomKL05
Conflicts: workspace_tools/toolchains/arm.py
2 parents 2b57ae9 + 597c62e commit 551f06b

File tree

271 files changed

+35
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+35
-16
lines changed

libraries/mbed/targets/hal/NXP/TARGET_LPC11UXX/i2c_api.c renamed to libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) {
265265
}
266266
}
267267

268-
i2c_clear_SI(obj);
268+
// clearing the serial interrupt here might cause an unintended rewrite of the last byte
269+
// see also issue report https://mbed.org/users/mbed_official/code/mbed/issues/1
270+
// i2c_clear_SI(obj);
269271

270272
// If not repeated start, send stop.
271273
if (stop) {

libraries/mbed/targets/hal/NXP/TARGET_LPC176X/i2c_api.c renamed to libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC176X/i2c_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) {
273273
}
274274
}
275275

276-
i2c_clear_SI(obj);
276+
// clearing the serial interrupt here might cause an unintended rewrite of the last byte
277+
// see also issue report https://mbed.org/users/mbed_official/code/mbed/issues/1
278+
// i2c_clear_SI(obj);
277279

278280
// If not repeated start, send stop.
279281
if (stop) {

libraries/mbed/targets/hal/NXP/TARGET_LPC23XX/i2c_api.c renamed to libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC23XX/i2c_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) {
272272
}
273273
}
274274

275-
i2c_clear_SI(obj);
275+
// clearing the serial interrupt here might cause an unintended rewrite of the last byte
276+
// see also issue report https://mbed.org/users/mbed_official/code/mbed/issues/1
277+
// i2c_clear_SI(obj);
276278

277279
// If not repeated start, send stop.
278280
if (stop) {

libraries/mbed/targets/hal/NXP/TARGET_LPC408X/i2c_api.c renamed to libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC408X/i2c_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ int i2c_write(i2c_t *obj, int address, const char *data, int length, int stop) {
282282
}
283283
}
284284

285-
i2c_clear_SI(obj);
285+
// clearing the serial interrupt here might cause an unintended rewrite of the last byte
286+
// see also issue report https://mbed.org/users/mbed_official/code/mbed/issues/1
287+
// i2c_clear_SI(obj);
286288

287289
// If not repeated start, send stop.
288290
if (stop) {

workspace_tools/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ def get_default_options_parser():
1919
help="clean the build directory")
2020

2121
parser.add_option("-o", "--options", action="append",
22-
help='Add a build option ("save-asm": save the asm generated by the compiler)')
22+
help='Add a build option ("save-asm": save the asm generated by the compiler, "debug-info": generate debugging information)')
2323

2424
return parser

workspace_tools/targets.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self):
3434

3535
self.core = "ARM7TDMI-S"
3636

37-
self.extra_labels = ['LPC23XX']
37+
self.extra_labels = ['NXP', 'LPC23XX']
3838

3939
self.supported_toolchains = ["ARM"]
4040

@@ -45,7 +45,7 @@ def __init__(self):
4545

4646
self.core = "Cortex-M3"
4747

48-
self.extra_labels = ['LPC176X']
48+
self.extra_labels = ['NXP', 'LPC176X']
4949

5050
self.supported_toolchains = ["ARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"]
5151

@@ -56,7 +56,7 @@ def __init__(self):
5656

5757
self.core = "Cortex-M0"
5858

59-
self.extra_labels = ['LPC11UXX']
59+
self.extra_labels = ['NXP', 'LPC11UXX']
6060

6161
self.supported_toolchains = ["ARM", "uARM"]
6262

@@ -78,6 +78,8 @@ def __init__(self):
7878

7979
self.core = "Cortex-M0+"
8080

81+
self.extra_labels = ['Freescale']
82+
8183
self.supported_toolchains = ["ARM", "GCC_CW_EWL", "GCC_CW_NEWLIB"]
8284

8385
self.program_cycle_s = 4
@@ -89,7 +91,7 @@ def __init__(self):
8991

9092
self.core = "Cortex-M0+"
9193

92-
self.extra_labels = ['LPC81X']
94+
self.extra_labels = ['NXP', 'LPC81X']
9395

9496
self.supported_toolchains = ["uARM"]
9597

@@ -102,7 +104,7 @@ def __init__(self):
102104

103105
self.core = "Cortex-M4"
104106

105-
self.extra_labels = ['LPC408X']
107+
self.extra_labels = ['NXP', 'LPC408X']
106108

107109
self.supported_toolchains = ["ARM", "GCC_CR"]
108110

@@ -113,7 +115,7 @@ def __init__(self):
113115

114116
self.core = "Cortex-M4"
115117

116-
self.extra_labels = ['LPC43XX']
118+
self.extra_labels = ['NXP', 'LPC43XX']
117119

118120
self.supported_toolchains = ["ARM", "GCC_CR", "IAR"]
119121

@@ -122,9 +124,9 @@ def __init__(self):
122124
Target.__init__(self)
123125

124126
self.core = "Cortex-M4"
125-
126-
self.extra_labels = ['STM32F4XX']
127-
127+
128+
self.extra_labels = ['STM', 'STM32F4XX']
129+
128130
self.supported_toolchains = ["GCC_ARM"]
129131

130132

@@ -134,6 +136,8 @@ def __init__(self):
134136

135137
self.core = "Cortex-M0+"
136138

139+
self.extra_labels = ['ARM']
140+
137141
self.supported_toolchains = ["ARM"]
138142

139143

workspace_tools/toolchains/arm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def __init__(self, target, options=None, notify=None):
3131

3232
if "save-asm" in self.options:
3333
common.extend(["--asm", "--interleave"])
34-
elif "debug-info" in self.options:
35-
common.extend(["--debug"])
34+
35+
if "debug-info" in self.options:
36+
common.append("-g")
3637

3738
common_c = [
3839
"--md", "--no_depend_system_headers",

workspace_tools/toolchains/gcc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def __init__(self, target, options=None, notify=None, tool_path=""):
3939

4040
if "save-asm" in self.options:
4141
common_flags.append("-save-temps")
42+
43+
if "debug-info" in self.options:
44+
common_flags.append("-g")
4245

4346
self.asm = [join(tool_path, "arm-none-eabi-as")] + self.cpu
4447

workspace_tools/toolchains/iar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def __init__(self, target, options=None, notify=None):
2828
# Pa082: Operation involving two values from two registers (ie: (float)(*obj->MR)/(float)(LPC_PWM1->MR0))
2929
"--diag_suppress=Pa050,Pa084,Pa093,Pa082",
3030
]
31+
32+
if "debug-info" in self.options:
33+
c_flags.append("-r")
3134

3235
IAR_BIN = join(IAR_PATH, "bin")
3336
self.asm = [join(IAR_BIN, "iasmarm")] + ["--cpu", target.core]

0 commit comments

Comments
 (0)