AT91SAM9G45 SPI driver

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

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

AT91SAM9G45 SPI driver

Fri Apr 30, 2010 1:46 pm

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 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
Prasaddd
Posts: 6
Joined: Fri Mar 12, 2010 6:27 am

Re: AT91SAM9G45 SPI driver

Fri Apr 30, 2010 1:48 pm

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
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Re: AT91SAM9G45 SPI driver

Mon May 03, 2010 3:58 pm

Hi Prasaddd,

As mentioned in the windows4sam/bin/view/Windows4SAM/WindowsEmbeddedCEBSP 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

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 2 guests