Browse Source

changement

master
flo 3 years ago
parent
commit
cbf4f4a7c1
4 changed files with 14 additions and 14 deletions
  1. 2
    7
      Makefile
  2. 1
    1
      Makefile.cfg
  3. 8
    1
      README.md
  4. 3
    5
      src/Sound4Calc.c

+ 2
- 7
Makefile View File

@@ -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

+ 1
- 1
Makefile.cfg View File

@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# PROJECT INFORMATION
NAME = Sound4Calc
NAME = sound
ICON = ./icon.bmp
LIB = gcc fx


+ 8
- 1
README.md View File

@@ -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.

+ 3
- 5
src/Sound4Calc.c View File

@@ -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;

Loading…
Cancel
Save