Browse Source

Reformat wiringPi.c

Fix indentation
pull/163/head
DragonWork 2 years ago
committed by GitHub
parent
commit
6aef70c3c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      wiringPi/wiringPi.c

+ 6
- 6
wiringPi/wiringPi.c View File

@@ -213,10 +213,10 @@ volatile unsigned int *_wiringPiTimerIrqRaw ;
// piGpioBase:
// The base address of the GPIO memory mapped hardware IO

#define GPIO_PERI_BASE_OLD 0x0020000000
#define GPIO_PERI_BASE_2835 0x003F000000
#define GPIO_LOW_PERI_BASE_2711 0x00FE000000
#define GPIO_HIGH_PERI_BASE_2711 0x047E000000
#define GPIO_PERI_BASE_OLD 0x020000000
#define GPIO_PERI_BASE_2835 0x03F000000
#define GPIO_LOW_PERI_BASE_2711 0x0FE000000
#define GPIO_HIGH_PERI_BASE_2711 0x47E000000

static volatile unsigned long piGpioBase = 0 ;

@@ -2359,9 +2359,9 @@ int wiringPiSetup (void)

GPIO_PADS = piGpioBase + 0x100000 ;
GPIO_CLOCK_BASE = piGpioBase + 0x101000 ;
GPIO_BASE = piGpioBase + 0x200000 ;
GPIO_BASE = piGpioBase + 0x200000 ;
GPIO_TIMER = piGpioBase + 0x00B000 ;
GPIO_PWM = piGpioBase + 0x20C000 ;
GPIO_PWM = piGpioBase + 0x20C000 ;

// Map the individual hardware components



Loading…
Cancel
Save