summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
566b16e)
This reduces the pulse width on the igniter circuit caused by the
default cc1111 pin configuration at powerup time.
Signed-off-by: Keith Packard <keithp@keithp.com>
enum ao_igniter_status
ao_igniter_status(enum ao_igniter igniter);
enum ao_igniter_status
ao_igniter_status(enum ao_igniter igniter);
+void
+ao_ignite_set_pins(void);
+
void
ao_igniter_init(void);
void
ao_igniter_init(void);
__xdata struct ao_task ao_igniter_task;
void
__xdata struct ao_task ao_igniter_task;
void
+ao_ignite_set_pins(void)
{
AO_IGNITER_DROGUE = 0;
AO_IGNITER_MAIN = 0;
AO_IGNITER_DIR |= AO_IGNITER_DROGUE_BIT | AO_IGNITER_MAIN_BIT;
{
AO_IGNITER_DROGUE = 0;
AO_IGNITER_MAIN = 0;
AO_IGNITER_DIR |= AO_IGNITER_DROGUE_BIT | AO_IGNITER_MAIN_BIT;
+}
+
+void
+ao_igniter_init(void)
+{
+ ao_ignite_set_pins();
ao_cmd_register(&ao_ignite_cmds[0]);
ao_add_task(&ao_igniter_task, ao_igniter, "igniter");
}
ao_cmd_register(&ao_ignite_cmds[0]);
ao_add_task(&ao_igniter_task, ao_igniter, "igniter");
}
+ /*
+ * Reduce the transient on the ignite pins at startup by
+ * pulling the pins low as soon as possible at power up
+ */
+ ao_ignite_set_pins();
/* Turn on the red LED until the system is stable */
ao_led_init(LEDS_AVAILABLE);
/* Turn on the red LED until the system is stable */
ao_led_init(LEDS_AVAILABLE);