Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
board.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 The Paparazzi Team
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
28 #include <stdlib.h>
29 #include "video.h"
30 #include "mcu.h"
31 
32 void board_init(void)
33 {
34  // First we try to kill the dragon-prog and its respawner if it is running
35  int ret __attribute__((unused)) = system("killall -q -9 watchdog.sh; killall -q -9 dragon-prog");
36 
37  // We also try to initialize the video CMOS chips here (Bottom and front)
38  mt9v117_init();
39  mt9f002_init();
40 }
void mt9f002_init(void)
Initialisation of the Aptina MT9F002 CMOS sensor (1/2.3 inch 14Mp, front camera)
Definition: video.c:384
Initialization of the video specific parts of the Bebop.
void board_init(void)
Optional board init function called at the end of mcu_init().
Definition: board.c:60
void mt9v117_init(void)
Initialisation of the Aptina MT9V117 CMOS sensor (1/6 inch VGA, bottom camera)
Definition: video.c:100
Arch independent mcu ( Micro Controller Unit ) utilities.