Commit Graph
10 Commits
Author SHA1 Message Date
Embedded Innovation bffc87fe93 Fix clear pending ints for AVR (#816)
Support full AVR range
2017-04-03 21:08:10 +02:00
Embedded Innovation f84960dc28 Fix watchdog sleep calculation (#814)
Round requested sleep time up to next multiple of 16ms, to sleep at
least requested time.
Sleep time of 0 will return immediately.
Fixed watchdog sleep time calculation. AVR libc watchdog time
implementation is inconsistent, and requires larger flash/ram usage.
2017-04-02 19:49:57 +02:00
Embedded Innovation 3350d79fe6 AVR sleep with external interrupts fixes (#813)
Fixing #812, #811, #809
2017-04-01 15:05:57 +02:00
Embedded Innovation 32596676e5 Fix detach pin interrupt in hwSleep (#599)
Fix issue #598
Pin interrupts used as wakeup source for hwSleep now get detached
correctly, also when the interrupts did not occur.
2016-10-03 20:44:04 +02:00
Embedded Innovation b7ae549a04 Merge pull request #557 from tekka007/RF24update
Updates to RF24 driver
2016-08-14 15:51:57 +02:00
Embedded Innovation 6bdde5b1ac Add missing GOT_PARENT indication (#541)
* Add missing GOT_PARENT indication

* Fix tabs
2016-08-05 18:37:17 +02:00
Embedded Innovation 99973a346e Add nRF24 receive message buffering (#538)
* Add critical section support

Allows defining a code block which is executed as a critical section.
Supports AVR, ESP8266 & SAMD.

* Add receive message buffering

When MY_RF24_IRQ_PIN is defined (and connected), a buffer will be used
to retrieve & store messages received by nRF24 as fast as possible.
This reduces the chance of losing messages due to a busy
microcontroller.
nRF24 SPI rx message transfer is running from interrupt context when
MY_RF24_IRQ_PIN is defined. If this transfer takes too long, serial
characters received will get lost. Therefore serial rx is enabled during
SPI transfer of nRF messages.

Limitations: Only AVR/SAMD & nRF24L01+ combinations can buffer rx
messages.
nRF24L01+ IRQ pin should be connected to AVR.
Tested on W5100- & Serial-gateway.

SAMD has not been tested yet!

* Fix Doxygen warnings

* Fix more Doxygen warnings
2016-08-02 22:20:25 +02:00
Embedded Innovation 83cbb921f5 Unify interrupt handling (#520)
ATMega328 hardware abstraction used a mix of AVR cli/sei and Arduino
noInterrupts/interrupts calls.
Changed to use AVR cli/sei only.
2016-07-17 10:28:00 +02:00
Embedded Innovation 1305aeca8a Fix race in sleep with interrupts (#519)
* Interrupts occurring during sleep-setup possibly fail to wake mcu
* Detach interrupt handler in interrupt handler to correctly handle
level-interrupts
2016-07-17 09:52:56 +02:00
Embedded Innovation e0e78a6bae Add library status indication & improve error LED feedback (#462)
* Added MyIndication to provide status feedback from the library

* Fix: Allow led blinking for hardware errors

* Refactor LED blinking implementation to show blink patterns

* Refactor LED blinking to show blink pattern
2016-06-06 18:43:42 +02:00