/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / RIDE include folders and *function* file locations ?

Username:     
Password:     
             

Forum

# 1   2009-05-13 08:07:42 RIDE include folders and *function* file locations ?

graham
Member
Registered: 2008-02-23
Posts: 32

RIDE include folders and *function* file locations ?

Hello all,
I bought an STMcircle (first version) last year, and mostly let it gather dust, as I didn't have a proper use for it.

This year, I designed an ARM cortex CNC control PCB, and I've set myself the disturbing task of learning C and the Cortex at the same time, on my new board.

The board is going great so far, but I've come to a simple challenge, that has me stumped so far.

I want to change a nibble of bits, to mixed on and off states, within a 16 bit port. The port and the nibble position can vary, I'm driving 4 x stepper motors.

The difficulty, is that I'm trying to find the function that's listed in the stm32f10x_gpio.h file under /* Exported functions--------*/
void GPIO_WriteBit (GPIO_TypeDef* GPIOx, u16 GPIO_Pin, BitAction BitVal);

I have code that calls this function and expresses itself as actual functionality on my hardware (tested), but I can comment out the above line in the file(checked that it's the same one used in compilation), and the fiels still compile and work fine on my hardware.
I don't see enough functionality in the "exported function" line do do the full function's task, and yet after searching high and low, I can't find the actual function either.

I want to find it, so I can analyse the syntax, and adapt it to modify a nibble within the low 16 bits, and within the high 16 bits of the BSRR, within the structure set for the chosen GPIO port.

Either I'm missing something really fundamental, or I'm missing a whole series of include files...

Can anyone help please ?
(This is on the Raisonance RIDE IDE.)

Last edited by graham (2009-05-13 08:09:36)

Offline

 

# 2   2009-05-13 08:24:57 RIDE include folders and *function* file locations ?

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: RIDE include folders and *function* file locations ?

These functions are in the STM32 library provided by ST. Raisonance provides a compiled version of the library, and optionally linked your project with it.
You can disable this option , then add the source files of the library directly in your project (as done now in the CircleOS project). The original source files are located into the directory:
   \Program Files\Raisonance\Ride\lib\ARM\STM32F10x_LIB
this is not the latest version (available on the ST web site).

Offline

 

# 3   2009-05-13 09:02:45 RIDE include folders and *function* file locations ?

graham
Member
Registered: 2008-02-23
Posts: 32

Re: RIDE include folders and *function* file locations ?

Thanks Francis,
It looks like I still had some confusion over the exact location of some of my source files. You I found the required  info in the:

\Program Files\Raisonance\Ride\lib\ARM\STM32F10x_LIB\library\src   

directory, which I thought wasn't accessible to the compiler :-/

Offline

 

Board footer