GadgetSeed  0.9.6
rtc.c ファイル

STM32 RTC [詳解]

#include "device.h"
#include "device/rtc_ioctl.h"
#include "datetime.h"
#include "tkprintf.h"
#include "system.h"
#include "stm32f4xx_hal.h"
#include "dkprintf.h"
rtc.c の依存先関係図:

[ソースコード]

関数

void MX_RTC_Init (void)
 
void HAL_RTC_MspInit (RTC_HandleTypeDef *hrtc)
 
void HAL_RTC_AlarmAEventCallback (RTC_HandleTypeDef *hrtc)
 
void HAL_RTCEx_AlarmBEventCallback (RTC_HandleTypeDef *hrtc)
 
static int rtc_register (struct st_device *dev, char *param)
 
static int rtc_ioctl (struct st_device *dev, unsigned int com, unsigned int arg, void *param)
 

変数

RTC_HandleTypeDef hrtc
 
const struct st_device rtc_device
 

詳解

STM32 RTC

日付
2015.08.12
著者
Takashi SHUDO

rtc.c に定義があります。

関数詳解

◆ MX_RTC_Init()

void MX_RTC_Init ( void  )

Initialize RTC and set the Time and Date

rtc.c23 行目に定義があります。

変数詳解

◆ rtc_device

const struct st_device rtc_device
初期値:
= {
.explan = "STM32F4 RTC",
.register_dev = rtc_register,
.ioctl = rtc_ioctl,
}
#define DEF_DEV_NAME_RTC
標準リアルタイムクロックデバイス名
Definition: rtc_ioctl.h:15

rtc.c204 行目に定義があります。