直接操作寄存器
void setup(){
}
void loop(){
unsigned int Dev_Serial0, Dev_Serial1, Dev_Serial2;
Dev_Serial0 = *(volatile unsigned int *)(0x1FFFF7E8);
Dev_Serial1 = *(volatile unsigned int *)(0x1FFFF7EC);
Dev_Serial2 = *(volatile unsigned int *)(0x1FFFF7F0);
SerialUSB.print(Dev_Serial0,HEX);
SerialUSB.print(" ");
SerialUSB.print(Dev_Serial1,HEX);
SerialUSB.print(" ");
SerialUSB.println(Dev_Serial2,HEX);
} |