182 Commits

Author SHA1 Message Date
Vasily Davydov
486b4a40b2 main: working version 0.2 2023-07-07 17:03:36 +03:00
Vasily Davydov
9be6c99e2c
Merge pull request #68 from vas-dav/pinmap-hdr
threadcommon: [#67] common pinmap header
2023-07-07 15:22:14 +03:00
Vasily Davydov
8789e8d886 threadcommon: [#67] common pinmap header 2023-06-17 10:28:16 +03:00
Vasily Davydov
eaf0338497
Merge pull request #66 from vas-dav/temperature
Temperature
2023-06-15 11:16:10 +03:00
RedHawk
7a25e14a8f temp: [#61] Make things a little clearer.
* Newline in log isn't nice.
* I managed to confuse even myself with this 0x4a.
It's actually not used anywhere currently.
2023-06-14 20:36:26 +03:00
RedHawk
88a7bac525 temp: [#61] Temperature parsing and documentation. 2023-06-13 23:52:14 +03:00
RedHawk
cb64ae7e0f temp: [#61] CRC check. 2023-06-13 19:52:53 +03:00
RedHawk
4613fce370 temp: [#61] Communication with sensor.
* Up/Down state.
* Raw temperature data.
* Can't believe it actually worked.
2023-06-13 19:27:00 +03:00
RedHawk
7cc658bc2e temp sensor: [#61] Added placeholder for the sensor interface. 2023-06-13 16:50:27 +03:00
RedHawk
34618d640d rotary: [#62] Change pin for rotary press.
* Connected button to ground.
* It seems that initially chosen pin has no interrupts!
* That's a way to spend several hours...
2023-06-13 16:50:10 +03:00
RedHawk
38b24f5998 rotary: [#62] Changed interrupts behaviour.
* Button on the rotary is still inactive. Demands further investigation
  with logic analizer.
2023-06-11 13:48:24 +03:00
RedHawk
2b785e5b0c prototype: Change pins to the prototype ones. 2023-06-11 12:17:43 +03:00
RedHawk
2e496a23c9
Merge pull request #63 from vas-dav/unreachable-sensor-60
threads: [#60] display error when temperature is unavailable
2023-06-11 12:09:54 +03:00
RedHawk
766e4ceb0f threads: [#60] Fix compilation errors. 2023-06-11 12:06:24 +03:00
RedHawk
28eae75b21
Merge pull request #59 from vas-dav/cleanup
cleanup: delete blinky
2023-06-11 11:55:29 +03:00
vas-dav
1400feffde threads: [#60] display error when temperature is unavailable
- -128 as error signal (highly unlikely temp)
- errorView
2023-06-10 14:29:09 +03:00
Vasily Davydov
3267f2acca cleanup: delete blinky 2023-05-31 16:55:29 +03:00
Vasily Davydov
dc0dc1f095
Merge pull request #58 from vas-dav/runtime-stats
clock: [#55] Overflow handling for FreeRTOS stats.
2023-05-30 11:05:59 +03:00
RedHawk
af73839406 clock: [#55] Proper variable type. 2023-05-30 10:41:09 +03:00
RedHawk
d76151ef15 FreeRTOSConfig: [#55] Set runtime counter type to 64 bit. 2023-05-30 10:24:57 +03:00
RedHawk
cb31fc4009 clock: [#55] Overflow handling for FreeRTOS stats. 2023-05-29 20:01:35 +03:00
RedHawk
70f0c7d8ca
Merge pull request #56 from vas-dav/balance-tasks
Balance tasks
2023-05-29 11:36:08 +03:00
RedHawk
c0f4911af0 Menu: [#53] Lower bound for desired temperature
* 10 is the lowest.
* Shifted it on screen to take only 2 cells.
2023-05-28 13:10:14 +03:00
RedHawk
dfa34d9d16 logging: [#54] Removed UART from ISR
*No reason to remove definition, since it is still usable.
For some reason, powered from my PC it works fine.
Yet, it is bad to call UART from ISR anyway, our rotary queue will
overflow from time to time, so it's better not to slow down processing.
2023-05-28 13:03:07 +03:00
RedHawk
f9a1066cd8 Master: [#5] Shift queue and task sizes.
*Relay: mitigate warning.
2023-05-28 13:03:07 +03:00
Vasily Davydov
fbd9d4723a
Merge pull request #52 from vas-dav/log-high-debug
log: resolve [#51]
2023-05-19 01:50:10 +03:00
Vasily Davydov
cce1b2bf63 log: resolve [#51] 2023-05-19 01:43:35 +03:00
RedHawk
845f021a50
Merge pull request #50 from vas-dav/menu-array-2
menu: [#38] resolve Menu array of string elements
2023-05-19 01:31:43 +03:00
RedHawk
090c551e39 menu: [#38] Proper UIString construction 2023-05-19 01:30:48 +03:00
Vasily Davydov
cbd08e8860 menu: [#38] resolve Menu array of string elements 2023-05-19 01:02:44 +03:00
RedHawk
4d42f347b2
Merge pull request #47 from vas-dav/thread-temperature
Thread temperature
2023-05-19 00:12:43 +03:00
RedHawk
f8f7354917
Merge pull request #48 from vas-dav/event-rewrite-46
Event rewrite 46
2023-05-19 00:11:42 +03:00
RedHawk
353fea2255 temperature: Change to new Event. 2023-05-19 00:10:47 +03:00
RedHawk
05037d2677 Relay: Missed break; 2023-05-18 23:54:22 +03:00
RedHawk
85520b6fad temperature: Sensor-specific handling. Proper delay. 2023-05-18 23:54:22 +03:00
Vasily Davydov
1ce12cfd02 master: add more strict debug to queue send 2023-05-18 23:54:22 +03:00
Vasily Davydov
1b3a7f4f75 temperature: [#9] [#11] fix temp_value with error value 2023-05-18 23:52:08 +03:00
Vasily Davydov
ef32a5077b temperature: [#9] [#11] send Event to master 2023-05-18 23:52:08 +03:00
RedHawk
599be89871 clock: Fixed the bug with multitask. 2023-05-18 23:52:08 +03:00
RedHawk
b891695bfc temperature: Fixing issues.
*We are running out of memory.
*Less safe I2C transaction.
*Discovered a bug in clock.
2023-05-18 23:52:08 +03:00
RedHawk
fc2a05a9d8 temperature: Temperature sensor handling. 2023-05-18 23:52:07 +03:00
RedHawk
f578fd2854 temperature: Base for temperature thread 2023-05-18 23:52:07 +03:00
Vasily Davydov
2ccce7a6b2 event: [#46] remove deprecated methods 2023-05-18 23:46:05 +03:00
Vasily Davydov
90e4e0e43d threads: master: [#46] add error on Evemt::Null 2023-05-18 23:44:38 +03:00
Vasily Davydov
5441e3a9ca threads: master: [#46] correct if statement 2023-05-18 23:42:46 +03:00
Vasily Davydov
7c7e69ffa1 threads: manager: [#46] renmae event handling method 2023-05-18 23:36:47 +03:00
Vasily Davydov
6d80c979d8 threads: rotary: [#46] use new Event 2023-05-18 23:34:48 +03:00
Vasily Davydov
c5692fd5ba threads: relay: [#46] use new Event 2023-05-18 23:32:27 +03:00
Vasily Davydov
23dda8ba74 threads: master: [#46] use new Event 2023-05-18 23:32:04 +03:00
Vasily Davydov
2f6bce5d9a threads: manager: [#46] use new Event 2023-05-18 23:24:08 +03:00