摘要: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
浙公网安备 33010602011771号