Commit Graph

111 Commits (6ee4c7e21963b184b1f93c0bf9375b583dbc9051)

Author SHA1 Message Date
Andrzej Puzdrowski 5649eef980 Enabled nRF52840_DK's compilation for IAR IDE:
- corected scater & startup file for IAR EW
- fix warnings caused by port_api.c, ble_radio_notification.c, nrf_drv_spi.c (for IAR it was error), serial_api.c
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 46f72777dc make nRF52840 target compilable for ARM compiler
- enable fstorage in sdk config
- remove files of modules: bootloader, DFU bootloader and UICR setings
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski f0b3cd2ed0 to be commented 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski aef41216a9 ported-fixed for nRF52840 port
+ serial
+ analog
+ pin description
+ gpio
+ cmsis vector opp
+ gcc startup/scater file
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski a175e2ce31 + description of the NRF52840_DK target
+ mbed RTx setings for nRF52840

fix build of test for NRF52840
+ few sdk's missing filess
- few sdk's unvanted files
corect mbed HAL implementation to changes made in sdk v13
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 9bf209ef00 fix: align nRF5 v13 sdk struct to origin 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 5ebcb3ec12 fix- sdk updste script bug causing losing of nested directory when coping file by forced directory. 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski decf835475 move s140 headers to headers directory
add softdevices compiled inetl-hex files
2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski 9fa7a61212 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-03-22 08:38:34 +01:00
Andrzej Puzdrowski ad5b64b4dd merge nRF528xx sdk sources into one directory 2017-03-22 08:38:34 +01:00
Andrzej Puzdrowski cd44b58d11 Initial commit of NRF52840 target as the copy of NRF52832 and NRF52_DK. 2017-03-22 08:38:34 +01:00
TsungtaWu 20411ec9bc [DELTA_DFBM_NQ620] 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-11 18:55:53 +08:00
Martin Kojtal c3e7b5434c Merge pull request #3842 from anangl/fix_spi_api
TARGET_NRF: corrected spi_init() to properly handle re-initialization…
2017-03-09 15:43:13 +00:00
Głąbek, Andrzej 4213c61073 TARGET_NRF: added a description of the recent change in spi_init(). 2017-03-02 13:47:37 +01:00
Głąbek, Andrzej 678f3f9966 TARGET_NRF: corrected spi_init() to properly handle re-initialization on the same pins + minor editorial corrections. 2017-02-27 13:48:55 +01:00
Hovik Melikyan c4a979ef72 Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-02-24 11:24:24 +00:00
Christopher Haster aff49d8d1e Renamed files in platform to match source names
critical.h     -> mbed_critical.h
sleep.h        -> mbed_sleep.h
toolchain.h    -> mbed_toolchain.h
rtc_time.h     -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h     -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Sam Grove 14bc2338eb Merge pull request #3812 from anangl/rework_i2c
TARGET_NRF5: reworked i2c_api.c
2017-02-21 11:03:27 -06:00
Głąbek, Andrzej da73716092 TARGET_NRF5: corrected code style in i2c_api.c. 2017-02-21 11:47:51 +01:00
Głąbek, Andrzej de2114f92b TARGET_NRF5: removed TWI master driver, as it is no longer used by i2c_api.c. 2017-02-21 07:49:11 +01:00
Głąbek, Andrzej 4bc09b3a8f TARGET_NRF5: reworked i2c_api.c. 2017-02-21 07:48:54 +01:00
Bartek Szatkowski 762e15e772 NRF51822: HAL: Restore WEAK declaration for hal_(deep)sleep
Otherwise we have a conflict between NRF51822 and DELTA_DFCM_NNN40.
2017-02-01 09:30:48 +00:00
Martin Kojtal ade6722707 Merge pull request #3607 from ARMmbed/feature_hal_sleep
Platform: Add sleep/deepsleep user facing functions
2017-01-26 13:55:33 +02:00
Bartek Szatkowski f2c00c7cb5 NRF51822: Remove MBED_WEAK from hal_sleep functions 2017-01-19 11:56:13 +00:00
Bartek Szatkowski 6a045a49a9 Platform: Add sleep/deepsleep user facing functions
Add sleep/deepsleep functions to platform layer which are replacing HAL
functions with the same name, rename existing symbols in HAL layer
to hal_sleep/hal_deepsleep. This way sleep functions
are always available, even if target doesn't implement them, which makes
the code using sleep clearer. It also enables us to make decision on in
which builds (debug/release) the sleep will be enabled.
2017-01-19 09:39:29 +00:00
TsungtaWu c6e0b9c20e Revise to improve readability
Delete the blank line.
Use Marcos rather than magic numbers
Put brace at end of the while line
2017-01-19 17:20:46 +08:00
TsungtaWu ef26a4c0e7 Add DELTA_DFCM_NNN50 platform
greentea tests are all passing
mbedgt: test case results: 175 OK
Please kindly review this PR
2017-01-18 11:01:48 +08:00
Michael Ammann b1a9e7b1c8 Target: Add new target UBLOX_EVK_NINA_B1
Based on nrf51 MCU.
2016-12-20 10:31:14 +00:00
TsungtaWu 7d4befa01b DELTA_DFBM_NQ620 default configuration (#3298)
* Change default SRC setting and add mbed_sdk_init() for DELTA_DFBM_NQ620

Change SRC setting to RC as default to match with hardware config.
mbed_sdk_init() is added for internal debug purpose (experimental)

* remove the redundant #define

Those #define never used.
2016-12-05 16:43:07 +00:00
0xc0170 bcdb86675a ublox eva nina - fix line endings
Fixes #3346
2016-12-01 11:19:42 +00:00
Michael Ammann 76cfccb716 Update PinNames.h 2016-11-21 08:07:58 +01:00
Michael Ammann 5cf34fac8e Add files via upload 2016-11-18 17:17:28 +01:00
Michael Ammann 83379979a2 Create device.h 2016-11-18 17:17:15 +01:00
Vincent Coubard 9649637e42 [NORDIC - NRF51 - MBED 2] Fix a bug related to the RTC interrupt enabled.
Enable the interrupt for the OS tick when the OS tick is enabled rather than
all the time. Otherwise, the interrupt will be triggered bu never handled.
2016-11-10 16:47:25 +00:00
Sam Grove e011341f04 Merge pull request #3176 from RidaJichi/master
Modifying micro:bit pin names to mirror micro:bit edge connector
2016-11-07 10:25:53 -06:00
Sam Grove 6d250a98c3 Merge pull request #2969 from nvlsianpu/nrf52_fix_app_priorities
[nRF52] - switch irq priorities of driver handlers to the lowest level
2016-11-03 02:11:58 -05:00
Rida Jichi ac17fb7cf8 Modified micro:bit pin names to mirror micro:bit edge connector
Resolved issue: https://github.com/ARMmbed/mbed-os/issues/2713

Removed pins p{0..30} definitions
Defined pins P{0..20} as per micro:bit DAL's mappings:
(https://github.com/lancaster-university/microbit-dal/blob/master/inc/drivers/MicroBitPin.h)

Developers can now use the pin names as they appear on the mbed micro:bit pinout
in https://developer.mbed.org/platforms/Microbit/#pinout

Change-Id: I72b81dbe23b11d5ef215583adb211f364b4a5e91
2016-11-01 09:20:24 +00:00
Rida Jichi 3a1af14803 Replaced p{0..30} with P0_{0..30} in the NRF51822 api's
Change-Id: I0e080a30717ee0bcfa2db3f134acb08be851d767
2016-11-01 09:00:34 +00:00
Rida Jichi f1bcde8f45 Ensured all NORDIC platforms define P0_{0..30} to match existing p{0..30} in PinNames.h
Change-Id: I8d7ff6fe5ff5377f7ec8d3bc790dde0b0627f072
2016-11-01 08:57:38 +00:00
Martin Kojtal 5c89e1f07a Merge pull request #3108 from pan-/nrf52_sleep_clean_fpu_irq
Fix sleep function for NRF52.
2016-10-26 12:51:49 +02:00
Martin Kojtal 4ec2f2e3ec Merge pull request #2943 from nvlsianpu/nrf_nvic_set_vector_func_trzy
[NRF5] NVIC_SetVector functionality
2016-10-25 11:10:03 +02:00
Vincent Coubard 501a00b1ac Add define for FPU_EXCEPTION_MASK 2016-10-24 14:15:34 +01:00
Vincent Coubard bd1ad99452 Fix sleep function for NRF52.
An active IRQ from the FPU can prevent the micro to go to sleep, even if this
IRQ is not enabled and not implemented. As a workaround, the FPU IRQ is cleared
before enterring sleep.
2016-10-21 14:47:44 +01:00
Andrzej Puzdrowski 93c67fbd73 nrf5 fix - gpioe pin was uninitialzied for new mode, should been uninitailzed for mode. 2016-10-20 14:10:32 +02:00
Andrzej Puzdrowski fe3a8b04bf nRF5 - added serial flow control configure API implementation 2016-10-17 13:44:15 +02:00
Sam Grove e410157557 Merge pull request #2865 from anangl/hal_fixes
TARGET_NRF5: A few corrections in HAL implementation.
2016-10-13 11:40:10 -05:00
Andrzej Puzdrowski 9204c6f6a1 fix - added proper code of cmsis_nvic.c for regular nrf51 target 2016-10-12 09:26:49 +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
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
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
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
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
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
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
Głąbek, Andrzej 10419cd3f5 Merge branch 'master' into hal_fixes
# Conflicts:
#	hal/targets.json
2016-10-05 07:54:00 +02: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
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