Commit Graph

7317 Commits (bc860db7c512ac7bf8bddcf88383303ab3e88844)

Author SHA1 Message Date
Jeremy Brodt 98dd41988b [MAX32620HSP] Reduced system clock speed due to SPI issue. 2016-10-12 08:59:38 -05:00
Jeremy Brodt d535180784 [MAX326xx] Added support for FEATURE_BLE. Integrated MaximBLE library. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 7e99a75f1d [MAX32620HSP] Fixed deepsleep issue using IAR. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 5a34a2b91d [MAX326xx] Increased default stack and heap sizes. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 87d2b89750 [MAX32620HSP] Updated BLE libraries. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 24e4d83357 [MAX326xx] Fixed default handler implementations for ARM and IAR. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 240d721f0b [MAX326xx] Fixed SysTick_Handler name. 2016-10-12 08:59:38 -05:00
Kevin Gillespie 0611885832 [MAX32620HSP] Cleanup with formatting script. 2016-10-12 08:59:38 -05:00
Jeremy Brodt 8e70018ec1 [MAX32620HSP] Fixed INITIAL_SP value. 2016-10-12 08:59:38 -05:00
pradeep-gr 324dbaf0a1 Low power timer fine tuned for smaller duration 2016-10-12 19:09:57 +05:30
jeromecoutant 2366c8687c Add Arduino form factor for DISCO_F746NG and NUCLEO_F767ZI 2016-10-12 15:33:40 +02:00
Laurent MEUNIER 22c50d32d2 cmsis to device changes 2016-10-12 14:54:43 +05:30
Andrzej Puzdrowski 9204c6f6a1 fix - added proper code of cmsis_nvic.c for regular nrf51 target 2016-10-12 09:26:49 +02:00
Wolfgang Betz d258c14e1e [STM32F4]: I2C bugfix 'i2c_stop()' timeout
- Remove waiting for 'BTF' flag in 'i2c_stop()':
  When 'i2c_stop()' is called from 'i2c_read()' or 'i2c_write()' flag 'BTF'
  has already been cleared (indirectly) by the calling functions and therefore
  'i2c_stop()' would mistakenly always run into a timeout.
- Delay clock enabling until pins are configured:
  Enabling the I2C bus clock before configuring its pins might in rare
  cases lead to HW faults on the bus.
- Move initialization of 'handle->Instance' to function 'i2c_reset()':
  As 'i2c_reset()' uses '__HAL_I2C_GET_FLAG(handle, I2C_FLAG_BUSY)' field
  'handle->Instance' must have been initialized before doing so. Therefore,
  this operation has been anticipated by moving it from function
  'i2c_frequency()' to function 'i2c_reset()'.
