[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6316] moved beth and olimex board headers to sw/air
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6316] moved beth and olimex board headers to sw/airborne/boards |
Date: |
Mon, 01 Nov 2010 11:35:15 +0000 |
Revision: 6316
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6316
Author: flixr
Date: 2010-11-01 11:35:15 +0000 (Mon, 01 Nov 2010)
Log Message:
-----------
moved beth and olimex board headers to sw/airborne/boards
Added Paths:
-----------
paparazzi3/trunk/sw/airborne/boards/beth.h
paparazzi3/trunk/sw/airborne/boards/olimex_lpc_h2148.h
paparazzi3/trunk/sw/airborne/boards/olimex_stm32-h103.h
Removed Paths:
-------------
paparazzi3/trunk/conf/autopilot/boards/
Copied: paparazzi3/trunk/sw/airborne/boards/beth.h (from rev 6315,
paparazzi3/trunk/conf/autopilot/boards/beth.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/boards/beth.h (rev 0)
+++ paparazzi3/trunk/sw/airborne/boards/beth.h 2010-11-01 11:35:15 UTC (rev
6316)
@@ -0,0 +1,35 @@
+#ifndef CONFIG_BETH_H
+#define CONFIG_BETH_H
+
+#define AHB_CLK 72000000
+
+/* this board uses a crystal for HSE */
+//#define HSE_TYPE RCC_HSE_ON
+
+/* Onboard LEDs */
+#define LED_1_BANK
+#define LED_1_GPIO GPIOC
+#define LED_1_GPIO_CLK RCC_APB2Periph_GPIOC
+#define LED_1_GPIO_PIN GPIO_Pin_12
+
+#define LED_4_BANK
+#define LED_4_GPIO GPIOA
+#define LED_4_GPIO_CLK RCC_APB2Periph_GPIOA
+#define LED_4_GPIO_PIN GPIO_Pin_6
+
+#define LED_5_BANK
+#define LED_5_GPIO GPIOA
+#define LED_5_GPIO_CLK RCC_APB2Periph_GPIOA
+#define LED_5_GPIO_PIN GPIO_Pin_7
+
+#define LED_6_BANK
+#define LED_6_GPIO GPIOB
+#define LED_6_GPIO_CLK RCC_APB2Periph_GPIOB
+#define LED_6_GPIO_PIN GPIO_Pin_0
+
+#define LED_7_BANK
+#define LED_7_GPIO GPIOB
+#define LED_7_GPIO_CLK RCC_APB2Periph_GPIOB
+#define LED_7_GPIO_PIN GPIO_Pin_1
+
+#endif /* CONFIG_BETH_H */
Copied: paparazzi3/trunk/sw/airborne/boards/olimex_lpc_h2148.h (from rev 6315,
paparazzi3/trunk/conf/autopilot/boards/olimex_lpc_h2148.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/boards/olimex_lpc_h2148.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/boards/olimex_lpc_h2148.h 2010-11-01
11:35:15 UTC (rev 6316)
@@ -0,0 +1,20 @@
+#ifndef CONFIG_OLIMEX_H2148_H
+#define CONFIG_OLIMEX_H2148_H
+
+/* Master oscillator freq. */
+#define FOSC (12000000)
+/* PLL multiplier */
+#define PLL_MUL (5)
+/* CPU clock freq. */
+#define CCLK (FOSC * PLL_MUL)
+/* Peripheral bus speed mask 0x00->4, 0x01-> 1, 0x02 -> 2 */
+#define PBSD_BITS 0x02
+#define PBSD_VAL 2
+/* Peripheral bus clock freq. */
+#define PCLK (CCLK / PBSD_VAL)
+
+#define LED_1_BANK 1
+#define LED_1_PIN 24
+
+
+#endif /* CONFIG_OLIMEX_H2148_H */
Copied: paparazzi3/trunk/sw/airborne/boards/olimex_stm32-h103.h (from rev 6315,
paparazzi3/trunk/conf/autopilot/boards/olimex_stm32-h103.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/boards/olimex_stm32-h103.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/boards/olimex_stm32-h103.h 2010-11-01
11:35:15 UTC (rev 6316)
@@ -0,0 +1,18 @@
+#ifndef CONFIG_OLIMEX_STM32_H103_H
+#define CONFIG_OLIMEX_STM32_H103_H
+
+
+#define AHB_CLK 72000000
+
+/* this board uses a crystal for HSE */
+//#define HSE_TYPE RCC_HSE_ON
+
+/* Onboard LEDs */
+#define LED_1_BANK
+#define LED_1_GPIO GPIOC
+#define LED_1_GPIO_CLK RCC_APB2Periph_GPIOC
+#define LED_1_GPIO_PIN GPIO_Pin_12
+
+
+
+#endif /* CONFIG_OLIMEX_STM32_H103_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6316] moved beth and olimex board headers to sw/airborne/boards,
Felix Ruess <=