winneymj
6dbeece347
Fix detection of enabled SPIM
2020-08-14 19:43:24 -05:00
winneymj
5249a9ad31
Remove duplicate code
2020-08-05 19:46:54 -05:00
winneymj
541a2c8664
Remove DEBUG
2020-08-05 19:40:54 -05:00
winneymj
40831f7018
remove NRFX_SPIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
2020-08-05 19:35:42 -05:00
winneymj
0b80e3c302
Disable SPIM & enable SPI
2020-08-05 19:33:47 -05:00
winneymj
32b5f2d3fb
Revert "Initial commit"
...
This reverts commit dec6e3600f
.
2020-08-05 19:30:16 -05:00
winneymj
e4e7dcc1ff
First stab at implement SPIM DCX
2020-08-03 20:10:07 -05:00
winneymj
b6a1ec7716
Mix SPI with SPIM
2020-08-02 11:21:03 -05:00
winneymj
f65cd0f461
Add Int handler for SPIM3_IRQHandler
2020-07-31 19:58:39 -05:00
winneymj
2d5776a757
Fix more SPIM
2020-07-31 16:29:49 -05:00
winneymj
c6bc6513bd
Enable nrfx_spim_1_irq_handler
2020-07-31 16:12:49 -05:00
winneymj
bcacf2136d
Fix include
2020-07-29 19:39:19 -05:00
winneymj
db23d53d32
Enable SPIM and bring into code.
2020-07-29 19:27:19 -05:00
winneymj
65ed9d42fc
Move SPI_PSELSSO = p41
2020-07-20 19:16:48 -05:00
winneymj
4c299fe96d
Add USBConsole.h so that default printf can be sent to USBSerial
2020-07-19 15:23:52 -05:00
winneymj
24624d25ab
Fix missing pins
2020-07-15 20:48:43 -05:00
winneymj
dec6e3600f
Initial commit
2020-07-15 16:15:10 -05:00
Vance Farren
70b0acaa33
clean up dead code
2020-06-18 08:56:40 -04:00
Vance Farren
1d8da69586
updates for mbed os 6
2020-06-17 12:10:19 -04:00
Vance Farren
b8687ab524
add EP_ATLAS as mbed target
2020-06-17 12:10:19 -04:00
Martin Kojtal
49c1d947fa
Merge pull request #13044 from hugueskamba/hk_nrf_implicit_declaration
...
NRF: fix implicit declarations
2020-06-05 14:44:31 +02:00
Martin Kojtal
65cbf9759d
Merge pull request #13047 from hugueskamba/hk_nrf_arm_compiler
...
NRF: Migrate ARM Compiler 5 feature re-locate zero initialized variables
2020-06-05 10:48:06 +02:00
Hugues Kamba
488f06b7e1
NRF: Migrate ARM Compiler 5 feature re-locate zero initialized variables
...
ARM Compiler 6 does not support placing a zero-initialized variable in a
zero-initialized section with a given name.
The migration path for this feature is what is as done in this commit.
The name of the section is what comes after `.bss.` (`nvictable` in this
case).
Also simplify pre-processor directive to test for Arm compiler.
2020-06-01 10:35:13 +01:00
Hugues Kamba
992133be50
NRF: fix implicit declarations
...
As a result removes warnings
2020-06-01 10:26:51 +01:00
Hugues Kamba
f6d6d44346
NRF serial: Use nrf_uarte_event_t enum to avoid implicit conversion
2020-05-29 20:20:12 +01:00
Marcelo Salazar
ccd95f1e14
Remove nRF51 targets
...
The following public nRF51 targets are being removed:
- NRF51822
- NRF51_DK
- NRF51_MICROBIT
2020-05-13 10:36:50 +01:00
Marcelo Salazar
84bad91489
Remove NRF51_DONGLE target
2020-04-30 09:56:37 +01:00
Marcelo Salazar
c2645ef423
Remove NINA targets
2020-04-30 09:56:37 +01:00
Marcelo Salazar
6899f6903c
Remove TY51822R3 target
2020-04-30 09:56:37 +01:00
Marcelo Salazar
7c8b16f3c9
Remove HRM1017 target
2020-04-30 09:56:36 +01:00
Marcelo Salazar
cbe6cc79cb
Remove NRF51822_Y5_MBUG
2020-04-30 09:56:36 +01:00
Marcelo Salazar
843b123a45
Remove MTM_MTCONNECT04S target
2020-04-30 09:56:36 +01:00
Marcelo Salazar
f737754959
Remove NRF51_DONGLE
2020-04-30 09:56:36 +01:00
Marcelo Salazar
a770e65a05
Remove WALLBOT_BLE target
2020-04-30 09:56:36 +01:00
MarceloSalazar
9167b2d1d6
Remove SDT51822B (nrf51) target
2020-04-30 09:56:33 +01:00
MarceloSalazar
20997ca6cb
Remove RBLAB targets
2020-04-30 09:56:32 +01:00
MarceloSalazar
e160bd3602
Remove DELTA_DFBM_NQ620 target
2020-04-30 09:56:32 +01:00
MarceloSalazar
12bb9d34bb
Remove DELTA_DFCM_NNN40 target
2020-04-30 09:56:32 +01:00
MarceloSalazar
05bb01eeb2
Remove DELTA_DFCM_NNN50 target
2020-04-30 09:56:32 +01:00
MarceloSalazar
567f7da1e5
Remove MAKERDIARY_NRF52840_MDK target
2020-04-20 16:55:34 +01:00
MarceloSalazar
80b34c2c07
Remove RIOT_MICRO targets
2020-04-20 16:55:34 +01:00
MarceloSalazar
e2457ed9eb
Remove OSHCHIP target
2020-04-20 16:55:34 +01:00
MarceloSalazar
c9352ead73
Remove MTB_UBLOX_NINA_B1 target
2020-04-20 16:55:34 +01:00
MarceloSalazar
91142e95c9
Remove MTB_LAIRD targets
2020-04-20 16:55:34 +01:00
MarceloSalazar
9a1ce6b142
Remove MTB_ACONNO_ACN52832 target
2020-04-20 16:55:34 +01:00
MarceloSalazar
ca3e4ac45a
Remove MTB_MURATA_WSM_BL241 target
2020-04-20 16:55:34 +01:00
MarceloSalazar
7a1261b358
Remove MTB_LAIRD_BL652 target
2020-04-20 16:55:34 +01:00
Martin Kojtal
7151e1e147
Merge pull request #12792 from SeeedJP/Seeed-remove
...
Seeed: Removing unsupported Seeed targets for OS 6
2020-04-15 09:08:52 +02:00
Martin Kojtal
098c72a312
Merge pull request #12161 from AGlass0fMilk/nrf-i2c-slave
...
nRF52 I2CSlave Implementation
2020-04-14 16:31:31 +02:00
Yoshihiro TSUBOI
5114eb707b
[Seeed] Removing unsupported targets for OS 6
...
Removing targets: Seeed Arch Link, Seeed Arch-RO359B, Seeed Arch BLE, Seeed Tiny BLE, Seeed Arch GPRS V2,Seeed Xadow M0
2020-04-13 18:30:32 +09:00
MarceloSalazar
4ae7b0e814
Remove VBLUNO targets
2020-04-09 15:32:41 +01:00
George Beckstein
d8727510e7
Remove unused internal state enum
2020-04-03 05:38:23 -04:00
George Beckstein
907ae1b67e
Implement I2CSLAVE in the i2c_api for nRF52 targets
2020-04-03 05:38:21 -04:00
George Beckstein
85a17293d3
Enable I2CSLAVE for nRF52 targets
2020-04-03 05:01:22 -04:00
George Beckstein
e1178be65e
Applying changes to only specific targets for stop-gap.
2020-04-03 04:45:43 -04:00
George Beckstein
382a55487f
Added object extensions configuration parameter to HAL
2020-04-03 04:38:21 -04:00
Przemyslaw Stekiel
32311b7ca5
i2c_api.c: fix style
2020-02-24 14:59:07 +01:00
Przemyslaw Stekiel
e18a800e7c
NRF52840 I2C driver: Initialise I2C pins before transmission
...
By default D0 - D3 pins are used for the bit-banged SPI com channel between mbed target and the FPGA-test-shield.
For some reason, if pins were used as GPIOs and then reconfigured to I2C pins the I2C com does not work on NRF52840.
This commit modifies i2c_configure_twi_instance() function and adds proper initialization of the I2C pins.
2020-02-24 14:59:06 +01:00
Martin Kojtal
1f8778b15b
Merge pull request #12449 from eavelardev/patch-2
...
Add missing pins def for ARDUINO_NANO33BLE
2020-02-19 14:32:51 +00:00
Martin Kojtal
664000ac82
Merge pull request #12431 from the-real-blackh/master
...
Nordic NRF52 GPIO API: Fix non-deterministic failure to configure interrupt handling
2020-02-19 12:54:58 +00:00
Eduardo Avelar
5984f02203
Add missing pins def for ARDUINO_NANO33BLE
...
We add pins def for the sense version of the board.
https://content.arduino.cc/assets/Pinout-NANOsense_latest.pdf
https://content.arduino.cc/assets/NANO33BLE_V2.0_sch.pdf
2020-02-17 01:01:33 -08:00
Martin Kojtal
a8188bfd4d
Merge pull request #12166 from hugueskamba/hk-baremetal-NRF52840_DK-fix
...
NRF52840_DK: Fix baremetal linker error
2020-02-14 08:21:27 +00:00
Stephen Blackheath
e9dd6020b5
Nordic NRF52 GPIO API: Fix failure to clear the field 'skip_gpio_setup' in a local
...
gpiote input configuration data structure, resulting in non-deterministic failure
to initialize interrupt handling.
2020-02-14 10:08:23 +13:00
Przemyslaw Stekiel
d541b461c9
Disable restricted uart peripheral for NRF52840
...
While testing it has been found that all tests are skipped in the FPGA uart test on the NRF52840 target.
This is caused by the following change:
https://github.com/ARMmbed/mbed-os/pull/12379 - Add STDIO UART as restricted for FPGA testing for all targets
NRF targets have MUXed pins and mainly do not provide pin-maps. There are only dummy pin-maps for testing.
These pin-maps hold only pins and do not specify the peripheral or function of the pin (always 0). Because of that if we restrict STDIO uart peripheral (0) all FPGA uart test cases will be skipped.
To fix this we will remove this restriction for NRF52840. Restriction for testing the USBTX, USBRX pins is sufficient in this case.
2020-02-11 15:24:17 +01:00
Hugues Kamba
65fbee1d33
NRF52840_DK: Fix baremetal linker error
...
Compile in the inclusion of cryptocell310 only if the library is included
in the build
2020-02-10 15:18:46 +00:00
Martin Kojtal
a8e87236de
Merge pull request #12368 from mprse/NRF_Serial_Fpga_fix
...
Fix NRF52840_DK UART driver and adapt FPGA test
2020-02-10 14:26:31 +00:00
Martin Kojtal
d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
...
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
Przemyslaw Stekiel
6a9b4bb64f
TARGET_NRF52/serial_api.c: Fix style
2020-02-05 08:47:09 +01:00
Przemyslaw Stekiel
fbe8a8e327
NRF52 serial: Trigger TxIrq interrupt manually on enabling
...
It is required by Mbed HAL API to generate TxIrq interrupt when TXD register is empty (also after enabling TxIrq interrupt):
f73a62afbf/hal/serial_api.h (L144-L147)
The driver uses DMA to perform uart transfer and TxIrq is generated after the transfer is finished.
While enabling TxIrq we will check if TXD reg is empty and manually trigger the interrupt.
2020-02-05 08:47:09 +01:00
Przemyslaw Stekiel
575f9c2d64
Fix NRF51, NRF52 gpio_irq_init() function
...
Acording to the description in `gpio_irq_hal_api.h` file `gpio_irq_init()` should return 0 on success.
Currently, it returns 1 causing the FPGA test to fail.
2020-02-03 14:23:41 +01:00
Kevin Bracey
ba5dd4d8c1
Merge pull request #12153 from mprse/spi_fpga_test_extend
...
Hackathon: Increase coverage of the SPI master FPGA test
2020-01-31 15:00:02 +02:00
Anna Bridge
0d48a26f82
Merge pull request #12154 from hugueskamba/hk-baremetal-nrf51822-fix
...
NRF51822: Fix baremetal linker error
2020-01-24 11:21:25 +00:00
Kimmo Vaisanen
bd0f939277
Cellular: Remove support for multiple ATHandlers
...
Major changes:
- Dependency to FileHandle removed from base classes
- AT_CellularDevice owns the default FileHandle and shares it with AT -classes
- Hang-up -detection moved as CellularContext::configure_hup(). Cannot be configured via CellularDevice any more.
Result on NRF52840_DK + BG96:
GCC:
Total Static RAM memory (data + bss): 29360(+296) bytes
Total Flash memory (text + data): 130660(-832) bytes
ARM:
Total Static RAM memory (data + bss): 261554(+8) bytes
Total Flash memory (text + data): 127573(-1193) bytes
IAR:
Total Static RAM memory (data + bss): 25479(+296) bytes
Total Flash memory (text + data): 102418(-527) bytes
RAM increase is because now ATHandler is no longer created with new -operator but is now member of AT_CellularDevice,
so image tool is able to count it. Actually total RAM consumption has decreased due to removed variables.
2020-01-23 09:27:44 +02:00
Martin Kojtal
b7c961c4ac
Merge pull request #12220 from hugueskamba/hk-replace-uartserial-nordic
...
NRF5x targets: Replace UARTSerial references with BufferedSerial
2020-01-17 09:59:56 +00:00
Martin Kojtal
4c4ed0ab78
Merge pull request #12258 from trowbridgec/disable-ep_agora-cell-aux-uart-by-default
...
Disable the cell AUX UART by default on EP_AGORA
2020-01-15 13:07:28 +01:00
Chris Trowbridge
a21a0062af
Disable the cell AUX UART by default on EP_AGORA
2020-01-14 12:55:16 -05:00
George Beckstein
d8fbfbfeb4
Replace macro "UART1_ENABLED" with corresponding "NRFX_UARTE1_ENABLED".
2020-01-10 11:33:11 -05:00
George Beckstein
dd98d0102f
Update SDK config for nRF52840 to disable UART1 instance (Mbed serial port uses UARTE peripheral)
2020-01-10 11:32:47 -05:00
aglass0fmilk
dc19460fa3
Remove use of deprecated UART driver (as opposed to UARTE). Disable unused TWIM peripheral (deprecated TWI peripheral is currently used for I2C master mode operation).
2020-01-09 16:35:06 -05:00
George Beckstein
b6befee4cf
Properly configure PRS API so it actually delegates the shared interrupt slot to the appropriate peripheral
2020-01-09 16:35:06 -05:00
Hugues Kamba
efd3763467
NRF5x targets: Replace UARTSerial references with BufferedSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-08 15:42:07 +00:00
Hugues Kamba
e0c628cbb7
NRF51822: Fix baremetal linker error
...
Ensure the NRF51822 `us_ticker.c` module content is compiled in only if
the target supports USTICKER.
2020-01-08 15:33:01 +00:00
Martin Kojtal
c42125f890
Merge pull request #12151 from hugueskamba/hk-nrf-fix-baremetal-build
...
NRF5x: Fix baremetal linker error
2020-01-08 14:41:26 +01:00
Hugues Kamba
6afca2460e
NRF5x: Fix baremetal linker error
...
DEBUG_NRF_USER gets defined for build profiles (develop, debug)
which do not define NDEBUG (see nrf_assert.h). Therefore the definition
of the function should also be visible if DEBUG_NRF_USER is defined.
2020-01-03 15:14:09 +00:00
Martin Kojtal
a387985c7c
Merge pull request #12144 from hugueskamba/hk-nrf52840-two-mem-region-model
...
NRF52840: Use 2 region memory model for the ARM toolchain
2020-01-02 10:08:58 +00:00
Antti Kauppila
ca7848d854
Refactored away onboard_modem_api because it is not needed at all
...
All targets must implement soft_- and hard_power_on/off() functions which are practically same what onboard_modem_api offered.
These were seen as a duplicate features and therefore we removed this.
All targets involved have been updated to reflect the changes
2019-12-27 16:04:10 +01:00
Przemyslaw Stekiel
769b7c5256
NRF52x SPI capabilities: rx/tx buffers can have different sizes
2019-12-20 12:56:09 +01:00
Hugues Kamba
c3c6cfa8d6
NRF52840: Use 2 region memory model for the ARM toolchain
2019-12-19 15:13:44 +00:00
Przemyslaw Stekiel
b2dad08387
Change explicit pinmap to static pinmap
2019-11-28 08:32:12 +01:00
Przemyslaw Stekiel
0e0952fadc
NRF52840_DK: Add explicit pinmap support
2019-11-28 08:32:06 +01:00
Martin Kojtal
d0d3462781
Merge pull request #11846 from manchoz/manchoz_makerdiary-nrf52840-mdk
...
Add support for Makerdiary nRF52840-MDK
2019-11-21 10:54:21 +01:00
Martin Kojtal
699372421a
Merge pull request #11790 from 0xc0170/master-rob
...
nrf52: reset UARTE peripheral in serial_free
2019-11-14 10:42:08 +01:00
Giampaolo Mancini
1804b40fac
Fix indentation
2019-11-12 14:48:54 +01:00
Giampaolo Mancini
fd3088867e
Add support for Makerdiary nRF52840-MDK
2019-11-12 09:56:04 +01:00
Przemyslaw Stekiel
b24afed5ae
SPI fpga test: use get_capabilities() function to skip test cases for unsupported features
2019-11-06 10:09:20 +01:00
Rob Vlaar
6f31229f48
Workaround to reset UARTE peripheral to be able to go into deep sleep
2019-10-31 15:29:30 +00:00
Przemyslaw Stekiel
c83307e96c
NRF52: Fix PWM driver
...
Fix pwm nrf
2019-10-30 14:37:30 +01:00
Martin Kojtal
4b21157085
Merge pull request #11739 from maciejbocianski/nrf52_i2c_byte_rw_fix
...
Nrf52 i2c byte rw fix
2019-10-28 13:16:49 +01:00
Maciej Bocianski
703348acc8
NRF52: fix i2c byte read/write implementation
...
i2c_byte_write implementation was broken.
Data sending was inside addressing block
Changed from:
i2c_byte_write
{
if (start) {
if (read_address)
start read;
esle
start write;
write byte;
}
}
to:
i2c_byte_write
{
if (start) {
// if first call after start
// address for reading or writing
if (read_address)
start read;
esle
start write;
} else {
// send data byte
write byte;
}
}
2019-10-28 08:41:12 +01:00
Martin Kojtal
8637069b36
Merge pull request #11698 from kjbracey-arm/armstack
...
Clean up ARM toolchain heap+stack setup in targets
2019-10-24 11:37:11 +02:00