rpi-hal icon indicating copy to clipboard operation
rpi-hal copied to clipboard

Free Pascal / Lazarus Hardware Abstraction Layer for Raspberry Pi Boards

Results 11 rpi-hal issues
Sort by recently updated
recently updated
newest added

Hi, I'm asking you if it is possible to use RPI-HAL library with Asus Tinker board ? Thanks

I'd like to be able to write an ISR for a Hardware Interrupt in Lazarus - does RASPIHal offer such a feature? Armin.

In Line 14072 of the rpi_hal.pas unit, shouldn't it be **rslt:=fpWrite(hdl,buf[1],lgt);** instead of rslt:=fpWrite(hdl,buf,lgt); Otherwise I could not run the "GPIO_int_test" Kind regards, Ikarus64

Hi. This is more a question than a bug. Is there a call I can use to figure out what version of the Pi I am running on? Pi zero,...

Hi, testing your great lib, I think to have discovered a bug in that function: the line `ok:=(ptspec^.tv_nsec

The rpi_hal unit requires cthreads in the program uses heading. Either as option in the project settings or as edit in the uses. It might help new users to add...

The rpi_hal access to /dev/mem requires root priviliges. For a console application this means running it as root, thats OK. But using RPI_HAL in in a Lazarus application is not...

BCM2711 has changed the way to put up/down resistor. See https://github.com/RPi-Distro/raspi-gpio/blob/master/raspi-gpio.c for reference.

test code ` program project1; uses rpi_hal,pfio,sysutils; var s:string; begin RPI_HW_Start([InitHaltOnError,InitGPIO,InitSPI,InitI2C]); writeln('a'); I2C_string_write(RPI_I2C_busgen,$50,$20,#$01+#$02+#$34+#$56,NO_ERRHNDL); writeln('b'); I2C_string_read(RPI_I2C_busgen,$50,$20,2,NO_ERRHNDL,s); writeln(s); end. ` pi@raspberrypi:~/btest $ sudo ./project1 2019-10-03 10:24:57 WRN SPI_Dev_Init[0x00/00]: /dev/spidev0.0 2019-10-03 10:24:57 WRN...

Within rpi_hal some FPC functions have been redefined. E.g. hexstr() , upper(), lower() and others. hexstr() uses a different number of parameters. People who try to use FPC's hexstr() function...