I am implementing a driver for zephyr with your code. Getting and setting the time work.
However, I am not able to make the interrupt pin go Low after using RV3028_EnableAlarm
Example Code:
rv3028_alarm_t alarm={
.EnableInterrupts = true,
.EnableMinutesAlarm = true,
.EnableHoursAlarm = false,
.EnableDayAlarm = false,
.PM = false,
.UseDateAlarm = false,
.Minutes = 1,
.Hours = 0,
.Day = 0
};
rc = RV3028_EnableAlarm(my_instance,&alarm);`
I set the unix time to 0, and expect that after 60 seconds the interrupt is triggered. If I find a solution I will update this issue. So far I am not sure that this is really setting the AE bit
https://github.com/Kampi/RV-3028-C7/blob/ca11937075232cdb53133656c5c592bd7a96cce0/external/RV3028/RV3028.c#L1095
It should be as follows (right?)
ErrorCode = RV3028_ModifyRegister(RV3028_REG_CONTROL2, 0x01 << RV3028_BIT_AIE, 0x01 << RV3028_BIT_AIE, p_Device);