Add STM3240 RTC header file

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4111 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-11-21 18:55:54 +00:00
parent b4c4950183
commit dc45728831
3 changed files with 12 additions and 8 deletions
@@ -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. * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@@ -33,8 +33,8 @@
* *
************************************************************************************/ ************************************************************************************/
#ifndef __ARCH_ARM_SRC_STM32_CHIP_STM32_RTC_H #ifndef __ARCH_ARM_SRC_STM32_CHIP_STM32F10XXX_RTC_H
#define __ARCH_ARM_SRC_STM32_CHIP_STM32_RTC_H #define __ARCH_ARM_SRC_STM32_CHIP_STM32F10XXX_RTC_H
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * 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_SHIFT (0) /* Bits 3-0: RTC Clock Divider High */
#define RTC_DIVH_RTC_DIV_MASK (0x0f << RTC_DIVH_RTC_DIV_SHIFT) #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 */
+5 -1
View File
@@ -43,8 +43,12 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include "chip.h" #include "chip.h"
#include "chip/stm32_rtc.h" #if defined(CONFIG_STM32_STM32F10XX)
# include "chip/stm32f10xxx_rtc.h"
# include "chip/stm32_bkp.h" # include "chip/stm32_bkp.h"
#elif defined(CONFIG_STM32_STM32F40XX)
# include "chip/stm32f40xxx_rtc.h"
#endif
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions