Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[*] completely rewritten initialization code to support hardware late hardware initialization if it fails during startup [*] pretty all status messages have been changed [+] added logging of initialization steps to syslog
- Loading branch information
Showing
11 changed files
with
343 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.sevenfloor.mtcsound; | ||
|
||
import com.sun.jna.Library; | ||
import com.sun.jna.Native; | ||
import com.sun.jna.Platform; | ||
|
||
public interface CLib extends Library { | ||
CLib instance = (CLib) Native.loadLibrary(Platform.C_LIBRARY_NAME, CLib.class); | ||
|
||
int O_RDWR = 0x0002; | ||
int I2C_RETRIES = 0x0701; | ||
int I2C_SLAVE = 0x0703; | ||
|
||
int open(String path, int flags); | ||
int close(int fd); | ||
int ioctl(int fd, int request, Object... args); | ||
int write(int fd, byte[] buffer, int count); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.