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:
parent
b4c4950183
commit
dc45728831
@ -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 */
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user