Bug? chrtclib.c

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Stomper85
Posts: 23
Joined: Tue Mar 19, 2013 1:25 pm

Bug? chrtclib.c

Post by Stomper85 »

Code: Select all


#include <time.h>

#include "ch.h"
#include "hal.h"

#include "chrtclib.h"

#if (defined(STM32F4XX) || defined(STM32F2XX) || defined(STM32L1XX) || \
     defined(STM32F30X) || defined(STM32F37X) || \
     defined(STM32F1XX) || defined(STM32F10X_MD) || defined(STM32F10X_LD) || \
     defined(STM32F10X_HD) || defined(STM32F10X_CL) || defined(__DOXYGEN__))
#if STM32_RTC_IS_CALENDAR
/**
 * @brief   Converts from STM32 BCD to canonicalized time format.
 *
 * @param[out] timp     pointer to a @p tm structure as defined in time.h
 * @param[in] timespec  pointer to a @p RTCTime structure


this was missing in the original file: defined(STM32F10X_CL)
So it does not work with CL Devices like STM32F105 or 107
But it seems to work just fine.

Best regards
Stomper
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Bug? chrtclib.c

Post by Giovanni »

Hi,

Change committed.

Giovanni
Post Reply