Commit cbeeca91 by Sebastian Renner

F7 GPIO guard

parent 04c5f18d
...@@ -371,6 +371,17 @@ static void MX_GPIO_Init(void) ...@@ -371,6 +371,17 @@ static void MX_GPIO_Init(void)
LL_GPIO_ResetOutputPin(LD2_GPIO_Port, LD2_Pin); LL_GPIO_ResetOutputPin(LD2_GPIO_Port, LD2_Pin);
/**/ /**/
LL_GPIO_SetOutputPin(GPIOD, LL_GPIO_PIN_7);
/**/
GPIO_InitStruct.Pin = LL_GPIO_PIN_7;
GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
GPIO_InitStruct.Pull = LL_GPIO_PULL_NO;
LL_GPIO_Init(GPIOD, &GPIO_InitStruct);
/**/
GPIO_InitStruct.Pin = LL_GPIO_PIN_0; GPIO_InitStruct.Pin = LL_GPIO_PIN_0;
GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT; GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW;
......
...@@ -54,6 +54,7 @@ def submit(channel, action, data): ...@@ -54,6 +54,7 @@ def submit(channel, action, data):
else: else:
h = struct.pack("<BI", ord(action), len(data)) h = struct.pack("<BI", ord(action), len(data))
write(channel, h) write(channel, h)
time.sleep(0.1)
write(channel, data) write(channel, data)
def main(argv): def main(argv):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment