UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
antenna.c
Go to the documentation of this file.
1 
11 #include "board.h"
12 #include "../gpio.h"
13 #include "../delay.h"
14 
15 #include "../antenna.h"
16 
17 void Antenna_deploy(void)
18 {
19  GPIO_set(GPIO_PB5);
20  Delay_ms(5000);
21  GPIO_reset(GPIO_PB5);
22 }
23 
25 {
26  return GPIO_read(GPIO_PB4);
27 }
void Delay_ms(uint32_t milliseconds)
Definition: delay.c:19
void Antenna_deploy(void)
Definition: antenna.c:17
bool Antenna_read_deployment_switch(void)
Definition: antenna.c:24
bool GPIO_read(uint8_t gpio_num)
Definition: gpio.c:29
void GPIO_set(uint8_t gpio_num)
Definition: gpio.c:13
void GPIO_reset(uint8_t gpio_num)
Definition: gpio.c:18