Commit Graph

815 Commits (2fd4b4b4a9c2414f88feddff9980ee5020b04b14)

Author SHA1 Message Date
Andrzej Puzdrowski 2fd4b4b4a9 fix- sdk updste script bug causing losing of nested directory when coping file by forced directory. 2017-04-07 13:57:35 +01:00
Andrzej Puzdrowski a43acb3d01 move s140 headers to headers directory add softdevices compiled inetl-hex files 2017-04-07 13:57:29 +01:00
Andrzej Puzdrowski 37a7fa566b Update nRF5 SDK sources from version v11 to the version nRF5_SDK_13.0.0-1.alpha_055eef3 using .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\sdk_update.py and .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\porting_tools\replace_headers.py
files .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\nrf_ble*.h
renamed to .\targets\TARGET_NORDIC\TARGET_NRF5_SDK13\TARGET_MCU_NRF52832\sdk\softdevice\s132\headers\ble*.h
by hand.
2017-04-07 13:57:23 +01:00
Andrzej Puzdrowski 704122fcd2 merge nRF528xx sdk sources into one directory 2017-04-07 13:57:13 +01:00
Andrzej Puzdrowski 8e18e8dd3b Initial commit of NRF52840 target as the copy of NRF52832 and NRF52_DK. 2017-04-07 13:57:06 +01:00
jeromecoutant 91a097bd4f Correct ARDUINO pin 2017-04-07 13:56:58 +01:00
Steven Cooreman 691564aab3 Stop using device_has for non-mbed options
As asked by @0xc0170 in PR #3934, we won't be using device_has for indicating RF/Crypto features any longer. RF config options moved to the SL_RAIL lib.json, crypto config options will come with mbedTLS integration.
2017-03-24 20:48:20 +00:00
Steven Cooreman fe0700e31c Pass Travis
Removing device_name for devices that haven't shown up in the Keil package manager yet to avoid Travis from tripping on our PR
2017-03-24 20:48:07 +00:00
Steven Cooreman 30333f4579 Bugfix for EFM32PG12 and EFR32MG12
* Off by one error in the linker scripts reserved one word too little for the vector table
* Re-apply uvisor changes to emlib. To allow uvisor to run, we should make accesses to the romtable through uvisor's secure read gateway
* Copypasta in target name (EFM32PG12, not EFR32PG12)
* Copypasta in the pin definitions (thanks @akselsm)
* Forgot to update PortName for extra ports on MG/PG12
2017-03-24 20:47:43 +00:00
Steven Cooreman 37d47a601c Update clock calibration structs to match latest Gecko SDK 2017-03-24 20:47:28 +00:00
Steven Cooreman 654041345e Add new target EFM32PG12 2017-03-24 20:47:18 +00:00
Steven Cooreman 00e1d939fa Update to Gecko SDK 5.1.2
Update RAIL library to 1.5.1
2017-03-24 20:47:09 +00:00
Steven Cooreman 3e767b7474 Update to Gecko SDK 5.1.2
Updating CMSIS device headers
2017-03-24 20:47:01 +00:00
Steven Cooreman c7b53019b6 Update to Gecko SDK 5.1.2
Updating emlib
2017-03-24 20:46:47 +00:00
Steven Cooreman 94e1ad50fa First pass on TB Sense (and EFR32MG12) support 2017-03-24 20:46:35 +00:00
bcostm 414a0c1daa NUCLEO_F302R8: Add missing PB_8/PB_9 CAN pins 2017-03-24 20:44:41 +00:00
Mohammad Azim Khan 48baf7c5c1 Heap size adjusted to work for both tls-client and mbed-client
Targets NUCLEO_F429ZI and UBLOX_EVK_ODIN_W2 have 192K RAM.
Heap size in PR #3871 was increased from 48K to 96K as tls-client
example failed with 48K heap. But this resulted in compilation failures
in mbed-client that requires 71K for global/static data.
Hence this PR reduces heap to 64K that minimum required by tls-client
to work. This also meets mbed-client data segment requirements.
2017-03-24 20:43:51 +00:00
ccli8 1317f516d0 Refine serial PDMA code 2017-03-24 20:42:58 +00:00
ccli8 da27610278 Refine SPI PDMA code 2017-03-24 20:42:45 +00:00
ccli8 61f3784a7b Add dma_modbase() to get PDMA base address 2017-03-24 20:42:33 +00:00
ccli8 a19fa06bc7 Fix pwmout power-down condition 2017-03-24 20:42:21 +00:00
ccli8 aefa147747 Fix PDMA error on timeout 2017-03-24 20:42:08 +00:00
ccli8 9127a1a33c Refine pin/peripheral/pin map definitions
Change NUC472 analogin_api.c accordingly
2017-03-24 20:41:56 +00:00
ccli8 aa561f2fd1 Fix incorrect use of peripheral name as peripheral base address 2017-03-24 20:41:43 +00:00
TsungtaWu 4fe568d569 Add RC calibration setting and revise mbed_overrides.c
In targets.json, add lf_clock_rc_calib_timer_interval and
lf_clock_rc_calib_mode_config setting which are essential when using BLE
In mbed_overrides.c, create valuables instead of doing printf, those
valuables are intended to be used for debugging in runtime.
2017-03-24 20:41:05 +00:00
TomoYamanaka 43d4a7c66a Fix mistake register setting in serial_format()
Currently, there is the issue in register setting into serial_format().
The issue is that parameter for baudrate setting is initialed zero in this function.
In baudrate  is less 9600bps, the issue occurs. In baudrate  is over 9600, not occurs. When call serial_baud() before serial_format(), baudrate override and set with an incorrect value.

