##// END OF EJS Templates
LPP DMA v1.0.1...
LPP DMA v1.0.1 - Correction of bugs due to "AHB bursts and 1kB address boundary" - Add TB for DMA with a RTL model of the external RAM CYC1360C in designs/Projet-LeonLFR-AP3K-Sheldon_sim-all

File last commit:

r80:b0b64ad7fab8 martin
r102:ecadbe9f5050 JC
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;
}