diff --git a/Makefile b/Makefile index 4460895..78cd39f 100644 --- a/Makefile +++ b/Makefile @@ -52,14 +52,9 @@ re: fclean all ## Send to calc send: @if [ ! -f $(NAME).g1a ]; then \ - echo "Please make before sending." >&2; false; \ + echo "Please make before sending."; \ + else $(SENDR) SEND $(NAME).g1a $(NAME).g1a fls0; \ fi - @if $(SENDR) SEND $(NAME).g1a $(NAME).g1a fls0 1>/dev/null; \ - then true; \ - else echo "UsbConnector: calculator not plugged-in/in receive mode" >&2; \ - false; \ - fi - ## Phuneral phuture ? .PHONY: all clean fclean mrproper re send # END OF FILE diff --git a/Makefile.cfg b/Makefile.cfg index 34eeb42..e3028c6 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -1,6 +1,6 @@ #!/usr/bin/make -f # PROJECT INFORMATION -NAME = Sound4Calc +NAME = sound ICON = ./icon.bmp LIB = gcc fx diff --git a/README.md b/README.md index 7685518..a576695 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ +# Sound4Calc : make sound on your calc ! -Make sound on your Casio calculator Graph 75 ! +## Building + +Building the library is achieved by the Makefile : +- `make`: make the library ; +- `make clean`: clean the object files ; +- `make fclean`: clean the object files and the final library ; +- `make re`: cleans the object files and the final library, then makes the project. \ No newline at end of file diff --git a/src/Sound4Calc.c b/src/Sound4Calc.c index 870a4ab..159126b 100644 --- a/src/Sound4Calc.c +++ b/src/Sound4Calc.c @@ -9,7 +9,7 @@ //#define DEBUG -#define PI 3.14159265358 +//#define PI 3.14159265358 unsigned char *itoa(int n, unsigned char* str, int base) { @@ -24,7 +24,7 @@ unsigned char *itoa(int n, unsigned char* str, int base) int main(void) { unsigned int key; - char buffer[50]; + // char buffer[50]; unsigned char str[20]; int sleep = 2000; @@ -157,12 +157,10 @@ if(is_SH4) } } - - char getMPU(void) { // Port L control register. - volatile unsigned short *plcr = (unsigned short *)0xa4000114; + volatile unsigned short *plcr = (unsigned short *)0xA4000114; // Saved value for PLCR. unsigned short saved_plcr; unsigned int tested_plcr;