Gast
#454745
Hallo. Ich werde verrückt, ich kriege es nicht mal hin eine LED auf dem AT91SAM7S-EK-Board leuchten zu lassen. Mein Programm basiert auf dem Basic-Beispiel und sollte eigentlich richtig sein, oder? // Include Standard files #include "Board.h" #define LED_1 (1<<0) int main() {//* Begin // First, enable the clock of the PIO AT91F_PMC_EnablePeriphClock ( AT91C_BASE_PMC, 1 << AT91C_ID_PIOA ) ; // then, we configure the PIO Lines corresponding to LED1 // to be output. No need to set these pins to be driven by the PIO because it is GPIO pins only. AT91F_PIO_CfgOutput( AT91C_BASE_PIOA, LED_1 ) ; // Clear the LED's. On the EB55 we must apply a "1" to turn off LEDs AT91F_PIO_SetOutput( AT91C_BASE_PIOA, 0 ) ; // LED einschalten while(1); }//* End Wie gesagt, das Programm soll nur eine LED leuchten lassen.