##// END OF EJS Templates
sync
sync

File last commit:

r28:de7a3b4fc572 default
r28:de7a3b4fc572 default
Show More
main.c
40 lines | 647 B | text/x-c | CLexer
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r22 #include <stdio.h>
#include <fat32.h>
#include <gpio.h>
#include <uart.h>
#include <stm32f4xx.h>
#include <bsp.h>
#include <i2c.h>
jeandet@PC-DE-JEANDET.lab-lpp.local
Sync
r27 #include <CS43L22.h>
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r22
extern streamdevice* __opnfiles__[];
int main()
{
jeandet@PC-DE-JEANDET.lab-lpp.local
Sync
r27 CS43L22_t audioDac1;
cs43l22open(&audioDac1,i2c1,0);
char id=cs43l22getID(&audioDac1);
jeandet@pc-de-jeandet3.LAB-LPP.LOCAL
sync
r28 printf("DAC ID=%x\n\r",0x0ff&id);
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r22 while(1)
{
for(volatile int i=0;i<1024*2048;i++);
gpioset(LED1);
gpioclr(LED2);
for(volatile int i=0;i<1024*2048;i++);
gpioclr(LED1);
gpioset(LED2);
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r24 i2cwrite(i2c1,0x4a,"test",1);
jeandet@PC-DE-JEANDET.lab-lpp.local
sync
r22 }
printf("hello world\n\r");
return 0;
}