triacd's Issues
Details of hardware
Sorry this is not an issues but. Can you provide schematic of this device.
No funciona en Raspberry Pi OS 2023
Al parecer no es compatible con esta versión:
Release date: October 10th 2023
System: 64-bit
Kernel version: 6.1
Debian version: 12 (bookworm)
el error se da al instalar modules
admin@raspberrypi:~/Documents/triacd/modules $ make
make -C "/lib/modules/6.1.0-rpi4-rpi-v8/build" M=/home/admin/Documents/triacd/modules modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-rpi4-rpi-v8'
CC [M] /home/admin/Documents/triacd/modules/aclinedrv.o
In file included from /home/admin/Documents/triacd/modules/aclinedrv.c:19:
/home/admin/Documents/triacd/modules/aclinedrv.h:94:12: error: static declaration of ‘int_pow’ follows non-static declaration
94 | static u64 int_pow(u64 base, unsigned int exp);
| ^~~~~~~
In file included from /usr/src/linux-headers-6.1.0-rpi4-common-rpi/include/linux/math64.h:6,
from /usr/src/linux-headers-6.1.0-rpi4-common-rpi/include/linux/time.h:6,
from /usr/src/linux-headers-6.1.0-rpi4-common-rpi/arch/arm64/include/asm/stat.h:12,
from /usr/src/linux-headers-6.1.0-rpi4-common-rpi/include/linux/stat.h:6,
from /usr/src/linux-headers-6.1.0-rpi4-common-rpi/include/linux/module.h:13,
from /home/admin/Documents/triacd/modules/aclinedrv.h:5:
/usr/src/linux-headers-6.1.0-rpi4-common-rpi/include/linux/math.h:177:5: note: previous declaration of ‘int_pow’ with type ‘u64(u64, unsigned int)’ {aka ‘long long unsigned int(long long unsigned int, unsigned int)’}
177 | u64 int_pow(u64 base, unsigned int exp);
| ^~~~~~~
/home/admin/Documents/triacd/modules/aclinedrv.c: In function ‘acline_irq_calibrate’:
/home/admin/Documents/triacd/modules/aclinedrv.c:193:36: warning: cast between incompatible function types from ‘irqreturn_t (* (*)(unsigned int, void *, struct pt_regs ))(int, void )’ {aka ‘enum irqreturn ( ()(unsigned int, void *, struct pt_regs *))(int, void )’} to ‘irqreturn_t ()(int, void )’ {aka ‘enum irqreturn ()(int, void )’} [-Wcast-function-type]
193 | if (request_irq(irqNumber, (irq_handler_t)acline_calibration_irq_handler, IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "calibrateAC", (void )(acline_calibration_irq_handler)))
| ^
/home/admin/Documents/triacd/modules/aclinedrv.c: In function ‘acline_irq_start’:
/home/admin/Documents/triacd/modules/aclinedrv.c:271:36: warning: cast between incompatible function types from ‘irqreturn_t ( ()(unsigned int, void *, struct pt_regs ))(int, void )’ {aka ‘enum irqreturn ( ()(unsigned int, void *, struct pt_regs *))(int, void )’} to ‘irqreturn_t ()(int, void )’ {aka ‘enum irqreturn ()(int, void *)’} [-Wcast-function-type]
271 | if (request_irq(irqNumber, (irq_handler_t)acline_gpio_irq_handler, IRQF_TRIGGER_RISING | IRQF_SHARED, "lineAC", (void *)(acline_gpio_irq_handler))) {
| ^
make[2]: *** [/usr/src/linux-headers-6.1.0-rpi4-common-rpi/scripts/Makefile.build:255: /home/admin/Documents/triacd/modules/aclinedrv.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-rpi4-common-rpi/Makefile:2039: /home/admin/Documents/triacd/modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-rpi4-rpi-v8'
make: *** [Makefile:18: all] Error 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.