Tamper input ?

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

Moderator: RoccoMarco

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Tamper input ?

Post by Tabulous »

Is the Tamper input supported in the current RTC driver ?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Tamper input ?

Post by Giovanni »

I never considered it, shouldn't it just be signaled via an EXT line? does it need initialization support of any kind?

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Tamper input ?

Post by Tabulous »

The way i want to use it is to save a timestamp on triggering, so PA13 is assigned the tamper input(AF Function), there can also be edge and filtering settings. Thus if the tamper pin is triggered, the RTC (even when only running on VBat) will store the time at which this event happened.

This functionality is all part of the RTC module on the STMF2/Fs, but i think only the basic clock calendar functions have been implemented so far in chibios.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Tamper input ?

Post by Giovanni »

It looks like it just requires the implementation of a function returning the time stamp.

Being this an STM32-specific thing it should be named like rtcSTM32GetTamperTimeStamp() or similar and be exported by the low level part. I will give it a try but feel free to contribute a patch before that :)

Giovanni
Post Reply