aba81ffa5c
cpu/nrf52: Uncrustified and fixed static-check issues
2021-11-04 13:49:34 +01:00
Francisco Molina
6b276af790
cpu/nrf52: initial kconfig modeling
2021-09-29 10:17:47 +02:00
dylad
1beda0f1e4
cpu/nrf9160: add TWI and SPI support
2021-09-06 20:15:18 +02:00
Francisco
a1cbcc9ede
Merge pull request #15902 from maribu/spi-api-change-1
...
drivers/periph_spi: let spi_acquire return void
2021-09-02 08:50:56 +02:00
Marian Buschsieweke
f04b522601
cpu/periph_spi: update implementations to new API
...
Make all spi_acquire() implementations return `void` and add assertions to
check for valid parameters, where missing.
2021-09-01 21:38:40 +02:00
Nicolas Harel
580b8d6561
cpu/nrf52: i2c: add support for 16-bit register addresses
...
Removed VLA
removed unused reg buffer
Added mutex
Buffer comment correction
2021-08-06 11:06:59 +02:00
Hauke Petersen
63c23598b3
cpu/nrf52: add VDDHDIV5 as ADC input
2021-02-11 10:40:11 +01:00
Einhornhool
40d749644f
cpu/nrf52: Add i2c reconfigure for use with CryptoAuth devices
2020-12-08 21:27:03 +02:00
Bas Stottelaar
22243aec7a
cpu/*: realign ENABLE_DEBUG
2020-10-23 00:46:26 +02:00
Bas Stottelaar
ab6188cea3
cpu/*: add missing include of assert.h
2020-10-22 11:13:08 +02:00
chrysn
2053a1785a
cpu/nrf52: Ensure that uninitialized PWM outputs are disabled
2020-09-30 13:16:59 +02:00
chrysn
8dd60286a7
cpu/nrf52: Fix PWM generation if <4 channels are used
...
The PWM decodeer, in LOAD=Single mode, loads data in groups of 4
half-words. Previously, if any channel was not connected to a pin (a
connection that's immaterial to the loader), a smaller number would be
given resulting in the decoder not loading anything at all.
See-Also: https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf#page=256
2020-09-30 13:14:47 +02:00
chrysn
65e63ffbbb
cpu/nrf52: Don't touch pin modes on PWM startup
...
Once PWM is running, the active PWM module overrides the PIN_CNF state;
only when PWM is stopped the pin returns into its PIN_CNF state (which,
then, the board may set to whatever idle means there).
(Moreover, the code there only worked for P0 registers, not eg. the
P1.09 of the nrf52840dongle's RGB LED).
2020-09-30 13:14:47 +02:00
chrysn
5b97b49b1d
cpu/nrf52: Remove unused static inline USB poweroff
...
The function was never in used, and this is breaking builds using LLVM
that treats unused static inlines as an error.
2020-09-15 15:55:05 +02:00
83a6ad182d
nrf52/i2c: Use mutex and IRQ for blocking
...
This commit enhances the I2C code of the nRF52 family to block on a
mutex while the I2C transfer is busy. The mutex is unlocked in the ISR
when it is trigger by either a stop condition or an error condition.
2020-06-02 10:24:40 +02:00
720ccad7dd
nrf52: Add EasyDMA-based SPI periph driver
2020-05-18 19:16:17 +02:00
Karl Fessel
4445faaa3a
core/shed: remove not needed bitarithm include add missing
...
bitarithm.h is not needed for the interface of shed but may cause conflicts
due to different definitions of SETBIT and CLRBIT
common implementations are: (value, offset) xor (value, mask) bitarithm
implements the later
frac.c and nrf52/usbdev.c use bitarithm.h but where missing the include
sam0/rtt.c defined a bit using mask from bitarithm,
changed that to the soulution used in sam0/rtc.c
2020-02-05 12:45:29 +01:00
chrysn
e65f3f372b
USB VID/PID: Set whitelist define for internals that use usb.h
...
This list is probably incomplete as it was created experimentally.
2020-01-30 15:04:10 +01:00
Marian Buschsieweke
186d2ccfa4
cpu/nrf52/periph: adc_sample() now returns int32_t
2020-01-10 14:13:15 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
c1b95733b6
cpu/nrf52: allow accessing multiple i2c peripherals
2019-10-04 08:42:35 +02:00
Gunar Schorcht
02d81b717e
Merge pull request #12063 from maribu/i2c_release
...
drivers/periph/i2c: Updated i2c_release() to return void
2019-10-01 19:50:38 +02:00
07b3bc6918
nrfusb: Fix data stage handling of control writes
2019-09-18 08:11:44 +02:00
a5c594ae5f
nrfusb: Check chip revision before enabling
...
Engineering sample A doesn't have a functional USB peripheral (errata
issue 94). This commit adds an assertion check for this revision to
prevent some developer headaches.
2019-09-06 10:00:32 +02:00
benpicco
1ffe2e5e30
Merge pull request #11512 from skullbox305/cpu-nrf5x
...
cpu/nrf52: i2c bugfix
2019-09-03 18:43:38 +02:00
Marian Buschsieweke
0863410c09
cpu/nrf52: Updated i2c_release()
2019-08-22 12:03:08 +02:00
ee39222b2e
nrf52: Add suspend/resume detection to usbdev
2019-06-25 15:39:52 +02:00
ab05e63175
nrf52: Add USB device peripheral driver
2019-06-11 14:14:36 +02:00
Igor Knippenberg
dbd8c2774f
cpu/nrf52: i2c bugfix
2019-05-13 11:32:57 +02:00
Semjon Kerner
2063e98b13
cpu/nrf52: initial PWM implementation
2018-08-21 11:28:23 +02:00
dylad
4ff319b469
nrf52/i2c: adapt to new I2C API
2018-07-25 12:01:34 +02:00
Hauke Petersen
b1efc39348
cpu/nrf52: optimized i2c driver implementation
2018-02-02 11:34:40 +01:00
Hauke Petersen
503e60ef25
cpu/nrf52/i2c: use static mutex initializtion
2018-01-30 19:07:26 +01:00
dnahm
6245b4165f
cpu/nrf52: add i2c driver and configs
2018-01-04 10:51:05 +01:00
Hauke Petersen
b3654c2ead
cpu/nrf52: some optimizations for ADC driver
2017-11-15 11:16:05 +01:00
dnahm
6f9a5004c6
drivers: add adc driver for nrf52
2017-11-15 11:15:10 +01:00
a20745b6c5
cpu: make use of Makefile.periph
2017-11-06 12:01:19 +01:00
Hauke Petersen
e1dde6b456
cpu/nrf5x: unified rtt driver
2017-04-06 11:58:52 +02:00
Hauke Petersen
b097e0840b
cpu/nrf5x+boards: adapted to new SPI API
...
- adapted the SPI driver
- merged SPI drivers from nrf51 and nrf52
- adapted all boards using the CPU
2017-01-25 16:46:05 +01:00
Hauke Petersen
b5920a38b9
cpu/nrf5x: unified pm.c
2017-01-18 14:54:56 +01:00
f0cf52f622
cpu: nrf52: initial periph/pm support
2017-01-12 16:26:02 +01:00
Hauke Petersen
3a00fe8e49
cpus: make use of cortexm_isr_end()
2016-12-21 11:28:46 +01:00
Hauke Petersen
a182a44147
cpu/nrf5x: unified hwrng driver
2016-03-01 23:22:03 +01:00
Hauke Petersen
2a92907c96
cpu/nrf: unified and optimized timer driver
2016-03-01 22:20:27 +01:00
Hauke Petersen
b11a3ad74b
cpus: adapted timer implementations to API changes
2016-02-29 14:45:00 +01:00
Joakim Nohlgård
e2f7ac78f0
Merge pull request #4040 from gebart/pr/periph-timer-init-freq
...
periph/timer: Change timer_init API to support arbitrary (integer) frequencies
2016-02-15 23:36:44 +01:00
Hauke Petersen
1b58b187a9
cpu/nrf52: adapted HWRNG implementation
2016-02-14 12:59:46 +01:00
Joakim Nohlgård
f76ecd1491
cpu/nrf52: Update to match timer_init API change
2016-02-13 21:33:52 +01:00
Hauke Petersen
8dd790bb33
cpu/nrf5x: unified CPUID driver implementation
2016-02-09 16:59:10 +01:00
Hauke Petersen
209e18debd
cpu/nrf5x: unified UART driver
2016-02-09 16:58:56 +01:00