sys_layout.c
资源名称:tizos.rar [点击查看]
上传用户:qddsws
上传日期:2022-06-22
资源大小:723k
文件大小:0k
源码类别:
操作系统开发
开发平台:
C/C++
- #include <devices/sys_layout.h>
- void add_device (struct sys_gen_layout* lay, int type, struct device* dev){
- switch (type) {
- case SCREEN_DEV:
- lay->screen=dev;
- break;
- }
- }
- struct device * ret_dev (struct sys_gen_layout* lay, int type) {
- switch (type) {
- case SCREEN_DEV:
- return lay->screen;
- break;
- }
- return NULL;
- }