Skip to content

Commit 6d010cb

Browse files
Moises made them active lmao
1 parent 6f76ed3 commit 6d010cb

File tree

2 files changed

+20
-43
lines changed

2 files changed

+20
-43
lines changed

FprimeZephyrReference/Components/LoadSwitch/LoadSwitch.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Components {
22
@ A generic load switch for controlling power to components
3-
active component LoadSwitch {
3+
passive component LoadSwitch {
44

55
# One async command/port is required for active components
66
# This should be overridden by the developers with a useful command/port
@@ -11,8 +11,8 @@ module Components {
1111

1212
# @ Example async command
1313
# async command COMMAND_NAME(param_name: U32)
14-
async command TURN_ON()
15-
async command TURN_OFF()
14+
sync command TURN_ON()
15+
sync command TURN_OFF()
1616

1717
# @ Example telemetry counter
1818
# telemetry ExampleCounter: U64
@@ -33,7 +33,7 @@ module Components {
3333

3434
# Input that will be used by other components if they want to force a reset
3535
# (off and on again) of the load switch
36-
async input port Reset: Fw.Signal
36+
sync input port Reset: Fw.Signal
3737

3838
# @ Example parameter
3939
# param PARAMETER_NAME: U32

FprimeZephyrReference/ReferenceDeployment/Top/instances.fpp

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -37,45 +37,6 @@ module ReferenceDeployment {
3737
stack size Default.STACK_SIZE \
3838
priority 4
3939

40-
instance face4LoadSwitch: Components.LoadSwitch base id 0x10003000 \
41-
queue size Default.QUEUE_SIZE \
42-
stack size Default.STACK_SIZE \
43-
priority 5
44-
45-
instance face0LoadSwitch: Components.LoadSwitch base id 0x10004000 \
46-
queue size Default.QUEUE_SIZE \
47-
stack size Default.STACK_SIZE \
48-
priority 5
49-
50-
instance face1LoadSwitch: Components.LoadSwitch base id 0x10005000 \
51-
queue size Default.QUEUE_SIZE \
52-
stack size Default.STACK_SIZE \
53-
priority 5
54-
55-
instance face2LoadSwitch: Components.LoadSwitch base id 0x10006000 \
56-
queue size Default.QUEUE_SIZE \
57-
stack size Default.STACK_SIZE \
58-
priority 5
59-
60-
instance face3LoadSwitch: Components.LoadSwitch base id 0x10007000 \
61-
queue size Default.QUEUE_SIZE \
62-
stack size Default.STACK_SIZE \
63-
priority 5
64-
65-
instance face5LoadSwitch: Components.LoadSwitch base id 0x10008000 \
66-
queue size Default.QUEUE_SIZE \
67-
stack size Default.STACK_SIZE \
68-
priority 5
69-
70-
instance payloadPowerLoadSwitch: Components.LoadSwitch base id 0x10009000 \
71-
queue size Default.QUEUE_SIZE \
72-
stack size Default.STACK_SIZE \
73-
priority 5
74-
75-
instance payloadBatteryLoadSwitch: Components.LoadSwitch base id 0x1000A000 \
76-
queue size Default.QUEUE_SIZE \
77-
stack size Default.STACK_SIZE \
78-
priority 5
7940

8041
instance prmDb: Svc.PrmDb base id 0x1000B000 \
8142
queue size Default.QUEUE_SIZE \
@@ -146,4 +107,20 @@ module ReferenceDeployment {
146107

147108
instance fsSpace: Components.FsSpace base id 0x10032000
148109

110+
instance face4LoadSwitch: Components.LoadSwitch base id 0x10033000
111+
112+
instance face0LoadSwitch: Components.LoadSwitch base id 0x10034000
113+
114+
instance face1LoadSwitch: Components.LoadSwitch base id 0x10035000
115+
116+
instance face2LoadSwitch: Components.LoadSwitch base id 0x10036000
117+
118+
instance face3LoadSwitch: Components.LoadSwitch base id 0x10037000
119+
120+
instance face5LoadSwitch: Components.LoadSwitch base id 0x10038000
121+
122+
instance payloadPowerLoadSwitch: Components.LoadSwitch base id 0x10039000
123+
124+
instance payloadBatteryLoadSwitch: Components.LoadSwitch base id 0x1003A000
125+
149126
}

0 commit comments

Comments
 (0)