Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index d18f2d7..aced891 100644 extern bool sd_enabled; #include "dbop-as3525.h" #endif +static inline unsigned read_arm_info(void) +{ + unsigned cp15_value; + asm volatile ( + "mrc p15, 0, %0, c0, c0, 0 @ read control reg\n" : "=r"(cp15_value)); + return (cp15_value); +} + static inline unsigned read_cp15 (void) { unsigned cp15_value; bool dbg_ports(void) while(1) { line = 0; + lcd_puts(0, line++, "[ARM CPU: 0x%x]", read_arm_info()); lcd_puts(0, line++, "[GPIO Vals and Dirs]"); lcd_putsf(0, line++, "GPIOA: %2x DIR: %2x", GPIOA_DATA, GPIOA_DIR); lcd_putsf(0, line++, "GPIOB: %2x DIR: %2x", GPIOB_DATA, GPIOB_DIR); |