#include #include #include // BSC #define BCR1 ((volatile uint16_t *)0xffffff60) #define BCR2 ((volatile uint16_t *)0xffffff62) #define WCR1 ((volatile uint16_t *)0xffffff64) #define WCR2 ((volatile uint16_t *)0xffffff66) #define MCR ((volatile uint16_t *)0xffffff68) #define PCR ((volatile uint16_t *)0xffffff6c) #define RTCSR ((volatile uint16_t *)0xffffff6e) #define RTCNT ((volatile uint16_t *)0xffffff70) #define RTCOR ((volatile uint16_t *)0xffffff72) #define RFCR ((volatile uint16_t *)0xffffff74) // CPG #define FRQCR ((volatile uint16_t *)0xffffff80) #define STBCR ((volatile uint8_t *)0xffffff82) #define STBCR2 ((volatile uint8_t *)0xffffff88) #define WTCNT ((volatile uint8_t *)0xffffff84) #define WTCSR ((volatile uint8_t *)0xffffff86) int main(int argc, char *argv[]) { printf("BCR1:%04x BCR2:%04x WCR1:%04x WCR2:%04x\n", *BCR1, *BCR2, *WCR1, *WCR2); printf("MCR:%04x PCR:%04x\n", *MCR, *PCR); printf("RTCSR:%04x RTCNT:%04x RTCOR:%04x RFCR:%04x\n", *RTCSR, *RTCNT, *RTCOR, *RFCR); printf("FRQCR:%04x STBCR:%02x STBCR2:%02x\n", *FRQCR, *STBCR, *STBCR2); printf("WTCNT:%02x WTCSR:%02x\n", *WTCNT, *WTCSR); return 0; }