[ARM] Atmel studio and AT91SAM7XC512 ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Atmel studio and AT91SAM7XC256 ?

Hello Guys,

Does anyone know on how to use Atmel Studio with AT91SAM7XC256 ?
Any libraries that I must install ?
I tried to create a new project but couldn't find AT91SAM7XC256...

Any helps or references will be appreciated,
Thanks
 

Is the code right ?
Code:
#include <AT91SAM7X256.H>                        /* AT91SAMT7X256 definitions */
#include "..\AT91SAM7X-EK.h"

#define SPEED (AT91B_MAIN_OSC/1000)


unsigned int LEDSpeed = 50*SPEED;


/*
 * Wait Function (SW Waiting Loop)
 *   Waiting Time defined by global variable LEDSpeed
 */
 
void wait (void) {
  unsigned int n;

  for (n = 0; n < LEDSpeed; n++);

}
  

/*
 * Main Program
 */

int main (void) {
  int i;

  // Enable the Clock of the PIO

  AT91C_BASE_PIOA->PIO_OER  =AT91B_LED1;

  // Clear the LED's. On the Board we must apply a "1" to turn off LEDs
  AT91C_BASE_PIOA->PIO_SODR = AT91B_LED1;


  // Loop forever
  for (;;) {
      //AT91C_BASE_PIOA->PIO_CODR = AT91B_LED1 ;
      //wait();
      AT91C_BASE_PIOA->PIO_SODR = AT91B_LED1 ;
      wait();
   }
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…