Commit Graph

2500 Commits (685f97da37f98cae99a46bdd4d13bbc14cc8dfcc)

Author SHA1 Message Date
Sissors d4263bfed6 [HAL][KSDK] Use PIT timer for ticker/timeout
Previously in the KLXX devices the LPTMR was used for ticker/timeout,
since they only have 2 PIT channels which are required for regular
timer. The KSDK targets have 4 PIT channels, which allows for two 32-bit
timers running at 1 MHz.

Since PIT timers are 32-bit, and LPTMR 16-bit, this both simplifies it
and makes it more efficient. It does cost the remaining 2 PIT channels,
but on the other hand leaves the LPTMR free.
2014-09-20 21:36:29 +02:00
Martin Kojtal b5b42b5f4b Merge pull request #500 from sg-/master
K22F - Templates for uvision, gcc, kds, KSDK - removal of sw timer and interrupt manager
2014-09-20 11:29:22 +01:00
sg- c4c90fe780 [mbed][exporters][k22f][gcc] Added exporters for uvision, gcc_arm, kds. Known issues are: uvision5 as K22F doesnt seem to be supported with uvision4. gcc_arm and kds - build but blinky led color doesnt behave correctly. Haven't debugged much. python project.py -m K22F -p 25 -i kds [uvision] [gcc_arm] to pick back up. 2014-09-19 18:46:22 -05:00
sg- 4df4b2ffc5 [mbed][KPSDK][K22F][K64F] sw_timer.c seems to be left over from the last version of KSDKand isn't part of the v1.0.0 release. fsl_interrupt_manager.c relies on using KSDK specific startup code and linker scripts which we dont use. 2014-09-19 15:51:45 -05:00
ohagendorf 703f8f9331 [EXPORT] [NUCLEO_F4x1RE] and [DISCO_F407VG] export to CoIDE
- export project with export_test.py
- projects can be compiled, downloaded and debugged with CoIDE 1.7.7
- STM32F411xx is not yet supported directly by CoIDE
- STM32F401RE it not supported but STM32F401RB is (differences in flash
size)
- but the generated project files for the Nucleo boards contain correct
FLASH and RAM sizes and that seems to be enough
2014-09-19 21:24:08 +02:00
sg- 1f0f1ecbac Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-09-19 12:34:09 -05:00
Bogdan Marinescu b2831b6b07 Merge pull request #498 from 0xc0170/fix_enet_k64f
[NET] K64F - enet driver addition (latest merge removed that file)
2014-09-19 13:44:47 +01:00
0xc0170 fc5c9acbec [NET] K64F - enet driver addition (latest merge removed that file)
- plus API update to reflect changes in KSDK (interrupt  manager)
2014-09-19 13:33:41 +01:00
bcostm 0111694e1e Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-09-19 14:33:30 +02:00
Przemek Wirkus eb2153ec49 Modiffied compilation prompting to alling with linker's way of printing - now each issue will be printed in separate line with simple prefix like [DEBUG] Output: 2014-09-19 13:27:40 +01:00
Przemek Wirkus 27fa463fcf Replaced variable names as overloads like stdout, stderr to _stdout, _stderr to avoid unnecesary bugs in the future
Added linking error prints - reported by STMicro David BELLEGARDE <david.bellegarde@st.com>

