#include <stdio.h>
#include <bcm_host.h>
 
void main()
{
    unsigned t;
    t = bcm_host_get_peripheral_address();
    printf("dizhi = %x\n",t);
    printf("gcc dizhi.c -I/opt/vc/include -L/opt/vc/lib -lbcm_host -o dizhi")
}