800*320工程文件+初始demo提交

This commit is contained in:
2024-03-07 16:46:43 +08:00
parent 33e6eb45b3
commit 70ec3005bb
3306 changed files with 3374364 additions and 2563 deletions

View File

@ -0,0 +1,31 @@
#ifndef _DRIVER_RTC_H_
#define _DRIVER_RTC_H_
#include <stdint.h>
#define CO_BIT(pos) (1UL<<(pos))
#define PMU_RTC_CRL 0x37
#define PMU_UPDATE_EN CO_BIT(0)
#define PMU_VAL_RD CO_BIT(1)
#define ALAMA_CLR CO_BIT(2)
#define ALAMB_CLR CO_BIT(3)
#define ALAMA_EN CO_BIT(4)
#define ALAMB_EN CO_BIT(5)
#define PMU_REG_RST_CTRL 0x02
#define PMU_REG_CLK_CTRL 0x01
enum rtc_idx_t
{
RTC_A,
RTC_B,
};
void rtc_test(void);
void rtc_stop(void);
void rtc_isr_ram(uint8_t rtc_idx);
#endif