X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f1%2Fao_flash_stm_pins.h;fp=src%2Fstm32f1%2Fao_flash_stm_pins.h;h=b58bd368e4484ae3621df121c0df1e5f1fd0f1ad;hb=1311eba0bbe32bc1759a3b11b00c78774843383c;hp=0000000000000000000000000000000000000000;hpb=7b2588ee723827b9be2a2d5f287afb1b5d351b23;p=fw%2Faltos diff --git a/src/stm32f1/ao_flash_stm_pins.h b/src/stm32f1/ao_flash_stm_pins.h new file mode 100644 index 00000000..b58bd368 --- /dev/null +++ b/src/stm32f1/ao_flash_stm_pins.h @@ -0,0 +1,42 @@ +/* + * Copyright © 2013 Keith Packard + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#ifndef _AO_FLASH_STM_PINS_H_ +#define _AO_FLASH_STM_PINS_H_ + +#include + +#ifndef AO_SYSCLK + +#define AO_SYSCLK 72000000 +#define AO_HCLK 72000000 +#define AO_APB1CLK 36000000 +#define AO_APB2CLK 72000000 +#define AO_ADCCLK 12000000 + +#define AO_RCC_CFGR_USBPRE STM_RCC_CFGR_USBPRE_1_5 +#define AO_RCC_CFGR_PLLMUL STM_RCC_CFGR_PLLMUL_9 +#define AO_RCC_CFGR_PLLXTPRE STM_RCC_CFGR_PLLXTPRE_1 +#define AO_RCC_CFGR_PPRE2_DIV STM_RCC_CFGR_PPRE2_DIV_1 +#define AO_RCC_CFGR_PPRE1_DIV STM_RCC_CFGR_PPRE1_DIV_2 +#define AO_RCC_CFGR_HPRE_DIV STM_RCC_CFGR_HPRE_DIV_1 +#define AO_RCC_CFGR_ADCPRE STM_RCC_CFGR_ADCPRE_6 + +#endif + +#endif /* _AO_FLASH_STM_PINS_H_ */