2016-10-12 07:02:42 +02:00
Martin Jäger bc589db42a Update of can_api.c fixing #2987 2016-10-11 21:05:21 +02:00
ccli8 15dbd36492 [M453] Move files to match ARM mbed's restructure
1. Move M451Series.h to device.
2. Move StdDriver to device.
3. Move TOOLCHAIN_* to device.
4. Move cmsis*, startup_M451Series.c, and system_M451Series.c/h to device.
2016-10-11 13:49:25 +08:00
ccli8 7ba4d8f53c [M453] Add device_name into targets.json 2016-10-11 10:55:08 +08:00
ccli8 6683032999 [NUC472] Fix SD pinmaps are not extern'ed 2016-10-11 10:55:08 +08:00
ccli8 1f2f4e3bb3 [NUC472/M453] Move files to match ARM mbed's restructure
1. Move USBHALHost_M451.cpp and USBHALHost_NUC472.cpp.
2. Move TARGET_M451/mbed_lib.json.
3. Move TARGET_NUC472/crypto.
4. Move TARGET_NUC472/mbed_lib.json.
2016-10-11 10:55:08 +08:00
ccli8 c75d54c668 [NUC472] Fix pin definition error regarding SD, I2C, and SPI
1. Fix pin definition error regarding SD.
2. Fix pin definition error regarding I2C.
3. Fix pin definition error regarding SPI.
4. Add pinmap for SD.
2016-10-11 10:55:08 +08:00
ccli8 c2b9089332 [NUC472] Fix buffer overflow in BSP SD driver 2016-10-11 10:55:08 +08:00
cyliangtw 11c05afc62 support mesh in IAR tool chain 2016-10-11 10:55:08 +08:00
cyliangtw a1b383a604 support mesh in GCC tool chain 2016-10-11 10:55:08 +08:00
ccli8 21e8c5bd52 [M453] Fix warnings generated by armcc 2016-10-11 10:55:08 +08:00
ccli8 a9d65e46a3 [NUC472] Fix warnings generated by armcc 2016-10-11 10:55:08 +08:00
ccli8 dfc32409a9 [NUC472/M453] Refine comment for two-region model 2016-10-11 10:55:08 +08:00
ccli8 107d6336b2 [NUC472/M453] Disable GPIO IRQ debounce by default
Some application requires GPIO IRQ to be low latency. To complement it, open up GPIO IRQ debounce configuration through mbed_lib.json.
2016-10-11 10:55:08 +08:00
ccli8 ef36f2f04f [NUC472/M453] Refine us_ticker.c code 2016-10-11 10:55:08 +08:00
cyliangtw 504465796a move aes ZI data into external SRAM for mbed client example 2016-10-11 10:55:08 +08:00
ccli8 da15379907 [NUC472/M453] Remove fix of lp_ticker wrap-around
The original fix cannot handle both wrap-around and scheduled alarm behind now well.
Leave wrap-around as known issue.
2016-10-11 10:55:08 +08:00
ccli8 9b7642d783 [NUC472/M453] Fix us_ticker/lp_ticker alarm error
Error occurs as newly scheduled alarm is behind now due to signed/unsigned comparison pitfall:
-1 < 1u ==> 0 or 1
2016-10-11 10:55:08 +08:00
ccli8 516efa371e [NUC472/M453] Fix greentea lp_ticker failed tests 2016-10-11 10:55:08 +08:00
ccli8 b95478015b Support NUMAKER_PFM_M453 2016-10-11 10:55:08 +08:00
ccli8 8ba94e2e4a Remove sal-stack-lwip.a from IAR linker configuration file
Locate *lwip_* in XRAM to fix IRAM OOM
2016-10-11 10:55:08 +08:00
ccli8 69f4a200c0 Add NUC472 support for USBH 2016-10-11 10:55:08 +08:00
andreas.larsson 84a25e72f7 Fixed wrong stack pointer 2016-10-10 18:55:46 +02:00
Sam Grove f5fb485dcd Merge pull request #2967 from viquiram/master
Modify the flash size for Nucleo L073RZ.
2016-10-10 10:35:59 -05:00
Sam Grove 8d6e358387 Merge pull request #2947 from bcostm/adcintch_L4
STM32L4xx - Add support of ADC internal channels
2016-10-10 10:35:18 -05:00
Sam Grove 4297042096 Merge pull request #2932 from bcostm/adcintch_F4
STM32F4xx - Fix issue with ADC internal Temperature and VBat channels.
2016-10-10 10:35:06 -05:00
Sam Grove 085dd0925a Merge pull request #2921 from bcostm/serialFC_F0
STM32F0xx - Add missing UART_RTS/CTS pins for Serial Flow Control
2016-10-10 10:34:48 -05:00
adustm 7bb611748b Fix typo 2016-10-10 17:06:57 +02:00
Andrzej Puzdrowski 8302ce0625 Fix - Remove unwanted changes to the legacy nrf51822 target (caused by rebase). ad applied them to
to regular targets.
Fix a typo and polish nordic's code.
2016-10-10 16:50:03 +02:00
andreas.larsson cb97f5dc7f Enabled TRNG functionality for UBLOX_EVK_ODIN_W2 target. 2016-10-10 15:42:47 +02:00
Andrzej Puzdrowski 1ca0918996 nRF52 - switch irq priorities of driver handlers to level (APP_IRQ_PRIORITY_LOWEST) 7.
This is fix for bad settings inherited from nRF5 SDK. It might caused eroneus behavior when nrf_drv API were called form irq context etc.
2016-10-10 14:00:29 +02:00
Alessandro Angelino f818aa17a2 EFM32: Add support for uVisor 2016-10-10 11:43:56 +01:00
Alessandro Angelino b01b7c5019 EFM32: Use SECURE_ACCESS to access the ROM table
To allow enabling of uVisor on EFM32, the ROM table must be accessed
through the CMSIS-provided SECURE_ACCESS macro.
2016-10-10 11:43:56 +01:00
Alessandro Angelino d1ad26f7ea EFM32: Make NVIC functions virtualizable
With CMSIS 5, the NVIC functions are virtualizable. Rename the EFM32
NVIC functions to support being virtualized.
2016-10-10 11:43:56 +01:00
Martin Kojtal 8f492a20a7 Merge pull request #2920 from LMESTM/fix_pull_overwrite
STM32F4: Fix pull overwrite
2016-10-10 10:23:55 +01:00
Martin Kojtal d38d82bbab Merge pull request #2946 from bcostm/adcintch_L0
STM32L0xx: Add support of ADC internal channels
2016-10-10 10:17:06 +01:00
bcostm c1485fe88a Add SERIAL_FC for STM32F0xx platforms in targets.json 2016-10-10 10:39:23 +02:00
Andrzej Puzdrowski 2ea0c8a57c NRF5: Reduce vector table size in FLASH by cutting unused endians.
Move to one IAR startup code for both varaint of RAM (16 KB & 32 KB).
2016-10-10 10:38:40 +02:00
bcostm 246528fe85 Add UART_RTS/CTS pins 2016-10-10 10:23:47 +02:00
adustm f140559526 Add objects.h for L073 2016-10-10 10:12:39 +02:00
adustm bda200e814 rework after directory moves 2016-10-10 10:12:39 +02:00
adustm e189bc7cc8 Change MBEDTLS_ENTROPY_ALT to device has TRNG
update code accordingly
2016-10-10 10:12:39 +02:00
adustm 24832ca365 Add random generator for stm32L0 + stm32L4 2016-10-10 10:09:26 +02:00
adustm 4f1f272534 Enable TLS entropy in targets.json for STM32L4 and STM32L0 products 2016-10-10 10:09:26 +02:00
viquiram 1a91fc7abf Update stm32l073xz.sct
Modify the flash size for Nucleo L073RZ.
2016-10-10 09:56:47 +02:00
viquiram 142aa09286 Update stm32l073xz.sct
Modify the flash size for Nucleo L073RZ.
2016-10-10 09:55:45 +02:00
Andrzej Puzdrowski 00b0fafd9e nRF5x Add registering bluetooth's IRQn vector by NVIC_SetVector. 2016-10-10 09:45:31 +02:00
Andrzej Puzdrowski b49f85fe46 Fix: reverted unwanted changes in ARM5's scatter files of legacy nRF51822 targets.
Applied proper changes to ARM5's scatter files of nRF5 regular targets.
Improvement: Remove hardcoding of FLASH vector address, now FLASH vector address is imported form linker to C code.


Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2016-10-10 09:45:31 +02:00
Andrzej Puzdrowski c64c4563f2 Fix error in nRF5 build of Travis CI caused by request of "target hal" includes from "target cmsis" sources
move form the path target/cmsis... and rename dispatch_IRQn_handler.c to the path target/.. and beter name.
2016-10-10 09:45:31 +02:00
Andrzej Puzdrowski 5c721b401c Remove unwanted #ifdef form nRF5 targets spi_api implementations.
Reduce size of no-init section to precisely fit to size of vector in RAM.
2016-10-10 09:45:31 +02:00
Andrzej Puzdrowski 5c08a01d0c Intorduce NVIC_SetVector functionality for nRF5 port
# Conflicts:
#	hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c
#	hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/us_ticker.c
2016-10-10 09:45:31 +02:00
Sam Grove 864ff7754b Merge pull request #2924 from bcostm/adcintch_F2
STM32F2xx - Add support of ADC internal channels (temperature, VRef, VBat)
2016-10-07 11:33:11 -05:00
Sam Grove b3e88c3c72 Merge pull request #2951 from bcostm/adcintch_L1
STM32L1xx - Add support of ADC internal channels
2016-10-07 11:15:50 -05:00
Sam Grove f59b5f8b75 Merge pull request #2934 from BlackstoneEngineering/patch-1
Change K64F D8 pin from PTA0->PTC12
2016-10-07 11:14:18 -05:00
Sam Grove 53a52a1b56 Merge pull request #2930 from bcostm/adcintch_F0
STM32F0xx - Use ADC internal channels specific definitions
2016-10-07 11:13:43 -05:00
Sam Grove ad59be6812 Merge pull request #2928 from bcostm/adcintch_F7
STM32F7xx - Add support of ADC internal channels
2016-10-07 11:13:30 -05:00
Sam Grove eee4db1fe0 Merge pull request #2896 from geky/restructure-cmsis
restructure - Restructure cmsis directory
2016-10-07 11:13:09 -05:00
Sam Grove 483d3fd277 Merge pull request #2923 from bcostm/adcintch_F1
STM32F1xx - Add support of ADC internal channel (Temperature, VRef)
2016-10-06 15:58:26 -05:00
Sam Grove 3a16ca9855 Merge pull request #2911 from theotherjimmy/docs-generation
[Tools] Add documentation generation script
2016-10-06 15:57:08 -05:00
Sam Grove 3aca6fdd86 Merge pull request #2899 from TomoYamanaka/master
Fix bugs of PWM driver.
2016-10-06 15:54:29 -05:00
Sam Grove 76fb1f8c3f Merge pull request #2708 from sarahmarshy/uvision-and-iar
[Exporters] Refactor Uvision and IAR and initial support of CMSIS projects
2016-10-06 15:54:00 -05:00
bcostm 50cb26040a STM32L1xx - Add support of ADC internal channels (Temperature, VRef) 2016-10-06 17:15:16 +02:00
bcostm 49fe84ccd0 STM32L1xx - Use STM_PIN_DATA_EXT macro and obj->channel field to facilitate channels configuration 2016-10-06 16:48:45 +02:00
bcostm 569f64a966 STM32L4xx - Add support of ADC internal channels 2016-10-06 15:41:00 +02:00
bcostm 5f8052a9ef Remove VLCD ADC internal channel on L011 and L031 devices (not present) 2016-10-06 14:58:40 +02:00
bcostm c637477711 Add support of ADC internal channels for L0 devices 2016-10-06 14:53:28 +02:00
Głąbek, Andrzej 691969c315 TARGET_NORDIC: restored old 'sleep()' implementation in legacy HAL, moved the new one to FEATURE_BLE, so it is picked only when SoftDevice is in use. 2016-10-06 11:51:41 +02:00
Sarah Marsh 2a8c9ef6a5 More formatting changes in targets.json 2016-10-05 14:00:11 -05:00
Blackstone Engineering 3e39ef8916 Change K64F D8 pin from PTA0->PTC4
Modifying D8 to reflect latest hardare changes in RevD hardware
https://github.com/ARMmbed/mbed-os/issues/2933
2016-10-05 13:32:12 -05:00
bcostm 4207ebf329 Fix issue with Temp and VBat channels. Use internal channels specific definitions. 2016-10-05 16:33:46 +02:00
bcostm 480d784497 Use ADC internal channels specific definitions 2016-10-05 15:20:55 +02:00
bcostm ed411983a0 Use ADC internal channels specific definitions 2016-10-05 15:06:35 +02:00
bcostm dfc2a2d097 Add VBat channel and manage better the internal channels configuration 2016-10-05 14:58:01 +02:00
Głąbek, Andrzej bb6af4d8a6 TARGET_NORDIC: editorial corrections in 'sleep()' implementations to better fit mbed coding style. 2016-10-05 14:51:22 +02:00
bcostm 7f14131d5b STM32F7xx - Add support of ADC internal channels 2016-10-05 14:38:02 +02:00
Głąbek, Andrzej f62d7e5cfd Revert "Enabled flow control feature for NRF51_DK and NRF52_DK targets."
This reverts commit 1f208f6916.

