Glenn Ruben Bakke
1c756af9a4
nrf5/modules/timer: Adding timer3 and timer4 to timer object in case of nrf52 target.
2017-04-30 20:18:46 +02:00
Glenn Ruben Bakke
a0638880b3
nrf5/modules/timer: Optimizing timer object structure and updating the module to use new hal_timer_init structures and parameters.
2017-04-30 20:15:03 +02:00
Glenn Ruben Bakke
7449f8d861
nrf5/hal/timer: Changing hardcoded hal timer instance base to a lookup, so that IRQ num can be detected automatically without the need of using struct param on it. Size of binary does not increase when using Os.
2017-04-30 19:42:19 +02:00
Glenn Ruben Bakke
071e551b79
nrf5/modules/machine: Updating PWM module with two new kwargs parameters. One for setting pulse with more fine grained. This value should not exceed the period value. Also, adding support for setting PWM mode, whether it is LOW duty cycle or HIGH duty cycle. By default, high to low is set (this could be changed).
2017-04-18 21:00:52 +02:00
Glenn Ruben Bakke
1e79bdf0b4
nrf5/modules/machine: Updating Pin module to register a IRQ callback upon GPIO polarity change events.
2017-04-11 13:58:58 +02:00
Glenn Ruben Bakke
c7c2285ab9
nrf5/modules/machine: Style fix in pin object, indention.
2017-04-09 23:19:26 +02:00
Glenn Ruben Bakke
320b9ecde7
nrf5/modules/machine: Adding placeholder for irq method to pin object class.
2017-04-09 23:18:00 +02:00
Glenn Ruben Bakke
2c90d94dc7
nrf5/modules/machine: Adding pin irq type and basic functions and structures.
2017-04-09 23:16:07 +02:00
Glenn Ruben Bakke
6446105689
nrf5/modules/machine: Removing toggle event trigger as that will be a combination of the rising and falling together.
2017-04-09 21:52:57 +02:00
Glenn Ruben Bakke
32083a9443
nrf5/modules/machine: Adding new constants to pin object for polarity change triggers using the enumerated values in hal_gpio.h.
2017-04-09 21:50:11 +02:00
Glenn Ruben Bakke
5fc6a9d9a2
nrf5/modules/machine: Cleaning up uart a bit more. Removing unused any() method, and aligning print and local dict names to use machine_uart prefix.
2017-03-13 17:56:39 +01:00
Glenn Ruben Bakke
1aecf560da
nrf5/uart: Moving UART from pyb to machine module.
2017-03-10 22:48:43 +01:00
Glenn Ruben Bakke
611b829138
nrf5/uart: Refactoring UART module and HAL driver
...
Facilitating for adding second HW uart. Moving pyb_uart into
machine_uart. Adding return error codes from hal_uart functions,
if the hardware detects an error.
2017-03-10 22:21:19 +01:00
Glenn Ruben Bakke
f8d1ea80ae
nrf5/modules: Updating uart object to allow baudrate configuration.
2017-03-07 23:18:03 +01:00
Glenn Ruben Bakke
2e1335b051
nrf5/modules/machine: Adding __WFI() on machine.deepsleep()
2017-03-06 23:36:36 +01:00
Glenn Ruben Bakke
4e1b9aca79
nrf5/modules/machine: Adding __WFE() on machine.sleep()
2017-03-06 23:35:32 +01:00
Glenn Ruben Bakke
4afa41ac36
nrf5/modules/machine: Adding enable_irq() and disable_irq() method to the machine module. No implementation yet for the case where bluetooth stack is used.
2017-03-06 23:30:56 +01:00
Glenn Ruben Bakke
5acba015ef
nrf5/modules/rtc: Adding support for stopping and restarting rtc (if periodic) for all the instances of RTC.
2017-03-06 23:05:03 +01:00
Glenn Ruben Bakke
7c50cd26a2
nrf5/modules: Updating RTC kwarg from type to mode to set ONESHOT or PERIODIC mode.
2017-03-06 22:59:43 +01:00
Glenn Ruben Bakke
3debb43e83
nrf5/modules: Adding support for periodic RTC callback.
2017-03-06 21:33:29 +01:00
Glenn Ruben Bakke
f50a56dbb5
nrf5/modules: Updating rtc module with non-const machine object list in order to allow setting callback function in constructor.
2017-03-06 20:09:04 +01:00
Glenn Ruben Bakke
7000e0a2a0
nrf5/modules: Moving irq priority settings in RTC object to rtc_init0 when initializing the hardware instances. Also modifying comments a bit. Adding simple example in comment above make_new function on how the object is intended to work.
2017-03-06 01:13:19 +01:00
Glenn Ruben Bakke
1ef7c732e8
nrf5/modules: Added RTC into the machine module globals dict.
2017-03-06 00:56:58 +01:00
Glenn Ruben Bakke
7144696e17
nrf5/modules: Updating rtc module. Not working yet. Updated to align with new hal_rtc interface. Added start and stop methods. Allowing callback function set from init. This should be moved to start function, not set in main.
2017-03-06 00:56:18 +01:00
Glenn Ruben Bakke
9ddd62e73e
nrf5/modules: Updating machine uart module to use new hal uart interface name.
2017-03-05 22:37:52 +01:00
Glenn Ruben Bakke
ee5884bfe9
nrf5/modules: Updating readfrom function in machine i2c module to use the new hal function which has been implemented.
2017-03-04 21:44:23 +01:00
Bander Ajba
0e723091f9
minor documentation and extra tabs removal fixes
2017-02-28 09:34:13 +03:00
Bander Ajba
12a6cb0fbf
fixed temp module to allow for instance support
2017-02-27 21:46:53 +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
7c0195da6c
nrf5/modules: Syncing uart module code after upmerge with upstream master.
2017-02-19 19:06:12 +01:00
Glenn Ruben Bakke
0f609cd799
nrf5: Aligning code after upmerge with master. Mostly FAT FS related updates. Not tested after merge.
2017-02-07 23:30:54 +01:00
Glenn Ruben Bakke
42e9b0f735
nrf5/led: Moving led module into modules/machine.
2017-02-05 20:06:06 +01:00
Glenn Ruben Bakke
8601963291
nrf5/pwm: Moving pwm module into modules/machine.
2017-02-05 20:03:52 +01:00
Glenn Ruben Bakke
a7103ef551
nrf5/rtc: Moving rtc module into modules/machine.
2017-02-05 20:01:15 +01:00
Glenn Ruben Bakke
9295f2df29
nrf5/timer: Moving timer module into modules/machine.
2017-02-05 19:59:34 +01:00
Glenn Ruben Bakke
93eb533579
nrf5/pin: Moving pin module into modules/machine.
2017-02-05 19:56:24 +01:00
Glenn Ruben Bakke
616d76cb7a
nrf5/adc: Moving adc module into modules/machine.
2017-02-05 16:17:12 +01:00
Glenn Ruben Bakke
eea975cd25
nrf5/i2c: Moving i2c module into modules/machine.
2017-02-05 00:05:20 +01:00
Glenn Ruben Bakke
ab1994b2b2
nrf5/spi: Moving spi module into modules/machine.
2017-02-05 00:03:49 +01:00
Glenn Ruben Bakke
cb2d040726
nrf5/uart: Moving uart module into modules/machine to start converting it into machine module and not pyb.
2017-02-05 00:00:42 +01:00
Glenn Ruben Bakke
8c404909e1
nrf5/machine: Moving modmachine into modules/machine folder. Updating Makefile.
2017-02-04 23:56:42 +01:00