浏览代码

Reformat wiringPi.c

Fix indentation
pull/163/head
DragonWork 2 年前
committed by GitHub
父节点
当前提交
6aef70c3c8
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      wiringPi/wiringPi.c

+ 6
- 6
wiringPi/wiringPi.c 查看文件

@@ -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



正在加载...
取消
保存