# Conflicts:
#	hal/targets.json
2016-10-05 14:32:07 +02:00
bcostm 354ffe84ab Add channel 17 for Vref 2016-10-05 11:12:47 +02:00
bcostm 007aac86ca Add channel 17 for VRef 2016-10-05 11:02:11 +02:00
bcostm ad431dc613 STM32F2xx - Add support of ADC internal channels (temperature) 2016-10-05 10:25:03 +02:00
bcostm bcd8f2431a STM32F1xx - Add ADC internal channel (Temperature) 2016-10-05 10:06:15 +02:00
Głąbek, Andrzej 1b593b125a TARGET_NORDIC: simplified the checking if SD is enabled in 'sleep()', used the new implementation in legacy HAL for NRF51822. 2016-10-05 09:10:29 +02:00
Sam Grove 670b0984eb Merge pull request #2917 from c1728p9/fix_InitTCs
Initialization steps in toolchains
2016-10-05 00:54:45 -05:00
Głąbek, Andrzej 10419cd3f5 Merge branch 'master' into hal_fixes
# Conflicts:
#	hal/targets.json
2016-10-05 07:54:00 +02:00
Sam Grove f9001e23e9 Merge pull request #2790 from mtkrtk/master
[Renesas RZ/A1H] Allow using PWM and MTU in the same time
2016-10-04 22:45:03 -05:00
Sarah Marsh e8b34282cb Minor formatting changes 2016-10-04 19:34:52 -05:00
Christopher Haster 26ced98734 restructure - Restructured cmsis directory
targets/cmsis -> cmsis
targets/cmsis/TARGET_* -> targets/TARGET_*/device
targets/cmsis/TARGET_*/mbed_rtx.h -> targets/TARGET_*/mbed_rtx.h
2016-10-04 17:51:44 -05:00
Laurent MEUNIER e8675033f4 [STM32] remove superfluous calls to SystemCoreClockUpdate
Supported toolchains initialization steps have been modified to make sure
that mbed_sdk_initi is called _after_ RAM initialization and _before_ C++
objects creation.

