##// END OF EJS Templates
DAC CAL input data via fifo + Freq échantillonnage variable
DAC CAL input data via fifo + Freq échantillonnage variable

File last commit:

r80:b0b64ad7fab8 martin
r274:dda39c5f532e martin
Show More
main.c
31 lines | 521 B | text/x-c | CLexer
#include <stdio.h>
#include "lpp_apb_functions.h"
#include "apb_delay_Driver.h"
#include "apb_gpio_Driver.h"
int main()
{
GPIO_Device* gpio0 = openGPIO(0);
DELAY_Device* delay0 = openDELAY(0);
printf("\nDebut Main\n\n");
gpio0->oen = 0x3;
gpio0->Dout = 0x0;
delay0->Cfg = 0x01;
Setup(delay0,30000000);
while(1){
gpio0->Dout = 0x2;
Delay_ms(delay0,100);
gpio0->Dout = 0x1;
Delay_ms(delay0,100);
}
return 0;
}