chris-styles
8b4872f08d
Rename crc16.c to crc.c
2015-07-07 15:23:24 +01:00
chris-styles
671f4723ab
Create crc.h
2015-07-07 15:22:33 +01:00
chris-styles
44992153d9
Create crc16.c
2015-07-07 15:22:03 +01:00
chris-styles
ee35963b3d
Update mbed_overrides.c
...
Added calls to "crc16" routine, as well as the required #include and #define
2015-07-07 15:20:59 +01:00
chris-styles
41ff2c8773
Update mbed_overrides.c
2015-06-30 08:46:17 +01:00
chris-styles
c60b81202c
Update mbed_overrides.c
2015-06-30 06:50:38 +01:00
chris-styles
d937b67ee7
Update mbed_overrides.c
2015-06-30 03:18:36 +01:00
Brian Daniels
75547f2b71
Fixed handling of Serial NC pins in K64F,K22F,KL25Z, and KL46Z
2015-06-10 11:25:40 -05:00
0xc0170
1cef3ffb2d
Merge branch 'master' of https://github.com/sg-/mbed into sg--master
...
Conflicts:
libraries/mbed/common/SPI.cpp
2015-05-27 13:09:05 +01:00
Martin Kojtal
f54dc44071
Merge pull request #1088 from Sissors/master
...
KSDK - Fix issue with KSDK SPI timing
2015-05-04 08:16:15 +01:00
Sissors
9f16e75687
[HAL][KSDK] Switched delay type of SPI
...
Even though it does not actually toggle the CS signal, we can also use
the delay to CS toggle to get proper waveforms. This also fixes SPI in
mode 3.
2015-05-03 21:09:15 +02:00
Sissors
fa63b6703f
[HAL][KSDK] Fix issue with KSDK SPI timing
...
Depending on the format by default the Freescale SPI peripheral does not
give proper delay between SPI transfers. So code has been added which
sets half a period delay between SPI transfers.
2015-05-03 17:37:16 +02:00
Jun Wako
2d019a694b
Rename back files of TARGET_K20XX
2015-04-24 15:20:42 +09:00
sg-
70fad08a4c
Update SPI API documentation for hardware driven SS. Modify all target spi_api.c implementations. spi_init ssel parameter was used incorrectly to determine master/slave mode rather than enable hardware driven SS (seems to be due to legacy copy paste). Remove duplicate copy paste code of initialization in spi_init that is done by constructor (SPI and SPISlave)
2015-04-10 00:38:27 -05:00
Sissors
e74074eba8
[HAL][K20XX/KLXX] Fixed deepsleep power consumption when AnalogIn is used
...
The power consumption was reported by Paul Staron to be 100uA higher
when an AnalogIn was used previously.
Problem 1 is that 40uA was used by the async ADC clock, which is never
actually used, so it is disabled. Problem 2 is that setting it for high
speed mode increased it by another 60uA while in deepsleep. This
currently seems to me to be possibly a bug in the design, but the
workaround is checking if this is the case before going to deepsleep,
and if yes, disable it. Afterwards it is re-enabled.
2015-03-22 15:15:40 +01:00
Martin Kojtal
0518541815
Merge pull request #964 from 0x4E656F00/master
...
Fix ksdk mcu HAL - stopbit
2015-03-12 12:49:30 +00:00
Martin Kojtal
fb702edaa5
Merge pull request #957 from star297/master
...
Teensy3.1 updates + USBDevice Teensy3.1 Target addition.
2015-03-12 09:26:37 +00:00
Martin Kojtal
39ab67b8ce
Merge pull request #958 from Sissors/k20pwm
...
K20DXX PWM fix
2015-03-12 09:18:07 +00:00
0x4E656F00
1519466bc8
Update serial_api.c
...
Fix number of stop bits in serial_format()
2015-03-11 17:02:15 -04:00
Paul Staron
4196e0530d
K20xx sleep.c update
...
Utilised Header file mask defines.
Tested InterruptIn and timer WakeUp
2015-03-10 22:53:59 +00:00
Sissors
1ffa1baf8a
Modified some comments
2015-03-09 18:07:21 +01:00
Paul Staron
5a803e8ad4
Teensy3.1 deepsleep update
...
Added extra code for Teensy3.1 deepsleep wake up restore function.
For some reason the Teensy3.1 would not wake from deepsleep, problem with restoring clock set ups. Possibly due to the higher clock frequencies requiring additional PLL locking time.
Most of the SystemInit() code was required. Teensy3.1 has no debug facilities, USBSerial is not usable during deepsleep/wakeup processes. Unless anyone has a better option.
Fully tested with InterruptIn and soft WakeUp.
Deepsleep is not really viable for this platform as it is not possible to isolate the interface chip from the power supply, 2.5mA at best in deepsleep mode.
2015-03-07 23:18:26 +00:00
Paul Staron
2dfb1b743f
Added Teensy3.1 32KHz MCU loading capacitors.
...
External loading capacitors not fitted to the Teensy3.1 PCB, Added 20pF MCU loading capacitors for 32KHz crystal.
2015-03-07 22:49:02 +00:00
Paul Staron
e027a8e224
Update PinNames.h
...
Pin name corrections to match platform images.
2015-03-07 22:29:12 +00:00
Sissors
095ebd03e3
[HAL] K20DXX PWM fix
...
The old code for the K20 PWM had an issue where calling for example
pwm.period and pwm.write after each other resulted in the pwm.write
function setting the pulsewidth with the value of the old pwm period.
This makes sure it waits until the latest pwm period is written before
it will do so.
2015-03-07 22:06:01 +01:00
0xc0170
2a1d12bcd4
Fix #940 - k64f a4/5 pinnames swap
2015-03-03 08:16:09 +01:00
0xc0170
453e81fd4c
Merge branch 'pinology' of https://github.com/PrzemekWirkus/mbed into PrzemekWirkus-pinology
...
Conflicts:
libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c
2015-01-27 14:15:48 +01:00
Paul Staron
e21c65041d
New platform - Teensy 3.1
2015-01-15 19:18:01 +00:00
Przemek Wirkus
6fa4b469f4
Decorated all HALs with gpio_is_connected() function implementation
2014-12-19 13:37:16 +00:00
Przemek Wirkus
a53cd59b51
Added is_connected() method to Digital I/O classes APIs (DigitalIn, DigitalOut and DigitalInOut
2014-12-19 13:31:54 +00:00
Przemek Wirkus
b7f4d17aae
Added new GPIO HAL function gpio_is_connected() used to check if gpio_t is connected or initialized with NC
...
Simple gpio_t structure in TARGET_KPSDK_MCUS field name changed to allign to other HALs
2014-12-19 13:14:53 +00:00
Martin Olejar
1eb8d7cab4
Added serial_get_src_clock() function into serial_api.c and fastirc_frequency() function into clk_freqs.h for better portability.
2014-12-19 10:55:37 +01:00
Martin Olejar
bb969921ec
Fixed baudrate calculation issue in serial_api.c, arduino compatible pins name and USB device for Freescale KL43Z Target
2014-12-18 22:37:11 +01:00
0xc0170
a36eb12b2f
Targets: Freescale KSDK - extern } syntax error fix
2014-12-09 14:52:17 +00:00
Martin Kojtal
35ba8d709f
Merge pull request #774 from Sissors/ksdk
...
Targets: K20D50M - Serial baudrate improvements / clk_freqs.h fix
2014-12-09 14:01:54 +00:00
Sissors
a6c9b1c40b
[HAL][K20D50M] Serial baudrate improvements / clk_freqs.h fix
...
Three changes, first it fixes:
https://github.com/mbedmicro/mbed/issues/761 (which was reported
slightly wrong because K20 has again different clocking from KLXX for
uarts).
Second it adds mcgpllfll to clk_freqs, which again is different for K20
compared to KLXX .
Finally it adds the fractional baudrate divider for more accurate serial
baudrates.
2014-12-08 21:15:24 +01:00
0xc0170
81254a0e44
K64F - UART_NUM fix in a condition
2014-11-14 15:21:39 +00:00
Martin Kojtal
6fd59778d6
Merge pull request #684 from Sissors/ksdk
...
Targets: KSDK - Fix ACK/NACK received inverted (issue #661 )
2014-11-12 08:45:48 +00:00
Sissors
d3e2cacff3
[HAL][KSDK] Fixed ACK/NACK received inverted ( https://github.com/mbedmicro/mbed/issues/661 )
...
As reported by Geremia G
(http://developer.mbed.org/forum/bugs-suggestions/topic/5220/ )
2014-11-11 20:32:07 +01:00
Martin Kojtal
c9ec513887
Merge pull request #677 from Sissors/ksdk
...
Targets: Freescale KSDK - Fix first serial char not being sent
2014-11-11 09:38:07 +00:00
Sissors
57a79c08a9
[HAL][KSDK] Fix first serial char not being sent
...
The K64F/K22F didn't send the first char. I don't know why exactly, but
any type of reading a status register seems to fix it. And this extra
line at least makes sense. Now it works correctly.
2014-11-09 19:40:29 +01:00
Ned Konz
e6ae0a7e02
Ensure that IG (Global) bit is reset in MAC address for K64F and others
...
See IEE 802.3-2002, Section 3.2.3(b)
2014-11-06 09:48:32 -08:00
Martin Olejar
ba7a631c3d
Merge branch 'master' into dev-freescale-kl43z
2014-10-21 23:14:39 +02:00
Martin Olejar
185ce5bfe4
Fixed LPUART and USB device initialization issue. Added _kill, _exit and _getpid functions required by gcc-arm-none-eabi-4.8 toolchain.
2014-10-17 22:20:12 +02:00
Martin Olejar
4151ca0e98
Added LPUART support and fixed a many errors in KL43Z target
2014-10-15 01:02:32 +02:00
Martin Olejar
1f9586daac
Added spi_api.c and gcc_arm_kl43z.tmpl files. Fixed some issues in KL43Z target
2014-10-13 00:49:48 +02:00
Martin Olejar
262f9cff89
Add HAL for Freescale KL43Z
2014-10-11 20:40:12 +02:00
sg-
3bd868408b
[K64F] Add mbed_mac_address implementation
2014-10-07 17:41:39 -05:00
Martin Kojtal
6d6dd0be3a
Merge pull request #530 from Sissors/master
...
HAL: Allow Serial pin to be NC for all targets
2014-10-06 11:38:36 +01:00
Sissors
1b833cbd67
Changed serial pin_mode with brackets and for all targets
2014-10-06 12:15:24 +02:00