Skip to content

Commit 6352603

Browse files
committed
K20D5M flash algo for template
1 parent 6aa237f commit 6352603

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M/i2c_api.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,10 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl) {
7474
}
7575

7676
int i2c_start(i2c_t *obj) {
77-
uint32_t temp;
78-
volatile int i;
7977
// if we are in the middle of a transaction
8078
// activate the repeat_start flag
8179
if (obj->i2c->S & I2C_S_BUSY_MASK) {
82-
temp = obj->i2c->F >> 6;
83-
obj->i2c->F &= 0x3F;
8480
obj->i2c->C1 |= 0x04;
85-
for (i = 0; i < 100; i ++)
86-
__NOP();
87-
obj->i2c->F |= temp << 6;
8881
} else {
8982
obj->i2c->C1 |= I2C_C1_MST_MASK;
9083
obj->i2c->C1 |= I2C_C1_TX_MASK;

workspace_tools/export/uvision4_k20d5m.uvopt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
<SetRegEntry>
146146
<Number>0</Number>
147147
<Key>CMSIS_AGDI</Key>
148-
<Name>-X"MBED CMSIS-DAP" -UA000000001 -O462 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -FO15 -FD20000000 -FC800 -FN1 -FF0MK_P128_50MHZ -FS00 -FL20000</Name>
148+
<Name>-X"MBED CMSIS-DAP" -UA000000001 -O462 -S0 -C0 -N00("ARM CoreSight SW-DP") -D00(0BC11477) -L00(0) -FO15 -FD20000000 -FC800 -FN1 -FF0MK_P128_50MHZ -FS00 -FL020000</Name>
149149
</SetRegEntry>
150150
</TargetDriverDllRegistry>
151151
<Breakpoint/>

workspace_tools/export/uvision4_k20d5m.uvproj.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@
325325
</OCR_RVCT9>
326326
<OCR_RVCT10>
327327
<Type>0</Type>
328-
<StartAddress>0x0</StartAddress>
329-
<Size>0x0</Size>
328+
<StartAddress>0x20000000</StartAddress>
329+
<Size>0x2000</Size>
330330
</OCR_RVCT10>
331331
</OnChipMemories>
332332
<RvctStartVector></RvctStartVector>

0 commit comments

Comments
 (0)