Getting Started with ADSP-BF537 EZ-KIT Lite
1-21
Programming ADSP-BF537 EZ-KIT Lite with Vi+
Listing 1-2. Exercise 1, Part 2
/*
* Getting Started With the ADSP-BF537 EZ-KIT Lite
* Part 1, Exercise 2
*/
#include <stdlib.h>
#include <stdio.h>
#include <ccblkfn.h>
#include <cdefbf533.h>
#include <sysreg.h>
#include <time.h>
#define NUM_ITERATIONS
5000
#define ARRAY_LENGTH
128
void start_real_time_clock(void);
unsigned int get_real_time_clock_in_seconds(void);
/* Helper function to enable the real-time clock and reset it to
time "zero" */
#define WAIT_FOR_RTC_WRITE_COMPLETE()
{while ( *pRTC_ISTAT & 0x8000 ); }
void start_real_time_clock ()
{
if ( !*pRTC_PREN )
{
*pRTC_PREN = 1;
WAIT_FOR_RTC_WRITE_COMPLETE();
}
*pRTC_STAT = 0;
WAIT_FOR_RTC_WRITE_COMPLETE();
}
/* Help function to get the number of seconds since "zero" time.
* Only works up to one hour of time. */
www.BDTIC.com/ADI
Содержание EZ-KIT Lite ADSP-BF537
Страница 4: ...www BDTIC com ADI ...
Страница 8: ...CONTENTS viii Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 52: ...Listing 1 3 Exercise 1 Part 3 1 30 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 88: ...What s Next 3 22 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...