Files

copied

Scanning the repository...

Last update 5 years 10 months by Petre Rodan
Filesfirmwaredrivers
..
adc.c
adc.h
flash.c
flash.h
fm24.c
fm24.h
fm24_memtest.c
fm24_memtest.h
gps.c
gps.h
helper.c
helper.h
rtc.c
rtc.h
rtc_dst.c
rtc_dst.h
serial_bitbang.c
serial_bitbang.h
sim900.c
sim900.h
sys_messagebus.c
sys_messagebus.h
timer_a0.c
timer_a0.h
uart0.c
uart0.h
uart1.c
uart1.h
rtc.h
#ifndef __RTCA_H__ #define __RTCA_H__ #include "proj.h" enum rtca_tevent { RTCA_EV_ALARM = BIT0, RTCA_EV_SECOND = BIT1, RTCA_EV_MINUTE = BIT2, RTCA_EV_HOUR = BIT3, RTCA_EV_DAY = BIT4, RTCA_EV_MONTH = BIT5, RTCA_EV_YEAR = BIT6 }; struct { uint32_t sys; // system time: number of seconds since power on uint16_t year; uint8_t mon; uint8_t day; uint8_t dow; uint8_t hour; uint8_t min; uint8_t sec; } rtca_time; #define rtca_stop() (RTCCTL01 |= RTCHOLD) #define rtca_start() (RTCCTL01 &= ~RTCHOLD) /* the ev variable holds the time event, see enum rtca_tevent for more info. please add -fshort-enums to CFLAGS to store rtca_tevent as only a byte */ void rtca_init(void); void rtca_set_time(); //void rtca_get_alarm(uint8_t *hour, uint8_t *min); //void rtca_set_alarm(uint8_t hour, uint8_t min); //void rtca_enable_alarm(); //void rtca_disable_alarm(); volatile enum rtca_tevent rtca_last_event; #endif
Report a bug