HengFeng

--博观而约取,厚积而薄发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2013年3月29日

摘要: Mokoid是一个简洁的开源项目,从中可以学到android HAL/JNI/framework的实现。一, HAL层 (hardware\modules\led\Led.c & Led.h)在HAL最重要的是要有2个结构体:hw_module_t和hw_device_t某个具体的module需要封装这2个结构体,生产自己的结构体:structled_module_t{ struct hw_module_t common;};structled_control_device_t{ struct hw_device_t common; /* attributes */ int fd; / 阅读全文

posted @ 2013-03-29 11:14 hengfeng 阅读(743) 评论(0) 推荐(0) 编辑