danjperron / BitBangingDS18B20

Method to access the DS18B20 sensor using Rapsberry Pi GPIO
41 stars 29 forks source link

Compile error #2

Closed zhhz closed 8 years ago

zhhz commented 8 years ago

I'm getting an error when I compile it on a Raspberry PI 2

gcc: error: unrecognized option ‘-rlt’

Can you point me to the right direction?

Thanks.

danjperron commented 8 years ago

Oops typo!

Please pull the new code

cd BitBangingDS18B20 git pull origin master

once it is done compile the code using -lrt instead of -rlt

B.T.W. In the file DS18B20V2.c I add a define to compile specifically for Pi2. If you want to compile for the other Pi please add "#undef PI2" after the "#define PI2" or remove the define.

If you want to compile the other c file for PI2 please add the method or just change the

define BCM2708_PERI_BASE 0x20000000

for

define BCM2708_PERI_BASE 0x3F000000

zhhz commented 8 years ago

Wow, that's quick. Thanks man. Keep up the great job!

zhhz commented 8 years ago

Closed the issue, Dan's comments resolved the issue.