Skip to content

Commit

Permalink
adding more configuration stuf for bcm on pisix
Browse files Browse the repository at this point in the history
adding more configuration stuf for bcm on pisix
  • Loading branch information
wodowiesel committed Jul 25, 2019
1 parent 8276ed9 commit 6235a32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ b) GCC Compiler flags:

-> will be detected by my the makefile via the type of the ARM-Processor

(other macros possible if in the C-code implemented)
(other macros possible if in the C-code implemented)

`-std=c99` (sometimes gnu99 or as iso -std=iso9899:1999) for C99-standard or -std=c++17 or (11/14 as you like)

Expand All @@ -139,7 +139,11 @@ b) GCC Compiler flags:

`-D_USE_MATH_DEFINES` for math lib

`-lbcm_host` for loading firmware v1.20190718 located in /opt/vc/include/
`-D_POSIX_C_SOURCE=199309L` for posix needed for bcm

`-I/opt/vc/include/` for loading bcm header folder

`-L/opt/vc/lib -lbcm_host` for loading firmware v1.20190718

10. Generating libraries:

Expand All @@ -160,6 +164,7 @@ c) manually compiling/linking executable binary:
`sudo gcc -g3 -Wall -std=c99 -O3 -lm -Iinclude -Llib -lsndfile -fPIC pifunk.c -shared -o bin/pifunk.out bin/pifunk`

d) optional:

-march=armv6l architecture version of ARM, -mtune=arm1176jzf-s architecture type tuning ("march=native" is auto option)

-mfloat-abi=hard floating-point ABI to use, Permissible values are: ‘soft’, ‘softfp’, ‘hard’
Expand All @@ -170,7 +175,7 @@ c) manually compiling/linking executable binary:

`sudo make` with pre-configured flags for compilation for all Pi's

`sudo clean` for removing *.out files if necessary
`sudo clean` for removing pifunk.out/pifunk.o files if necessary

___

Expand Down Expand Up @@ -236,7 +241,7 @@ ___

### Run

12.Run with admin/root permissions:
12. Run with admin/root permissions:

Arguments: would be best to input in this specific order to prevent problems

Expand Down Expand Up @@ -293,7 +298,7 @@ ___

### Links:

14.) additional Guidelines
14. Additional Guidelines

[GitPage](https://silicator.github.io/PiFunk/)

Expand Down
2 changes: 1 addition & 1 deletion pifunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cd PiFunk // goto path
sudo gcc -g3 -std=c99 -lm -Iinclude -Llib -lsndfile -D_USE_MATH_DEFINES -D_POSIX_C_SOURCE=199309L -L/opt/vc/lib -lbcm_host -fPIC pifunk.c -shared -O3 -o include/pifunk.i lib/pifunk.s lib/pifunk.o lib/pifunk.a lib/pifunk.so lib/pifunk.lib
sudo gcc -g3 -std=c99 -lm -Iinclude -Llib -lsndfile -D_USE_MATH_DEFINES -D_POSIX_C_SOURCE=199309L -L/opt/vc/lib -lbcm_host -fPIC pifunk.c -shared -O3 -o bin/pifunk bin/pifunk.out
or do make (compile flags in make included)
-std=c99 is the same as -std=iso9899:1999 or =gnu99 or -std=c++11
-std=c99 is the same as -std=iso9899:1999 or =gnu99 or -std=c++17 (11/14)
-E tells to stop after preprocessing stage
-v verbose
Expand Down

0 comments on commit 6235a32

Please sign in to comment.