Tag: 裸机

英特尔Galileo裸机UART

我想在Intel Galileo板上编写一个“hello world” 裸机应用程序。 当然,使用UEFI打印文本(到UART-1)效果很好,但我想“手动”访问UART,而无需UEFI的任何帮助。 在QEMU,我的代码效果很好: .h文件 #define COM1_PORT (0x03F8) #define UART_PORT (COM1_PORT) enum uart_port_offs_t { // DLAB RW THR = 0, // 0 W Transmitter Holding Buffer RBR = 0, // 0 R Receiver Buffer DLL = 0, // 1 RW Divisor Latch Low Byte IER = 1, // 0 RW Interrupt Enable Register […]