forked from mysensors/MySensors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add developer copyrights (mysensors#1422)
- Loading branch information
1 parent
91cc632
commit 72b4353
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ | |
* Documentation: http://www.mysensors.org | ||
* Support Forum: http://forum.mysensors.org | ||
* | ||
* STM32 architecture support added by Alexander KooLru <[email protected]> | ||
* Copyright (C) 2022 Alexander KooLru | ||
* STM32 sleep mode and EEPROM support added by WhiskyDelta <[email protected]> | ||
* Copyright (C) 2022 Arne Schwarz | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
|
@@ -125,7 +130,7 @@ int8_t hwSleep(uint32_t ms) | |
// Return what woke the mcu. | ||
// Default: no interrupt triggered, timer wake up | ||
int8_t ret = MY_WAKE_UP_BY_TIMER; | ||
|
||
if (ms > 0u) { | ||
// sleep for defined time | ||
LowPower.deepSleep(ms); | ||
|
@@ -153,7 +158,7 @@ int8_t hwSleep(const uint8_t interrupt1, const uint8_t mode1, const uint8_t inte | |
{ | ||
// According to STM32LowPower API following modes to wake from sleep are supported: HIGH, LOW, RISING, FALLING or CHANGE | ||
// Ref: https://github.com/stm32duino/STM32LowPower | ||
|
||
// attach interrupts | ||
_wakeUp1Interrupt = interrupt1; | ||
_wakeUp2Interrupt = interrupt2; | ||
|
@@ -164,7 +169,7 @@ int8_t hwSleep(const uint8_t interrupt1, const uint8_t mode1, const uint8_t inte | |
if (interrupt2 != INVALID_INTERRUPT_NUM) { | ||
LowPower.attachInterruptWakeup(interrupt2, wakeUp2, mode2, DEEP_SLEEP_MODE); | ||
} | ||
|
||
if (ms > 0u) { | ||
// sleep for defined time | ||
return hwSleep(ms); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ | |
* Documentation: http://www.mysensors.org | ||
* Support Forum: http://forum.mysensors.org | ||
* | ||
* STM32 architecture support added by Alexander KooLru <[email protected]> | ||
* Copyright (C) 2022 Alexander KooLru | ||
* STM32 sleep mode and EEPROM support added by WhiskyDelta <[email protected]> | ||
* Copyright (C) 2022 Arne Schwarz | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
/* | ||
* The MySensors Arduino library handles the wireless radio link and protocol | ||
* between your home built sensors/actuators and HA controller of choice. | ||
* The sensors forms a self healing radio network with optional repeaters. Each | ||
|
@@ -12,6 +12,9 @@ | |
* Documentation: http://www.mysensors.org | ||
* Support Forum: http://forum.mysensors.org | ||
* | ||
* STM32 architecture support added by Alexander KooLru <[email protected]> | ||
* Copyright (C) 2022 Alexander KooLru | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* version 2 as published by the Free Software Foundation. | ||
|