mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 20:38:52 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Enough time has passed since these boards were moved to Orphan. Remove. - Remove include/configs/{ADS860.h,FADS823.h,FADS850SAR.h,FADS860T.h} - Cleanup defined(CONFIG_ADS), defined(CONFIG_MPC823FADS), defined(CONFIG_MPC850SAR), defined(CONFIG_SYS_DAUGHTERBOARD) - Remove the entries from boards.cfg Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
44 lines
568 B
C
44 lines
568 B
C
#include <config.h>
|
|
|
|
#include <common.h>
|
|
|
|
void
|
|
signal_delay(unsigned int n)
|
|
{
|
|
while (n--);
|
|
}
|
|
|
|
void
|
|
signal_on(void)
|
|
{
|
|
*((volatile uint *)BCSR4) &= ~(1<<(31-3)); /* led on */
|
|
}
|
|
|
|
void
|
|
signal_off(void)
|
|
{
|
|
*((volatile uint *)BCSR4) |= (1<<(31-3)); /* led off */
|
|
}
|
|
|
|
void
|
|
slow_blink(unsigned int n)
|
|
{
|
|
while (n--) {
|
|
signal_on();
|
|
signal_delay(0x00400000);
|
|
signal_off();
|
|
signal_delay(0x00400000);
|
|
}
|
|
}
|
|
|
|
void
|
|
fast_blink(unsigned int n)
|
|
{
|
|
while (n--) {
|
|
signal_on();
|
|
signal_delay(0x00100000);
|
|
signal_off();
|
|
signal_delay(0x00100000);
|
|
}
|
|
}
|