since this was done, there is no need to redundant SystemCoreClockUpdates
in the drivers
2016-10-04 15:08:28 -05:00
Laurent MEUNIER fe9d3174bf INIT:GCC no rtos: Align pre-main initialization steps between TCs
Various toolchains supported in MBED don't follow the same initialization
steps. This can have impacts on platform behavior.

For STM32, it is needed to call the HAL_Init() _after_ the  RAM has been
initialized (sdata from flash / zero initialized data) and _before_ the C++
objects are being created, especially if those objects require support
of tickers for instance.

In GCC, this is easily done because SystemInit is called after the ram
initialisation, so HAL_Init does not need to called from mbed_sdk_init.
this is covered by the changes in mbed_overrides.c files.

This series should solve issue reported here:
STM32 (At least F401) breaks if Tickers are activated in a global object #2115
2016-10-04 14:55:20 -05:00
Jimmy Brisson b6b72ca50b Add supported_toolchains to super_target 2016-10-04 14:41:17 -05:00
Jimmy Brisson 77c7524471 Add simple documentation generation 2016-10-04 14:41:17 -05:00
Sarah Marsh b1c8aac25e Updated device name for nucleo_f746zg and disco_f746ng 2016-10-04 14:13:36 -05:00
Sarah Marsh 9a02bfb7a3 Additional device names. mbed_targets.md update 2016-10-04 14:13:36 -05:00
Sarah Marsh 448205ac87 device_name in targets.json. Removed progen target 2016-10-04 14:13:01 -05:00
Laurent MEUNIER 3f81f5df50 [STM32F4] Use previously introduced pin_function_gpiomode
This way the pull-up / pull-down modes would not be overwritten
as first reported in issue #2638
2016-10-04 11:19:24 +02:00
Laurent MEUNIER e516bddc66 [STM32F4] Introduce a function that sets gpio mode w/o changin pull mode
This function reads the pull mode from HW and can then be used
to avoid over-writing the previously set pull-up / pull-down modes.

