Sissors
699c1782d5
Increased KLxxZs interrupt handling speed
...
Instead of checking one bit at a time use a simple binary search
algorithm. Speed increase is roughly 250% (bit more for KL46).
2014-07-09 21:52:25 +02:00
Martin Kojtal
09251dd3ba
Revert "error.h -> mbed_error.h"
2014-07-08 14:04:50 +02:00
0xc0170
f7f77392d9
error header file rename to mbed_error.h
2014-07-04 08:05:49 +02:00
Bogdan Marinescu
c694da0543
Merge branch 'dev_error_assert' of git://github.com/0xc0170/mbed into 0xc0170-dev_error_assert
...
Conflicts:
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/serial_api.c
workspace_tools/toolchains/arm.py
2014-06-11 15:50:34 +01:00
0xc0170
372009f461
[K64F] enet - IRQ handlers are in the emac (eth) layer
2014-06-10 16:09:08 +01:00
0xc0170
324407b59a
assert rename to mbed_assert header file
2014-05-28 16:38:00 +02:00
0xc0170
be43ebc182
MBED_ASSERT - mbed assert implementation
2014-05-28 15:39:44 +02:00
0xc0170
48cc27f405
[LPC targets + K20 + F407VG] spi,serial, i2c asserts logic corrections
2014-05-28 10:35:50 +02:00
0xc0170
6a84ffa433
Merge branch 'master' into dev_error_assert
...
Conflicts:
libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D5M/spi_api.c
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c
libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/analogin_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/gpio_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/pwmout_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/serial_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/spi_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/i2c_api.c
libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/i2c_api.c
2014-05-28 09:53:51 +02:00
0xc0170
f9091a237c
[Freescale targets] - spi, serial assers corrections
...
- reverted gpio change in TARGET_LPC11U6X
2014-05-28 08:23:28 +02:00
0xc0170
a3509013fa
[K64F] i2c - magical timeout increase in i2c_stop
2014-05-23 13:44:54 +01:00
Sergio Scaglia
62605dfaaa
- Added initialization for Tx Fifo values and provided value for TFWR bits in ENET_TFWR register
...
Signed-off-by: Sergio Scaglia <sergio.scaglia@arm.com>
2014-05-22 21:43:23 -07:00
Sergio Scaglia
3c2119fab6
These changes solve:
...
1) Endianess of TX_DESC_UPDATED_MASK so Tx buffers can be released after tranmission.
2) Avoid assert( ) failure due uninitialized variable in enet_hal)config_tx_fifo( ) function.
Signed-off-by: Sergio Scaglia <sergio.scaglia@arm.com>
2014-05-21 15:05:29 -07:00
0xc0170
0306d52fc5
[K20, LCP1768, F100RB] asserts corrections
2014-05-21 14:33:42 +01:00
0xc0170
d843d56c08
[ALL TARGETS] error replaced by assert for preconditions
2014-05-20 14:20:37 +01:00
Sissors
da3c7c5e60
K20D5(0)M SPI code
...
Other pinouts still need to be done. PTC6 as MOSI possibly has issues.
There are also some changes which technically aren't required, but were
made in the search to why on earth it wasn't doing anything.
2014-05-18 09:40:39 +02:00
0xc0170
fb90157c9a
All targets except STM - asserts for checking presumptions (function parameters)
2014-05-16 15:45:12 +01:00
0xc0170
09fe00f041
gpio and pinmap - asserts for NC as parameters (not init), abort retarget
...
- retarget - abort - calls mbed_die
- asserts added to gpio mbed hal for all targets
2014-05-15 15:30:14 +01:00
0xc0170
4c61464ee7
all targets - gpio - NC guard
...
- gpio init enables to set pin to NC, thus the rest of gpio HAL should not do any action
if pin is set to NC.
2014-05-14 15:44:33 +01:00
mazgch
339bd2aec9
fix uart tx isr detach
2014-05-14 14:09:36 +02:00
Bogdan Marinescu
06edaf703a
Merge pull request #294 from mazgch/master
...
increase timeout for slow I2C slaves that make use of extensive clock stretching
2014-05-07 13:18:30 +01:00
0xc0170
37b8ad8063
K20 - i2c open drain enabled
2014-05-07 11:28:02 +01:00
0xc0170
cbe3a40986
K64F - i2c fix, debug-info sets optimization to
...
- debug-info for all toolchains set optimization to 0
- i2c - open drain and clock enabled for i2c pins [K64F]
2014-05-07 11:26:14 +01:00
mazgch
ab2b426832
Merge branch 'master' of https://github.com/mbedmicro/mbed
2014-05-07 09:58:23 +02:00
0xc0170
0659ba42f6
Merge branch 'master' of https://github.com/Sissors/mbed into Sissors-master
2014-05-07 08:36:08 +01:00
mazgch
850bb11645
undo typo
2014-05-06 09:18:06 +02:00
mazgch
04fa77f909
increase timeout for slow slaves that use clock extensive stretching
2014-05-06 09:13:58 +02:00
Sissors
127eba40bd
I2C changes for the K64F
...
Fixed also here single byte read (probably)
2014-04-30 14:50:02 +02:00
Sissors
2ec18a06d8
Fixed Freescale byte reads (minus k64)
...
See:
https://mbed.org/questions/3181/Inconsistent-results-when-attempting-wri/
for the issue. Now every byte read is treated equal and ACKs/NACKs are
correctly generated
2014-04-30 10:46:23 +02:00
Bogdan Marinescu
43f1e01588
K64F TCP/IP code compilation temporary workaround
2014-04-24 13:07:35 +01:00
Bogdan Marinescu
94fd2228fb
Added K64F TCP/IP support
...
Currently NET_7 (HttpClient test) and NET_8 (NTP test) fail for
unknown reasons.
2014-04-23 16:16:38 +01:00
Bogdan Marinescu
8215203cde
Merge pull request #264 from Sissors/master
...
K20 general and timer adjustments
2014-04-22 09:52:30 +01:00
Sissors
62dcd84aa3
Added (deep)sleep
...
Pretty much copy pasta of KLxx sleep code with only tiny change
2014-04-19 18:11:16 +02:00
Sissors
ccdfed52eb
Moved ticker timer to a PIT channel + adjusted namings
...
The timer which creates interrupts is now also done using one of the PIT
channels. Since also here no chaining is possible we still need to do
some bits in software, but 32-bit without prescaling is still better
than 16-bit with.
Also some code was moved around and naming conventions changes, since no
lptmr is used anymore, and calling both pit-timer would get confusing
2014-04-17 22:36:03 +02:00
Sissors
ee658aa3e1
Some tab fixes
2014-04-17 18:08:15 +02:00
Sissors
6ff874c0cb
Modified timer code
...
Timer/Wait timer
2014-04-17 18:04:36 +02:00
Sissors
19d131973c
Initial K20 fixes
...
Added the required gpio-irq enable/disable + fixed bus_frequency
2014-04-16 08:12:31 +02:00
sg-
b64e32299f
add fflush to exit
...
enable DEVICE_STDIO_MESSAGES on k64f
remove all line endings from error messages throughout mbed sdk (all targets)
2014-04-09 16:24:13 -05:00
sg-
e20949093c
added '\n' to error("") calls for all freescale targets and common source
2014-04-09 01:14:41 -05:00
sg-
52d2d49900
Correct TYPO for SPI pinmap_merge on RF Expansion port
2014-04-09 00:25:26 -05:00
Bogdan Marinescu
2e32c71b50
[K64F] Ensure immediate update of CnV register in FTM
...
Also changed pin assignment for the PWM test.
2014-04-07 16:48:56 +01:00
Bogdan Marinescu
286a4e42f6
[K64F] Fix PWM implementation
...
Also change the pin for the PWM LED test.
2014-04-07 16:29:54 +01:00
0xc0170
a7236a8783
K64F - ADC mbed HAL - channels definition correction
...
- only b channels are available
- SC1A triggers the measurement
- ADC1 channels corrections in the pinmap (PTCx), PTD6
2014-04-05 18:15:15 +02:00
0xc0170
0bc4853443
K64F - pwm clock set store
2014-04-04 11:24:50 +02:00
0xc0170
7daf2753a0
K64F - port HAL corrections
2014-04-04 10:30:30 +02:00
Mihail Stoyanov
220c0bb39c
Rename KSDK to KPSDK. Required for live compiles.
2014-04-03 11:32:15 +01:00
Bogdan Marinescu
2e4bbfb84f
NMI handler is now in mbed_overrides.c
2014-04-03 11:22:56 +01:00
sg-
832875853b
Added PWM pins and mbed overrides for NMI_b
2014-04-02 17:34:31 -05:00
0xc0170
a0f8bd9741
Freescale - rename KSDK
2014-04-02 21:20:52 +02:00
0xc0170
9cc0f2513a
K64F - d14 and d15 swapped
2014-04-02 20:54:22 +02:00