Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tunnel_hw.c File Reference
#include <stm32/flash.h>
#include <stm32/misc.h>
#include <stm32/gpio.h>
#include <stm32/rcc.h>
#include "mcu.h"
#include "mcu_periph/sys_time.h"
#include "led.h"
+ Include dependency graph for tunnel_hw.c:

Go to the source code of this file.

Macros

#define A_PERIPH   RCC_APB2Periph_GPIOA
 
#define A_RX_PIN   GPIO_Pin_10
 
#define A_RX_PORT   GPIOA
 
#define A_TX_PIN   GPIO_Pin_9
 
#define A_TX_PORT   GPIOA
 
#define B_PERIPH   RCC_APB2Periph_GPIOA
 
#define B_RX_PIN   GPIO_Pin_3
 
#define B_RX_PORT   GPIOA
 
#define B_TX_PIN   GPIO_Pin_2
 
#define B_TX_PORT   GPIOA
 

Functions

static void main_periodic (void)
 
static void main_event (void)
 
void Delay (__IO uint32_t nCount)
 
int main (void)
 

Macro Definition Documentation

#define A_PERIPH   RCC_APB2Periph_GPIOA

Definition at line 34 of file tunnel_hw.c.

Referenced by main().

#define A_RX_PIN   GPIO_Pin_10

Definition at line 35 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define A_RX_PORT   GPIOA

Definition at line 36 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define A_TX_PIN   GPIO_Pin_9

Definition at line 37 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define A_TX_PORT   GPIOA

Definition at line 38 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define B_PERIPH   RCC_APB2Periph_GPIOA

Definition at line 40 of file tunnel_hw.c.

#define B_RX_PIN   GPIO_Pin_3

Definition at line 41 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define B_RX_PORT   GPIOA

Definition at line 42 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define B_TX_PIN   GPIO_Pin_2

Definition at line 43 of file tunnel_hw.c.

Referenced by main(), and main_event().

#define B_TX_PORT   GPIOA

Definition at line 44 of file tunnel_hw.c.

Referenced by main(), and main_event().

Function Documentation

void Delay ( __IO uint32_t  nCount)

Definition at line 49 of file tunnel_hw.c.

int main ( void  )
static void main_event ( void  )
inlinestatic

Definition at line 97 of file tunnel_hw.c.

References A_RX_PIN, A_RX_PORT, A_TX_PIN, A_TX_PORT, B_RX_PIN, B_RX_PORT, B_TX_PIN, B_TX_PORT, foo, LED_OFF, and LED_ON.

Referenced by main().

+ Here is the caller graph for this function:

static void main_periodic ( void  )
inlinestatic

Definition at line 93 of file tunnel_hw.c.

References LED_PERIODIC.

Referenced by main().

+ Here is the caller graph for this function: