Cruz Monrreal
e8005f6d72
Merge pull request #7206 from mikaleppanen/k64f_async_powerup
...
K64f non-blocking powerup
2018-06-19 21:49:37 -05:00
David Saada
714d025f6c
Rename text region in ARM linker file for a few NXP CPUs
2018-06-18 17:32:01 +03:00
Mika Leppänen
b7627e823b
K64F, K66F: Update the ENET PHY driver
...
PHY init and autonegotation is split into own functions.
2018-06-15 10:41:31 +03:00
Przemyslaw Stekiel
a499341b2d
K64F CRC driver: Fix coding style
2018-06-07 15:12:56 +02:00
Przemyslaw Stekiel
ee6a07e7ab
K64F CRC driver: Fix handling of CRC final XOR value
...
According to the test results final XOR was incorrectly handled by the CRC driver.
This patch fixes this issue.
2018-06-07 15:06:36 +02:00
Przemyslaw Stekiel
da557a58a6
K64F CRC driver: hal_crc_is_supported() - fix condition which validates CRC width
...
It looks like the intention was to return false when CRC width is different than: {16, 32} bits.
2018-06-07 15:06:36 +02:00
Bartek Szatkowski
a305d849a8
Rename LOWPOWERTIMER to LPTICKER
2018-05-25 13:06:56 -05:00
Przemyslaw Stekiel
1e46895f75
K64F: adapt RTC drivers to the new standards (is_enabled function)
...
Make rtc_isenabled() to return 1 if the RTC is initialized and the time has been set; 0 otherwise.
Disable clock gate on exit from this function if RTC was initialized.
2018-05-25 12:52:40 -05:00
Przemyslaw Stekiel
377db73100
K64F: adapt RTC drivers to the new standards (free function)
...
rtc_free() does not stop the RTC from counting. Only disables clock gate since processor no longer needs to read RTC registers.
2018-05-25 12:52:40 -05:00
Russ Butler
a0a9626420
Keep rtc code if low power timer is used
...
Keep the RTC code if either DEVICE_RTC or DEVICE_LOWPOWERTIMER is
defined on the devices which use the RTC for both the rtc api and the
low power timer api. This allows DEVICE_LOWPOWERTIMER to be enabled while
DEVICE_RTC is turned off.
2018-05-25 12:37:19 -05:00
Mahesh Mahadevan
d46af14bb6
KL27Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
a21d21e700
KL43Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
62254c2bae
KW41Z: Update usticker to use TPM instead of LPTMR for ticker
...
This will free up the LPTMR to be used as lpticker
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:33:41 -05:00
Mahesh Mahadevan
4eb8841dc1
MCUXpresso: Update the usticker implementation
...
Enabled usticker for K22F, K24F, K66F, K82F, KL82Z, KW24D
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Mahesh Mahadevan
0d0321a7f0
MCUXpresso: Update Low Power Ticker
...
1. Enable LPTICKER for K22, K24, K64, K66, K82, KL82F, KW24D
2. Change the implementation to only use the LPTMR which reduces
the amount of interrupts generated which is required for tickless
operation
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:32:38 -05:00
Bartek Szatkowski
6e9f04bf2f
Rename DEVICE_LOWPOWERTIMER to DEVICE_LPTICKER
...
That's to match DEVICE_USTICKER.
2018-05-25 12:20:09 -05:00
Przemyslaw Stekiel
39852f772c
Adapt K64F lp ticker driver to the new standards.
...
Low power ticker time counter is created based on RTC which is driven by 32KHz clock. Additional low power timer is used to generate interrupts.
We need to adapt driver to operate on ticks instead of us.
Perform the following updates:
- provide lp ticker configuration: 32KHz/32 bit counter.
- lp_ticker_init() routine disables lp ticker interrupts .
- adapt the driver functions to operate on ticks instead us.
- adapt comments.
- add us_ticker_free() routine.
2018-05-25 12:18:55 -05:00
Przemyslaw Stekiel
c4bd9d125b
Adapt K64F us ticker driver to the new standards.
...
- provide ticker configuration: 1MHz/32 bit counter.
- us_ticker_init() routine disables interrupts.
- adapt comments.
2018-05-25 12:18:55 -05:00
Steven Cartmell
738d92a79f
HAL CRC: K64F: Set output width based on input width, not the polynomial
2018-05-24 17:51:49 +01:00
Steven Cartmell
1da75e5e85
HAL CRC: Fix code to match coding conventions
2018-05-24 17:51:49 +01:00
Steven Cartmell
f006002dec
Add support for final_xor for K64F Hardware CRC
2018-05-24 17:51:49 +01:00
Steven Cartmell
8e14b5977b
HAL CRC: Add bit width parameter to crc_config_t
2018-05-24 17:51:49 +01:00
Steven Cartmell
e1ca2b32fc
Add CRC configuration options to HAL API
2018-05-24 17:51:49 +01:00
Steven Cartmell
167d3f9a1e
HAL CRC: Return early when calling compute with null or 0 size buffer
2018-05-24 17:51:48 +01:00
Steven Cartmell
df93c0151c
Remove support for 7/8 bit CRC polynomials for K64F
2018-05-24 17:51:48 +01:00
Steven Cartmell
fd8b974d47
Add K64F Hardware CRC reference implementation
...
- Add support for all currently defined polynomials
- Add 'CRC' flag to targets.json for K64F profile
2018-05-24 17:51:48 +01:00
Mahesh Mahadevan
93f8cfed05
K64F: Updated the SYSMPU SDK driver
...
This is required to setup the MPU for ENET bus master accesses
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-23 12:24:07 +03:00
Martin Kojtal
0c61cf4a37
Merge pull request #6785 from codeauroraforum/Fix_KL82Z_PWMOUT
...
KL82Z: Fix clock selection for PWMOUT driver
2018-05-03 16:24:07 +01:00
Mahesh Mahadevan
87244a969b
KW41Z: Update SDK TPM driver
...
Certain instances of the TPM are missing some registers, updated
TPM driver handles this variation. This issue was discovered when
running the PWMOUT tests using the ci-test-shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 14:48:12 -05:00
Mahesh Mahadevan
0fb2f01ce7
KL82Z: Fix clock selection for PWMOUT driver
...
This was verified using the ci-test shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 12:22:04 -05:00
Martin Kojtal
43d0f17740
KL27Z: Flash protection macro addition
...
PR #6468 updated flash driver, but not for KL27Z target (another CPU type).
It is missing and leads to build failure. This fixes it.
2018-04-23 10:57:20 +01:00
Mahesh Mahadevan
72011173fc
MCUXpresso: Fix deepsleep implementation for Kinetis parts
...
1. Fix the check to look for if MCG has a PLL
2. Do setup before and after deep sleep mode execution
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-10 08:16:41 -05:00
Mahesh Mahadevan
e163a2769f
MCUXpresso: Update Kinetis flash driver
...
Flash functions needed to be called before entering deepsleep mode
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-04-10 08:16:41 -05:00
Mahesh Mahadevan
c3f8cac2e3
KL82Z: Fix the clock selection for LPUART module
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-27 02:52:20 -05:00
Cruz Monrreal
842a86ad7c
Merge pull request #6310 from codeauroraforum/Fix_K82F_I2C
...
MCUXpresso: Fix test failures seen with ci-test shield
2018-03-15 10:41:08 -05:00
Mahesh Mahadevan
5230bcaf6f
MCUXpresso: Update the I2C implmentation for byte read and write
...
1. Start function: Issue repeat start when bus is busy
2. Byte write function: Do not call SDK function as this does
not work for some of the Kinetis device
3. Byte read function: Do not call SDK function as this would
issue a START and STOP signal which is not required for
I2C byte functions
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:32:22 -06:00
Mahesh Mahadevan
53fa4e5fc4
MCUXpresso: Enable I2C SDA & SCL pins internal pullup resistors
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:18:21 -06:00
Mahesh Mahadevan
d29c12d233
K82F: Fix I2C test failures seen with ci-test shield
...
I2C3 clock define was missing. I2C3 is connected to the Arduino
connector which is used by the ci-test shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-09 08:04:54 -06:00
Mahesh Mahadevan
7ed36e4986
MCUXpresso_MCUS: Apply K64F us_ticker fix across all MCU's
...
Applied changes from commit b6a01de070
for other MCUXpresso MCUs
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-03-07 07:27:04 -06:00
Przemyslaw Stekiel
b6a01de070
K64F lp ticker driver - calculation bug fix.
...
Delta calculation from lp_ticker_set_interrupt() function:
delta_us = timestamp > now_us ? timestamp - now_us : (uint32_t)((uint64_t)timestamp + 0xFFFFFFFF - now_us);
Lets assume that timestam == now_us.
Expected delta value should be 0 and in this current version is 0xFFFFFFFF.
The following condition:
timestamp > now_us
should have the following form:
timestamp >= now_us
Additionally modified us ticker driver to provide the same logic.
2018-02-09 14:29:24 +01:00
Maciej Rogozinski
bb4a72c39d
Bootloader support for MK24F1 for IAR toolchain
2017-12-11 09:54:21 +01:00
Maciej Rogozinski
c9500c6c58
Bootloader support for MK24F1 for Keil toolchain
2017-12-11 09:51:06 +01:00
Maciej Rogozinski
aaa09d5482
Added missing subscription
2017-12-10 15:32:45 +01:00
sarahmarshy
cefcb8cff3
Update K64F trng_api.c
2017-11-21 16:50:43 -06:00
Jimmy Brisson
1566395323
Merge pull request #5347 from 0xc0170/nxp_fix_lptimer
...
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
2017-10-23 10:34:50 -05:00
Jimmy Brisson
2a8023180f
Merge pull request #5340 from 0xc0170/nxp_fix_us_timer_replacement
...
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
2017-10-23 10:34:07 -05:00
Mahadevan Mahesh
bc5c94517c
MCUXpresso: Fix LPTimer issue when using multiple timeout objects
...
Fix for Issue #5150
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-19 11:38:22 +01:00
Mahadevan Mahesh
168bdc8803
MCUXpresso: Fix issue of ticker interrupt incorrectly firing
...
Fix for Issue #5279
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2017-10-18 15:29:57 +01:00
maclobdell
e6b0a2bec4
fix app start size in IAR linker for K66F
2017-10-13 10:41:08 -05:00
maclobdell
5ec0616602
add updates for bootloader support to K66F
2017-10-13 10:41:08 -05:00