Modiffied compilation prompting to alling with linker's way of printing - now each issue will be printed in separate line with simple prefix like [DEBUG] Output:
2014-09-19 11:30:55 +01:00
Martin Kojtal b2861e7625 Merge pull request #497 from ohagendorf/MBED_A7extension
[TEST] MBED_A7 - extension - raise/fall "off" case
2014-09-19 10:32:05 +01:00
ohagendorf 96b323c5cb test [MBED_A7] extension
The test MBED_A7 is missing one functionality. It tests switch on an
edge detection, change the detected edge and switching on both. The
complete switch off is not tested.
2014-09-19 11:13:57 +02:00
Martin Kojtal 01f28ff20d Merge pull request #491 from sg-/master
[ENET] K64F -  Remove storage-class specifier "extern" from C++ guard at closing squiggle
2014-09-19 08:25:22 +01:00
bcostm 9266e3a74e [NUCLEO_F302R8] Fix bug with MBED_A7 test (irq edges disabled) 2014-09-19 09:03:08 +02:00
bcostm 47b4e3cdb0 [NUCLEO_F302R8] Remove stdlib folders
Not used, was there as backup.
2014-09-19 09:00:50 +02:00
ohagendorf 45019cf62b [DISCO_F407VG] test MBED_A7 InterruptIn failed
- solution similar to [NUCLEO_F4x1RE]
- digital_loop tests "DigitalIn DigitalOut", "DigitalInOut" and
"InterruptIn" are OK
2014-09-18 21:49:26 +02:00
bcostm e19acbbb98 [NUCLEO_F302R8] Migration to STM32Cube driver.
Actual code is based on the Standard Peripherals Library.
2014-09-18 15:08:35 +02:00
Bogdan Marinescu a73f28e6fb Merge pull request #494 from 0xc0170/Sissors-master
Extended #476, which does not break ethernet for K64F
2014-09-18 13:46:50 +01:00
ohagendorf c59657a6d9 [NUCLEO_F4x1RE] test MBED_A7 InterruptIn failed
The test failed because it was not possible to switch off an already
active edge detection.
The reason was the GPIO HAL module driver function HAL_GPIO_Init. The
function changes only interrupt or event flags when the EXTI_MODE flag
in GPIO_Init->Mode is set. gpio_irq_set changed the event mode to
EDGE_NONE in gpio_irq_t structure but that doesn't changed the interrupt
and event flags in the CMSIS function because of the missing EXTI_MODE.
Now gpio_irq_set is able to switch off a specific or both edge
detections.
The MBED_A7 test was extended by another test to check if switch off
edge detection is OK.
2014-09-18 14:27:55 +02:00
Przemek Wirkus b031920624 Added clean build switch --clean to singletest script 2014-09-18 11:17:57 +01:00
0xc0170 b051dbd717 [HAL] Freescale KSDK - MBED_NO_ENET guard for enet drivers 2014-09-17 08:53:36 +01:00
sg- 9f16b4b83e Merge branch 'master' of https://github.com/mbedmicro/mbed 2014-09-16 15:09:14 -05:00
0xc0170 0390a92d71 [HAL] MCU_K64F - files in MCU_K64F folder, as it is in the latest mbed master 2014-09-16 15:54:14 +01:00
0xc0170 cfd2a98b57 [KPSDK] Revert Enet driver to older version - compatible with lwip port
- this will be reverted back along with an updated lwip K64F implementation
2014-09-16 15:15:32 +01:00
Przemek Wirkus f92bd88f98 Removed small typo from host test 2014-09-16 14:40:25 +01:00
0xc0170 a83f8e809d [HAL] K64F - timestamp_t change in usticker 2014-09-16 14:22:47 +01:00
0xc0170 385d2fe792 MCU K64F files in K64F target folder 2014-09-16 13:45:02 +01:00
0xc0170 c8eab47e81 Merge branch 'master' of github.com:Sissors/mbed into Sissors-master
Conflicts:
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/PeripheralPins.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/PortNames.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K22F/device/MK22F51212/fsl_bitaccess.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/PeripheralPins.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/PortNames.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/analogin_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/analogout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/device/MK64F12/regs.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/gpio_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/gpio_irq_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/gpio_object.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/i2c_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/objects.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/pinmap.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/port_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/pwmout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/rtc_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/serial_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/sleep.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/spi_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_K64F/us_ticker.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/PeripheralPins.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/PortNames.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/analogin_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/analogout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device/MK64F12/regs.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/device/MK64F12/system_MK64F12.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/gpio_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/gpio_irq_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/gpio_object.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/i2c_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/objects.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/pinmap.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/port_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/pwmout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/rtc_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/serial_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/sleep.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/spi_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_MCU_K64F/us_ticker.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/analogin_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/analogout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/gpio_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/gpio_irq_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/gpio_object.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/i2c_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/objects.h
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/pinmap.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/port_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/pwmout_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/rtc_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/serial_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/sleep.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/spi_api.c
	libraries/mbed/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/us_ticker.c
	libraries/net/eth/lwip-eth/arch/TARGET_Freescale/fsl_enet_driver.c
	workspace_tools/tests.py
