摘要
针对便携设备中的电源使用要求,提出了电池电量检测、外部电源检测的低成本解决方案。采用飞思卡尔半导体的MX27处理器,设计了嵌入式Linux2.6内核下的设备驱动程序,分析了Linux2.6内核中新的驱动管理和注册机制,讨论了platform_device及platform_driver的定义和使用方法。该解决方案在实际应用中取得了较好效果。
A low-cost solution of battery power detection and external power supply detection is proposed for power requirements of portable devices. The device driver in embedded Linux2.6 kernel is designed based on Freescale MX27 processor. New driver management and register mechanism in Linux2.6 kernel are analyzed. The definition and usage of platform_device and platform_driver are discussed. This solution gets good results in actual application.
出处
《单片机与嵌入式系统应用》
2011年第5期78-81,共4页
Microcontrollers & Embedded Systems