This is done following reported issue: #2638
2016-10-04 11:19:22 +02:00
Russ Butler c9739f4a51 NCS36510 - decrease reserved heap space
Decrease the minimum space reserved for the heap from 16K down to
2K for GCC. This does not have an effect on the actual heap size since
the heap takes up all free RAM. This just allows code to compile in
configurations where the heap is smaller than 16K.
2016-10-03 22:22:01 -05:00
tomoyuki yamanaka 762d47e6c8 Fix bugs of PWM driver.
Bugs are as below.
- In the case of MTU2 mode, modify a problem that does not excute "pwmout_write ()" at the end of "pwmout_pulsewidth_us ()" function.
- In the case of MTU2 mode in "pwmout_period_us ()" function, modify a problem that the executing result of "set_mtu2_duty_again ()" function does not reflect in the register of TGRA_MATCH [] and TGRC_MATCH [].
2016-10-04 10:41:34 +09:00
Sam Grove 45d47b931b Merge pull request #2526 from NXPmicro/HEXIWEAR_TLS_Update
HEXIWEAR: Enable the entropy collector for use in mbed TLS
2016-10-03 18:58:48 -05:00
mtkrtk 5033a479c0 Merge remote-tracking branch 'ARMmbed/master' 2016-10-04 06:47:55 +09:00
Mahadevan Mahesh eff03824bc HEXIWEAR: Enable the entropy collector for use in mbed TLS
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-10-03 11:24:09 -05:00
andreas.larsson 1d3c63d9bb Changed name for the target UBLOX_C029 to UBLOX_EVK_ODIN_W2 2016-10-03 12:10:50 +02:00
Sam Grove db8d1f679f Add feature LWIP to LPC1768, UBLOX_C027 and ARCH_PRO targets. 2016-10-01 02:16:45 -05:00
Christopher Haster 03bbc86dd6 restructure - Added FEATURE_LWIP to __allowed_features 2016-09-30 19:18:09 -05:00
Christopher Haster 0bad622a16 restructure - Moved targets out to top level
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00