コード例 #1
0
ファイル: anna.c プロジェクト: FatSunHYS/OSCourseDesign
/* Called before configuring an on-chip UART.  */
void anna_uart_pre_configure (unsigned chan, unsigned cflags, unsigned baud)
{
	/* The Anna connects some general-purpose I/O pins on the CPU to
	   the RTS/CTS lines of UART 1's serial connection.  I/O pins P07
	   and P37 are RTS and CTS respectively.  */
	if (chan == 1) {
		ANNA_PORT_PM(0) &= ~0x80; /* P07 in output mode */
		ANNA_PORT_PM(3) |=  0x80; /* P37 in input mode */
	}
}
コード例 #2
0
ファイル: anna.c プロジェクト: FatSunHYS/OSCourseDesign
void __init mach_setup (char **cmdline)
{
	ANNA_PORT_PM (LEDS_PORT) = 0;	/* Make all LED pins output pins.  */
	mach_tick = anna_led_tick;
}
コード例 #3
0
ファイル: anna.c プロジェクト: iPodLinux/linux-2.4.24-ipod
void __init mach_setup (char **cmdline)
{
	ANNA_PORT_PM (LEDS_PORT) = 0;	/* Make all LED pins output pins.  */
	mach_tick = anna_led_tick;
	ROOT_DEV = MKDEV (BLKMEM_MAJOR, 0);
}