Therefore, I fixed register setting not to set the parameter of baudrate setting in serial_format().
2017-03-24 20:40:02 +00:00
jeromecoutant ef48d7f97b STM32Cube_FW_F7_V1.6.0 CMSIS v1.1.2 => v1.2.0 STM32F7 HAL v1.1.2 => v1.2.0 2017-03-24 20:39:27 +00:00
Radhika Raghavendran dc52812256 Changed tab to spaces 2017-03-24 20:39:12 +00:00
Radhika Raghavendran a9aaeca5b5 Re-do change for changing ADC range from 0 to 3.3V 2017-03-24 20:39:01 +00:00
Radhika Raghavendran 998f31e8f9 A4 and A5 definitions added 2017-03-24 20:38:50 +00:00
adustm 1a5bab8f78 Better use of MBEDTLS_AES_ALT removed from targets.json, added in mbedtls_device.h remove function alternate defines (not used as we replace the full module) 2017-03-24 20:37:47 +00:00
adustm 7f63650a2e AES ECB for NUCLEO_F439ZI +---------------------------+--------+--------+--------+ | test case | passed | failed | result | +---------------------------+--------+--------+--------+ | mbedtls_aes_self_test | 1 | 0 | OK | | mbedtls_entropy_self_test | 1 | 0 | OK | | mbedtls_sha256_self_test | 1 | 0 | OK | | mbedtls_sha512_self_test | 1 | 0 | OK | +---------------------------+--------+--------+--------+ 2017-03-24 20:37:28 +00:00
Simon Vogl c0351446cf can_write(): return error code when no tx mailboxes are available. 2017-03-13 11:20:15 +00:00
Mohammad Azim Khan 80fbde313c Fix heap size for NUCLEO_F746ZG on IAR 2017-03-13 11:14:43 +00:00
bcostm 4c344d76a9 Add AnalogIn pins on PF3, PF5 and PF10. Don't know why it was missing ? 2017-03-13 11:14:35 +00:00
bcostm 404b58c4df STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz) 2017-03-13 11:14:11 +00:00
Głąbek, Andrzej 4257bfe774 TARGET_NRF: added a description of the recent change in spi_init(). 2017-03-13 11:14:08 +00:00
Głąbek, Andrzej 2129b29bed TARGET_NRF: corrected spi_init() to properly handle re-initialization on the same pins + minor editorial corrections. 2017-03-13 11:14:04 +00:00
jeromecoutant 74695e74cf STM32 CAN API: correct format and type
astyle done
2017-03-13 11:14:00 +00:00
Laurent MEUNIER 461aa66040 Fix XDOT compilation error
Typo with misplaced closing parenthesis leads to compilation error,
which is fixed with this patch
2017-03-13 11:13:56 +00:00
Laurent MEUNIER 1268ed8dcb STM32: fix formatting
Use the recommended style
if (condition) {
  do();
} else {
  do_else();
}
2017-03-13 11:13:52 +00:00
Laurent MEUNIER 68a5f7af42 STM32: move pwmout device tables to C file
In order to avoid possible multiple definitions errors, move the table
initialization to the C file instead of header file
2017-03-13 11:13:49 +00:00
Laurent MEUNIER ae139d6c22 STM32: pwm period and prescaler calculation
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-03-13 11:13:45 +00:00
Laurent MEUNIER 1f825c1877 STM32: make PWM driver into a common file
The pwmout driver is very similar for each STM32 family.

The only family specific part is defined in pwmout_device.h file.
It mainly contains few specific information:
- The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
- The clock calculation uses the right APB clock, which was sometimes
not the case before and could have lead to errors in case dividers were
enabled on APB clock settings. This case is now covered.
- Inactivation of inverted support on feaw families
2017-03-13 11:13:41 +00:00
Laurent MEUNIER 0789c24710 STM32 L1: Define PWM Channels in PeripheralsPins.c
As done for other families, let's define the PWM channel in the PWM
pins table definition rather than driver.
2017-03-13 11:13:37 +00:00
adustm deb7be1376 DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated 2017-03-13 11:13:22 +00:00
Mike Fiore 854d2f3fe5 Define GPIO_IP_WITHOUT_BRR for xDot platform. Resolves #3823. 2017-03-13 11:13:14 +00:00
Laurent MEUNIER 9ba340a964 STM32: change spi error to debug warning
In case the selected frequency is higher than the requested one, it is
better to send a debug warning rather than an blocking error.

In case of such warning, user may need to redefine the clock tree setting
at higher level (reducing peripheral's input clocks during init phase).
2017-03-13 11:13:10 +00:00
bcostm 7374f9cc87 Typo: update comment (GPIO_IP_WITHOUT_BRR) 2017-03-13 11:13:02 +00:00
Laurent MEUNIER ed6d03b9cc STM32: gpio SPEED - always set High Speed by default
Up to now, speed was set for outputs and alternate, but this is
also valid for input configuration.

By default, let's configure high speed.

This is done firts, because speed for some families like F1 is mixed
with Input/Output mode settings, so can be later over-ridden if needed.
2017-03-13 11:12:59 +00:00