Yossi Levy
acfda5895e
Changes in PR #7774 of PinNames.h should be reverted. This commit reverts those files excpet for K82F and K64F which are left as an example
2018-09-05 14:13:05 +03:00
Cruz Monrreal
993c897b55
Merge pull request #7774 from yossi2le/sd-spif-to-mbed-os
...
Add default block device support (SD, SPIF and FLASHIAP)
2018-09-01 11:15:13 -05:00
Yossi Levy
ed8e170d15
Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure.
2018-08-29 12:01:11 +03:00
Russ Butler
4ff5ea40dd
Revert uVisor changes for K64F
...
Revert the changes made in the commit:
1c2a7d8842
Added the commit: Access MCG and SIM through secure access
2018-08-25 20:40:31 -05:00
Oren Cohen
787317b7eb
Remove uVisor from mbed-os
2018-08-22 16:36:59 +03:00
Oren Cohen
795248bcaf
Restore lp_ticker_free to previous implementation when running with uvisor
...
This is a temporary patch until uvisor is removed
2018-08-20 13:20:45 +03:00
Cruz Monrreal
8e25d2d905
Merge pull request #7669 from SigmaDeltaTechnologiesInc/master
...
SDT64, 8195, 32620, 32625, 51822, 52832B added to targets
2018-08-17 11:10:12 -05:00
MateuszM
b5eb59091a
fix formatting
2018-08-08 16:53:21 +02:00
MateuszM
b5d23c3f26
Fix issue #5119 , changed pwmout_api.
...
The period of pwm we could get was limited to 69.9 ms, because prescaler value was set once only during initialization. base->mod is a 16 bit register, to get longer period we have to slow down the clk.
2018-08-07 09:36:32 +02:00
Jiwon Yune
04fc7aa36f
Generic pin names added
2018-08-06 14:50:19 +01:00
Przemyslaw Stekiel
ace821017f
Add implementation of ticker_free() function to CI boards.
...
This PR provides implementation of ticker_free() function for the following boards:
ARCH_PRO
EV_COG_AD3029LZ
EV_COG_AD4050LZ
K22F
K64F
K82F
KW24D
KW41Z
LPC546XX
NRF51_DK
NRF52_DK
NUCLEO_F207ZG
NUCLEO_F401RE
NUCLEO_F429ZI
NUCLEO_F746ZG
REALTEK_RTL8195AM
2018-08-02 09:48:10 +02:00
Jiwon Yune
e5877910d2
SDT64B added
2018-08-01 18:13:33 +09:00
Przemyslaw Stekiel
c0ee843d63
Add lp/us ticker_free() functions stub.
...
This patch adds only empty stubs of `us_ticker_free()` and `lp_ticker_free()` for all boards where these functions are not implemented.
2018-07-25 08:58:38 +02:00
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
Mahesh Mahadevan
132dc87f3e
KL05, KL25, KL26, KL46: Enable usticker
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-25 12:30:53 -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