Vasily Davydov
a0023e622e
relay: [ #9 ] utilize parsed event data
2023-05-13 01:33:37 +03:00
Vasily Davydov
b7196b769e
relay: [ #9 ] control the power mode
2023-05-13 01:11:12 +03:00
Vasily Davydov
c468a0d828
relay: [ #9 ] remove en pins from relaydevice
2023-05-13 00:26:48 +03:00
Vasily Davydov
07a6937077
relay: [ #9 ] create Event parser
2023-05-13 00:24:31 +03:00
Vasily Davydov
1d9e53dc20
relay: [ #9 ] create relaydevice
2023-05-13 00:00:46 +03:00
Vasily Davydov
2a42371458
relay: [ #9 ] init task
2023-05-12 23:32:55 +03:00
RedHawk
2f58aad006
Merge branch 'FreeRTOS-debug' into logging
2023-05-12 17:23:59 +03:00
RedHawk
feb2a3d08d
FreeRTOS: Task monitoring.
2023-05-12 17:23:35 +03:00
RedHawk
3012ee1b20
logging: Better logging. Fixed pins printout.
2023-05-12 17:16:19 +03:00
RedHawk
e5bb200789
logging: Better logging. Fixed pins printout.
2023-05-12 17:08:01 +03:00
RedHawk
d1d90a553a
logging: LOG_DEBUG should print C_DEBUG.
2023-05-12 16:55:18 +03:00
RedHawk
734393831e
logging: Fixing hard faults. Small cleanup.
...
*Lesser queue size.
*Removed recursive master task creation.
*Logging task now has a loop.
*Little fixes and cleanup here and there.
2023-05-12 16:44:11 +03:00
Vasily Davydov
2c3e1a8dc8
logging: don't ask...
2023-05-12 13:59:49 +03:00
RedHawk
aca9cb43c1
Merge pull request #39 from vas-dav/thread-master
...
Thread master
2023-05-12 11:35:40 +03:00
Vasily Davydov
398030afe8
log: add a comment regarding mts
2023-05-12 01:16:55 +03:00
Vasily Davydov
970081991d
peripherals: add logging
2023-05-12 01:12:26 +03:00
Vasily Davydov
49f8613166
main: add logging
2023-05-12 00:58:33 +03:00
Vasily Davydov
1a4c09c4ad
threads: add logging
2023-05-12 00:57:55 +03:00
Vasily Davydov
90656fae95
log: correct macros
2023-05-12 00:56:33 +03:00
Vasily Davydov
3fe383f180
menu: add debug logging to menu
2023-05-11 17:04:43 +03:00
Vasily Davydov
26fcad218b
log: add logging lib
2023-05-11 17:04:27 +03:00
Vasily Davydov
366010ed02
master: [ #9 ] remove redundant code
2023-05-11 16:45:50 +03:00
Vasily Davydov
7f2945efc9
master: [ #9 ] route setpoint to relay
2023-05-11 16:12:10 +03:00
Vasily Davydov
4853e4993c
master: [ #9 ] forward temp event to manager and relay
2023-05-11 16:11:14 +03:00
Vasily Davydov
2240d6ce09
master: [ #9 ] parse event in master to route it fwd
2023-05-11 01:22:05 +03:00
RedHawk
39a297c8a8
Merge pull request #36 from vas-dav/thread-manager
...
Thread manager
2023-05-11 00:41:49 +03:00
RedHawk
80a89806f7
UI: [ #35 ] Remove redundant fix.
...
*DigitalIoPin now handles pin muxing properly.
2023-05-10 13:47:06 +03:00
RedHawk
0e64099a56
DigitalIoPin: Added LPC11U68 specific pin functions
...
*In order for pin to act as IO, it must be configured with
according function. Usually it is IOCON_FUNC0,
but some pins on port 0 are an exception (IOCON_FUNC1).
2023-05-10 13:45:47 +03:00
RedHawk
356b3ebbe9
LiquidCrystal.cpp: [ #35 ] LCD now wraps text.
2023-05-10 13:12:13 +03:00
RedHawk
2b02a786fa
Menu & UI: [ #25 , #35 ] Fixed UI.
...
*String in Menu are static. Temperature is limited by -99 and 99 bounds.
*UserInterface cleaned a bit.
2023-05-10 13:11:41 +03:00
RedHawk
ea1139567a
UI: [ #35 ] Fixing issues.
...
*Send UserInterface::InterfaceWithData in the queue instead of Event.
*Remove pointer madness for LCD.
*Timeout for Idle Event from Master thread.
2023-05-09 01:14:47 +03:00
RedHawk
f0bbfb22ab
Menu & UI: [ #25 , #35 ]Communication between these tasks.
...
* The code is a mess for now. I'm not sure if there is any reason to
send a whole event to UI, it's better to send InterfaceWithData.
* Sending to queue from Menu isn't great as well.
2023-05-08 16:09:31 +03:00
RedHawk
cd84528e61
Merge branch 'thread-ui' into thread-manager
2023-05-08 15:36:37 +03:00
RedHawk
052d015425
LiquidCrystal: Added destructor.
2023-05-08 15:35:46 +03:00
RedHawk
20fe16b46e
UI: [ #35 ] Added UserInterface task.
2023-05-08 15:35:16 +03:00
RedHawk
d3f5cdebbc
menu: [ #25 ] Made states. Moved logic to Menu.
...
*Menu class now is responsible for the whole logic with
temperature and set_point.
*void NotifyAndRefreshUI (const char *str) is a placeholder
for sending a string value on a queue to UI task,
which will handle the lcd screen.
*Added error return value to Manager::parseEvent(Event* e)
2023-05-08 13:08:01 +03:00
Vasily Davydov
fad70c9f37
menu: [ #25 ] rename event to state
2023-05-07 17:45:23 +03:00
Vasily Davydov
bd2f6b32f1
menu: [ #25 ] fix warnings and add assertions
2023-05-07 17:45:23 +03:00
vas-dav
83de15ce5b
menu: [ #25 ] handle eventpair with rotary
2023-05-07 17:45:23 +03:00
Vasily Davydov
01855e2f52
manager: [ #25 ] menu class init
2023-05-07 17:45:23 +03:00
Vasily Davydov
df6411c76b
manager: [ #25 ] add Counter template for set_point
2023-05-07 17:45:23 +03:00
Vasily Davydov
a2b07be73b
manager: [ #25 ] add Event parser
2023-05-07 17:45:23 +03:00
Vasily Davydov
df04fc9107
shoh: rename threads according to thread-name
2023-05-07 17:45:23 +03:00
Vasily Davydov
e003820710
manager: [ #25 ] listen on master
2023-05-07 17:45:23 +03:00
Vasily Davydov
ddc9be976a
manager: [ #25 ] init simple task
2023-05-07 17:45:23 +03:00
RedHawk
a5c28afd61
Merge pull request #32 from vas-dav/periph-lcd
...
Periph lcd
2023-05-07 17:44:27 +03:00
RedHawk
c421af2f8c
main.cpp: [ #22 ] Example LCD code.
...
*Checked it - works like a charm.
2023-05-07 17:43:20 +03:00
RedHawk
6787f03f0a
LiquidCrystal.cpp: [ #22 ] Fixed the interrupt.
2023-05-07 17:42:39 +03:00
RedHawk
4532191da6
LCD:[ #22 ] rewritten delayMicroseconds().
...
* Now it uses timer peripheral with interrupt.
* It sets interrupt to trigger after certain time and waits for it to clear the "interrupt pending" flag.
2023-05-07 17:42:39 +03:00
RedHawk
07e4083ab8
Merge pull request #33 from vas-dav/periph-uart
...
Periph uart
2023-05-07 17:41:30 +03:00