2014-09-16 13:43:02 +01:00
Martin Kojtal 344cc2b3c8 Merge pull request #492 from ohagendorf/develop
[NUCLEO_F4x1RE] export to GCC_ARM
2014-09-16 12:57:58 +01:00
Sissors 60df735622 [K64F] First enet fixes
Hopefully the hardware init new functions are correct
2014-09-16 13:01:23 +02:00
ohagendorf da170514ab [DISCO_407VG] added to build_travis.py 2014-09-16 12:44:13 +02:00
Przemek Wirkus 9fb3c45f64 Small change in repamble readline comparision function 2014-09-16 10:53:24 +01:00
ohagendorf a325eabc42 [NUCLEO_F4x1RE] added to build.travis.py 2014-09-15 23:43:22 +02:00
ohagendorf a75be2f651 [NUCLEO_F4x1RE] export to GCC_ARM
NUCLEO_401RE and NUCLEO_411RE can be exported to GCC_ARM
2014-09-15 21:55:11 +02:00
Przemek Wirkus 63ee01bdd9 Modified host tests to use serial.realine() function to avoid extra timeouts during tests (test will work faster and will be more reliable) 2014-09-15 17:44:30 +01:00
Przemek Wirkus 0748ef4a2a Modified host tests to use serial.realine() function to avoid extra timeouts during tests (test will work faster and will be more reliable) 2014-09-15 17:44:26 +01:00
Przemek Wirkus 8c77115d55 Modified host tests to use serial.realine() function to avoid extra timeouts during tests (test will work faster and will be more reliable) 2014-09-15 17:44:22 +01:00
Przemek Wirkus 40b776133b Removed Semihost tests from FRDM devices - to check why they fail 2014-09-15 17:44:19 +01:00
Martin Kojtal ffa4168e11 Merge pull request #490 from AFritzMulti/master
[HAL] MTS_GAMBIT - SPI pin names expansion
2014-09-15 16:18:37 +02:00
sg- 01b323b46b [mbed][k64f][enet] Remove extern from c++ guard at closing squiggle 2014-09-12 19:25:25 -05:00
Andrew Fritz dd418c9507 Merge remote-tracking branch 'upstream/master' 2014-09-12 13:15:18 -05:00
Bogdan Marinescu 05aeadd8a9 Bumped revision number 2014-09-12 16:14:56 +01:00
Mihail Stoyanov 7d93e9d858 OTA target support for nRF51822 and nRF51-DK 2014-09-12 17:40:08 +03:00
Bogdan Marinescu 5eb0d384fb Merge branch 'master' of github.com:mbedmicro/mbed 2014-09-12 10:52:44 +01:00
Bogdan Marinescu e7a562cc77 Fixed RTOS compilation for some targets (in exporters)
More details: https://github.com/mbedmicro/mbed/pull/472
2014-09-12 10:51:14 +01:00
Bogdan Marinescu 305b628639 Fixed syntax error in build_release.py 2014-09-12 10:50:46 +01:00
Bogdan Marinescu a2853d2aa4 Revert "Fixed crash issue in RawSerial::printf for uARM"
This reverts commit d05b7f51d8.

I am reverting this commit because:

- it uses alloca(), which is a dangerous function
- it uses vsprintf instead of vsnprintf, which can lead to a stack overflow.

Until we find a better solution, this might do more bad than good, so I am reverting it.
2014-09-12 10:47:34 +01:00
Bogdan Marinescu 5687a86731 Fixed RTOS compilation for some targets
More details: https://github.com/mbedmicro/mbed/pull/472
2014-09-11 17:04:21 +01:00
Bogdan Marinescu c372035d60 Merge pull request #477 from sg-/master
Add derivative support to K64F and updates for MTS_GAMBIT
2014-09-11 16:47:48 +01:00