Skip to content

Commit 72b4353

Browse files
committed
Add developer copyrights (mysensors#1422)
1 parent 91cc632 commit 72b4353

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

hal/architecture/STM32/MyHwSTM32.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
* Documentation: http://www.mysensors.org
1313
* Support Forum: http://forum.mysensors.org
1414
*
15+
* STM32 architecture support added by Alexander KooLru <kool@kool.ru>
16+
* Copyright (C) 2022 Alexander KooLru
17+
* STM32 sleep mode and EEPROM support added by WhiskyDelta <arne.schwarz@d2a.de>
18+
* Copyright (C) 2022 Arne Schwarz
19+
*
1520
* This program is free software; you can redistribute it and/or
1621
* modify it under the terms of the GNU General Public License
1722
* version 2 as published by the Free Software Foundation.
@@ -125,7 +130,7 @@ int8_t hwSleep(uint32_t ms)
125130
// Return what woke the mcu.
126131
// Default: no interrupt triggered, timer wake up
127132
int8_t ret = MY_WAKE_UP_BY_TIMER;
128-
133+
129134
if (ms > 0u) {
130135
// sleep for defined time
131136
LowPower.deepSleep(ms);
@@ -153,7 +158,7 @@ int8_t hwSleep(const uint8_t interrupt1, const uint8_t mode1, const uint8_t inte
153158
{
154159
// According to STM32LowPower API following modes to wake from sleep are supported: HIGH, LOW, RISING, FALLING or CHANGE
155160
// Ref: https://github.com/stm32duino/STM32LowPower
156-
161+
157162
// attach interrupts
158163
_wakeUp1Interrupt = interrupt1;
159164
_wakeUp2Interrupt = interrupt2;
@@ -164,7 +169,7 @@ int8_t hwSleep(const uint8_t interrupt1, const uint8_t mode1, const uint8_t inte
164169
if (interrupt2 != INVALID_INTERRUPT_NUM) {
165170
LowPower.attachInterruptWakeup(interrupt2, wakeUp2, mode2, DEEP_SLEEP_MODE);
166171
}
167-
172+
168173
if (ms > 0u) {
169174
// sleep for defined time
170175
return hwSleep(ms);

hal/architecture/STM32/MyHwSTM32.h

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
* Documentation: http://www.mysensors.org
1313
* Support Forum: http://forum.mysensors.org
1414
*
15+
* STM32 architecture support added by Alexander KooLru <kool@kool.ru>
16+
* Copyright (C) 2022 Alexander KooLru
17+
* STM32 sleep mode and EEPROM support added by WhiskyDelta <arne.schwarz@d2a.de>
18+
* Copyright (C) 2022 Arne Schwarz
19+
*
1520
* This program is free software; you can redistribute it and/or
1621
* modify it under the terms of the GNU General Public License
1722
* version 2 as published by the Free Software Foundation.

hal/architecture/STM32/MyMainSTM32.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* The MySensors Arduino library handles the wireless radio link and protocol
33
* between your home built sensors/actuators and HA controller of choice.
44
* The sensors forms a self healing radio network with optional repeaters. Each
@@ -12,6 +12,9 @@
1212
* Documentation: http://www.mysensors.org
1313
* Support Forum: http://forum.mysensors.org
1414
*
15+
* STM32 architecture support added by Alexander KooLru <kool@kool.ru>
16+
* Copyright (C) 2022 Alexander KooLru
17+
*
1518
* This program is free software; you can redistribute it and/or
1619
* modify it under the terms of the GNU General Public License
1720
* version 2 as published by the Free Software Foundation.

0 commit comments

Comments
 (0)