Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: AT91SAM9G45 SPI driver
PostPosted: Fri Apr 30, 2010 1:46 pm 
Offline

Joined: Fri Mar 12, 2010 6:27 am
Posts: 6
Hello,

I am also trying to access the SPI interface.

As the driver is divided in three parts, I was looking for code there:

• %_TARGETPLATROOT%\SRC\DRIVERS\SPI: this directory contains the code specific to the BSP platform board,

• %_PLATFORMROOT%\COMMON\SRC\SOC\ATMEL\AT91SAM9G45\DRIVERS\SPI: this directory contains the code specific to AT91SAM9G45 Processor.

• %_PLATFORMROOT%\COMMON\SRC\SOC\ATMEL\COMMON\DRIVERS\SPI: this directory contains the code specific to all Atmel processors.

but with Adeneo BSP installed (from http://www.at91.com/windows4sam/bin/vie ... eddedCEBSP) , I could only locate the code for SPI in last mentioned path.

Can any one tell me how can I get those missing files?

Regards,
Prasad


Top
 Profile  
 
 Post subject: Re: AT91SAM9G45 SPI driver
PostPosted: Fri Apr 30, 2010 1:48 pm 
Offline

Joined: Fri Mar 12, 2010 6:27 am
Posts: 6
I found following functions are missing,
BOOL HWSPIControllerBoardSpecificPIOInitialization(DWORD dwDevID, WORD wCS)
BOOL HWSPIControllerBoardSpecificPIODeinitialization(DWORD dwDevID)

BOOL HWSPICSBoardSpecificPIOInitialization(DWORD dwPinNumber)
BOOL HWSPICSBoardSpecificPIODeinitialization()

BOOL HWSPIControllerBoardSpecificInit()
BOOL HWSPIControllerBoardSpecificGetBus(DWORD dwDevIndex)
BOOL HWSPIControllerBoardSpecificReleaseBus(DWORD dwDevIndex)

void HWSPIControllerBoardSpecificDeInit()

BOOL setDevicePower(DWORD dwDevID,BOOL bPowerUp)
DWORD SPIProcSpecificGetBaseAddress(DWORD dwDevIndex)
DWORD SPIProcSpecificGetId(DWORD dwDevIndex)
DWORD SPIProcSpecificGetNbController(void)

CHAR SPIProcSpecificGetNbPioBank(void)

If any one have this code, kindly share.

Regards,
Prasad


Top
 Profile  
 
 Post subject: Re: AT91SAM9G45 SPI driver
PostPosted: Mon May 03, 2010 3:58 pm 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
Hi Prasaddd,

As mentioned in the http://www.at91.com/windows4sam/bin/vie ... eddedCEBSP page, the G45 BSP does not support SPI.

The common folders are shared with other ATMEL BSP's. It's the reason why you can see some SPI routines which are useless in this G45 BSP.

If you need SPI, you can implement the missing functions by drawing inspiration from another ATMEL BSP which manage the SPI like 9263.
If you need support to do it, please contact our sales team at : sales.emea@adeneo-embedded.com

BR


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: