Commit Graph

61 Commits

Author SHA1 Message Date
Glenn Ruben Bakke
2c61b7f596 nrf5/hal: Adding untested implementation of twi read. Lacking sensors to test with :) 2017-03-04 21:42:36 +01:00
Bander Ajba
0e723091f9 minor documentation and extra tabs removal fixes 2017-02-28 09:34:13 +03:00
Bander Ajba
e52ebb095c fixed temp module to allow for instance support 2017-02-27 21:37:32 +03:00
Bander Ajba
378c40b4da did required modification to merge the temperature sensore module 2017-02-26 11:14:17 +03:00
Bander Ajba
3882b0e2ff added support for hardware temperature sensor 2017-02-24 00:38:08 +03:00
Glenn Ruben Bakke
e8b4a97d7d nrf5/hal: Line wrapping params in hal_spi.c to make it easier to read. 2017-02-02 23:47:30 +01:00
Glenn Ruben Bakke
cd096f604e nrf5/hal: Updating hal_twi.c tx implementation to a working state. STARTTX only issued once, before looping bytes. 2017-02-02 23:45:44 +01:00
Glenn Ruben Bakke
c7162720c1 nrf5/hal: Updating hal_twi.c with tx function. Gets multiple startup bytes for each clocked byte. 2017-02-02 22:55:25 +01:00
Glenn Ruben Bakke
fed06e278b nrf5/hal: Updating hal_twi.c with tx function which partly works. Bytes are clocked out a bit out of order. 2017-02-02 20:51:43 +01:00
Glenn Ruben Bakke
0629abac53 nrf5/hal: Started implementation of hal_twi.c (non-DMA). Init function started. 2017-02-02 20:03:50 +01:00
Glenn Ruben Bakke
4b38644531 nrf5/hal: Updating twi driver with template functions. 2017-01-31 22:46:04 +01:00
Glenn Ruben Bakke
4a568ec1ed nrf5/hal: Updating TWI DMA implementation. Suspend not working on tx. Rx not implemented yet. 2017-01-31 22:36:47 +01:00
Glenn Ruben Bakke
5004a6f811 nrf5/hal: Updating twi master tx with stop parameter. 2017-01-30 23:05:27 +01:00
Glenn Ruben Bakke
ed976e07fe nrf5/hal: Adding i2c master functions for tx and rx in hal header. 2017-01-30 21:32:20 +01:00
Glenn Ruben Bakke
97a3fd4f3a nrf5/hal: Adding members to TWI config struct, device address and scl/sda pin. Renaming and adding function such that twi slave and master has seperate init function. Started implementation of master init function for nrf52 using DMA (hal_twie.c). 2017-01-28 23:45:30 +01:00
Glenn Ruben Bakke
1c778f020f nrf5/hal: Updating TWI with frequency enums. 2017-01-28 22:54:44 +01:00
Glenn Ruben Bakke
87e7ab8862 nrf5/hal: Fixing nrf51 SPI pin configuration to use pin member of struct. 2017-01-26 22:31:23 +01:00
Glenn Ruben Bakke
0b0cb19608 nrf5/hal: Updating hal QSPI header with define guard to filter out usage of undefined structures and names when compiling against non-52840 targets. 2017-01-26 22:10:36 +01:00
Glenn Ruben Bakke
0254cab228 nrf5/hal: Updating SPI DMA variant with more frequencies, and allowing rx and tx buffers to be NULL. 2017-01-26 22:01:43 +01:00
Glenn Ruben Bakke
d87d0141b3 nrf5/hal: Updating uart hal to use pointers to Pin objects instead of uint pin and port number. 2017-01-26 21:58:12 +01:00
Glenn Ruben Bakke
3c6c6c6d05 nrf5/hal: Updating uart hal to use pointers to Pin objects instead of uint pin and port number. 2017-01-26 21:57:38 +01:00
Glenn Ruben Bakke
437f3d2477 nrf5/hal: Updating SPI hal with full list of SPI interfaces as lookup tables for all devices. Updating init struct to pass Pin instance pointers instead of uint pin number and ports. 2017-01-26 21:24:31 +01:00
Glenn Ruben Bakke
5cc4890119 nrf5/hal: Fixing compile issues in quad SPI driver. 2017-01-23 00:33:27 +01:00
Glenn Ruben Bakke
fcd9ce2015 nrf5/hal: Updating Quad SPI hal driver. 2017-01-23 00:11:50 +01:00
Glenn Ruben Bakke
0662e1ccf5 nrf5/hal: Aligning assignment in hal_adc.c 2017-01-23 00:10:04 +01:00
Glenn Ruben Bakke
1bd9003338 nrf5/hal: Adding more types to quad SPI header. 2017-01-22 23:04:25 +01:00
Glenn Ruben Bakke
e02c90dca5 nrf5/hal: Updating clock frequency enums and lookup table for quad spi. 2017-01-22 19:15:24 +01:00
Glenn Ruben Bakke
a7f3217c95 nrf5/hal: Adding QSPI base and IRQ num in c-file. 2017-01-22 18:31:42 +01:00
Glenn Ruben Bakke
2c1420b084 nrf5/hal: Adding hal template files for 32mhz Quad SPI peripheral. 2017-01-21 21:44:26 +01:00
Glenn Ruben Bakke
4cef9cd480 nrf5/spi: Adding posibility to configure SPI firstbit mode to LSB or MSB. Default is MSB. Updating python module and hal driver. 2017-01-19 20:04:49 +01:00
Glenn Ruben Bakke
2b383b4ede nrf5/hal: Removing stdio.h include in adce.c which were used for debugging. 2017-01-15 17:55:35 +01:00
Glenn Ruben Bakke
496de3a839 nrf52/hal: Adding adce (saadc) implementation for nrf52 to sample values on a channel. 2017-01-15 17:51:49 +01:00
Glenn Ruben Bakke
6c54ed9a09 nrf5/adc: Updating adc module and hal with a new interface. No need for keeping peripheral base address in structure when there is only one peripheral (nrf51). 2017-01-12 17:20:08 +01:00
Glenn Ruben Bakke
4da435376d nrf5/hal: Updating hal_adc* with more api functions. 2017-01-11 22:12:41 +01:00
Glenn Ruben Bakke
bcf47b465e nrf5/hal: Updating hal_adc header to use correct Type for ADC on nrf52. 2017-01-11 17:29:50 +01:00
Glenn Ruben Bakke
3b0fe69366 nrf5/hal: Removing chip variant guard for hal_adc*, and let this be up to the hal conf file to not mess up at the moment. 2017-01-11 17:02:41 +01:00
Glenn Ruben Bakke
72b7e596ee nrf5/hal: Adding template files for TWI (i2c) hal. 2017-01-11 16:46:43 +01:00
Glenn Ruben Bakke
16dbbdfe9c nrf5/hal: Adding template files for ADC hal. 2017-01-11 16:43:31 +01:00
Glenn Ruben Bakke
0676c9774a nrf5/hal: Correcting SPI psel port position define name to the one defined in nrf52840_bitfields.h 2017-01-08 20:31:30 +01:00
Glenn Ruben Bakke
3e1da27f2b nrf5/hal: Changing import of nrf52 includes in hal_uarte.c to not be explicit. Now only nrf.h is included. 2017-01-08 16:41:11 +01:00
Glenn Ruben Bakke
43a2355665 nrf5: Updating pin, spi and uart to use port configuration for gpio pins. Update pin generation script, macros for PIN generation. Updating macros for setting pin values adding new port parameter to select the correct GPIO peripheral port. 2017-01-08 16:40:18 +01:00
Glenn Ruben Bakke
db9eef64a5 nrf5/hal: Making nrf51/2_hal.h go trough nrf.h to find bitfields and other mcu headers instead of explicit include. 2017-01-08 16:20:01 +01:00
Glenn Ruben Bakke
721065b307 nrf5/devices: Renaming system.c files for nrf51 and nrf52 to be more explicit on which version of chip they are referring to. 2017-01-08 13:32:13 +01:00
Glenn Ruben Bakke
795df06283 nrf5/hal: Adding include of stdbool.h in hal_spi.h as it is used by the header. 2017-01-06 19:59:58 +01:00
Glenn Ruben Bakke
042e3653cf nrf5/hal: Adding support for NULL pointer to be set if no rx buffer is of interest in SPI rx_tx function. 2017-01-05 21:56:17 +01:00
Glenn Ruben Bakke
7b6bdc4c2b nrf5: Adding sleep_us to modutime.c and exposing mp_hal_delay_us in hal/hal_time.h 2017-01-03 21:15:53 +01:00
Glenn Ruben Bakke
04751defa0 nrf5/spi: Removing automatic chip select (NSS) in hal_spi.c. Also removing configuration of this pin as it is confusing to pass it if not used. User of SPI has to set the NSS/CS itself. 2017-01-02 12:51:56 +01:00
Glenn Ruben Bakke
1bc50dbeb5 nrf5/hal: Fixing some issues in PWM stop function. Doing a proper stop and disable the peripheral. 2016-12-31 17:20:54 +01:00
Glenn Ruben Bakke
5e322ea078 nrf5/hal: Exposing two new PWM hal functions start() and stop(). 2016-12-31 17:06:07 +01:00
Glenn Ruben Bakke
c5d77f0e7e nrf5/hal: Moving enablement of PWM task from init to a start function. Also activating code in stop function to stop the PWM. 2016-12-31 17:05:32 +01:00