forked from xuos/xiuos
add edu-riscv64 RTC test example
This commit is contained in:
@@ -169,6 +169,7 @@ int PrivIoctl(int fd, int cmd, void *args)
|
||||
case LCD_TYPE:
|
||||
ret = PrivLcdIoctl(fd, cmd, ioctl_cfg->args);
|
||||
break;
|
||||
case RTC_TYPE:
|
||||
case ADC_TYPE:
|
||||
case DAC_TYPE:
|
||||
case WDT_TYPE:
|
||||
|
||||
@@ -149,6 +149,7 @@ enum IoctlDriverType
|
||||
ADC_TYPE,
|
||||
DAC_TYPE,
|
||||
WDT_TYPE,
|
||||
RTC_TYPE,
|
||||
DEFAULT_TYPE,
|
||||
};
|
||||
|
||||
@@ -193,6 +194,12 @@ typedef struct
|
||||
uint16_t press;
|
||||
}TouchDataParam;
|
||||
|
||||
struct RtcDrvConfigureParam
|
||||
{
|
||||
int rtc_operation_cmd;
|
||||
time_t *time;
|
||||
};
|
||||
|
||||
#define PRIV_SYSTICK_GET (CurrentTicksGain())
|
||||
#define PRIV_LCD_DEV "/dev/lcd_dev"
|
||||
#define MY_DISP_HOR_RES BSP_LCD_Y_MAX
|
||||
|
||||
Reference in New Issue
Block a user