Skip to content

Commit

Permalink
Add developer copyrights (mysensors#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-maker committed Sep 19, 2022
1 parent 91cc632 commit 72b4353
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
11 changes: 8 additions & 3 deletions hal/architecture/STM32/MyHwSTM32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions hal/architecture/STM32/MyHwSTM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion hal/architecture/STM32/MyMainSTM32.cpp
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
Expand All @@ -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.
Expand Down

0 comments on commit 72b4353

Please sign in to comment.