diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-21 18:55:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-21 18:55:54 +0000 |
commit | 1be4f37e13ba941f459dc6332539f7309ade5b6b (patch) | |
tree | 88d1c3370e21b27eca5f85b98621226cd9d0e343 | |
parent | ab83d9064ee2a16b518532d6f6da2ee89300beb4 (diff) | |
download | px4-nuttx-1be4f37e13ba941f459dc6332539f7309ade5b6b.tar.gz px4-nuttx-1be4f37e13ba941f459dc6332539f7309ade5b6b.tar.bz2 px4-nuttx-1be4f37e13ba941f459dc6332539f7309ade5b6b.zip |
Add STM3240 RTC header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4111 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32f10xxx_rtc.h (renamed from nuttx/arch/arm/src/stm32/chip/stm32_rtc.h) | 12 | ||||
-rw-r--r-- | nuttx/arch/arm/src/stm32/chip/stm32f40xxx_rcc.h (renamed from nuttx/arch/arm/src/stm32/chip/stm32f40xx_rcc.h) | 0 | ||||
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_rtc.h | 8 |
3 files changed, 12 insertions, 8 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_rtc.h b/nuttx/arch/arm/src/stm32/chip/stm32f10xxx_rtc.h index b9fe3d8f3..a0778f4e6 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32_rtc.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32f10xxx_rtc.h @@ -1,8 +1,8 @@ /************************************************************************************ - * arch/arm/src/stm32/chip/stm32_rtc.h + * arch/arm/src/stm32/chip/stm32f10xxx_rtc.h * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -33,8 +33,8 @@ * ************************************************************************************/ -#ifndef __ARCH_ARM_SRC_STM32_CHIP_STM32_RTC_H -#define __ARCH_ARM_SRC_STM32_CHIP_STM32_RTC_H +#ifndef __ARCH_ARM_SRC_STM32_CHIP_STM32F10XXX_RTC_H +#define __ARCH_ARM_SRC_STM32_CHIP_STM32F10XXX_RTC_H /************************************************************************************ * Pre-processor Definitions @@ -93,4 +93,4 @@ #define RTC_DIVH_RTC_DIV_SHIFT (0) /* Bits 3-0: RTC Clock Divider High */ #define RTC_DIVH_RTC_DIV_MASK (0x0f << RTC_DIVH_RTC_DIV_SHIFT) -#endif /* __ARCH_ARM_SRC_STM32_CHIP_STM32_RTC_H */ +#endif /* __ARCH_ARM_SRC_STM32_CHIP_STM32F10XXX_RTC_H */ diff --git a/nuttx/arch/arm/src/stm32/chip/stm32f40xx_rcc.h b/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_rcc.h index 6567aebf3..6567aebf3 100644 --- a/nuttx/arch/arm/src/stm32/chip/stm32f40xx_rcc.h +++ b/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_rcc.h diff --git a/nuttx/arch/arm/src/stm32/stm32_rtc.h b/nuttx/arch/arm/src/stm32/stm32_rtc.h index 28bfc339d..d2d66c95d 100644 --- a/nuttx/arch/arm/src/stm32/stm32_rtc.h +++ b/nuttx/arch/arm/src/stm32/stm32_rtc.h @@ -43,8 +43,12 @@ #include <nuttx/config.h> #include "chip.h" -#include "chip/stm32_rtc.h" -#include "chip/stm32_bkp.h" +#if defined(CONFIG_STM32_STM32F10XX) +# include "chip/stm32f10xxx_rtc.h" +# include "chip/stm32_bkp.h" +#elif defined(CONFIG_STM32_STM32F40XX) +# include "chip/stm32f40xxx_rtc.h" +#endif /************************************************************************************ * Pre-processor Definitions |