mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
imx233: add small framework for LED
It handles GPIO and PWM based LEDs, possibly with several channels (red-green LED for example). The debug allows one to play with the setting. Currently the code supports the ZEN, ZEN X-Fi, and ZEN Mozaic. Change-Id: I8c3b66e6ba21778acdb123daabb724280a7d1a4f
This commit is contained in:
parent
759a78e5df
commit
b23b7088cb
6 changed files with 312 additions and 5 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include "button.h"
|
||||
#include "fmradio_i2c.h"
|
||||
#include "powermgmt-imx233.h"
|
||||
#include "led-imx233.h"
|
||||
|
||||
#include "regs/digctl.h"
|
||||
#include "regs/usbphy.h"
|
||||
|
|
@ -202,6 +203,7 @@ void system_init(void)
|
|||
imx233_power_init();
|
||||
imx233_i2c_init();
|
||||
imx233_powermgmt_init();
|
||||
imx233_led_init();
|
||||
/* setup watchdog */
|
||||
watchdog_init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue