This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FS0:\> efi\boot\bootaa64.efi -S 1 | |
Loading driver at 0x083F6161000 EntryPoint=0x083F6176AA0 | |
Loading driver at 0x083F6161000 EntryPoint=0x083F6176AA0 | |
UEFI v2.70 (EDK II, Rev.65536) | |
'Seattle' by 'AMD', firmware version '22:18:58', built on 'Aug 27 2020' | |
mboot __executable_start is at 0x83f6162000 | |
Processing quirks... | |
Looking up quirks for 'AMD' 'Seattle' '22:18:58' 'Aug 27 2020' | |
Processing CPU quirks... | |
GOP framebuffer @ 0x100000000 (8294400 bytes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#include <string.h> | |
#include <unistd.h> | |
void print_help(char *prog_name) { | |
printf("Usage: %s [-n] DEVNAME COMMAND\n", prog_name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <zephyr.h> | |
#include <misc/printk.h> | |
#include <device.h> | |
#include <gpio.h> | |
#include <sys_clock.h> | |
#include <misc/util.h> | |
#include <limits.h> | |
#define GPIO_OUT_PIN 1 | |
#define GPIO_INT_PIN 3 |