I am currently unable to set a bit on GPIOB, but I can reset it - here is the line of code GPIO_SetBits(GPIOB, GPIO_Pin_3); and here are the error messages the Keil compiler gives me: src\switch_output_on.c(75): error: #79: expected a type specifier src\switch_output_on.c(75): error: #79: expected a type specifier src\switch_output_on.c(75): error: #159: declaration is incompatible with previous ''GPIO_SetBits'' (declared at line 225 of ''.\libs\inc\stm32f10x_gpio.h'') My line 225 it references is here: void GPIO_SetBits(GPIO_TypeDef* GPIOx, u16 GPIO_Pin); As far as I can see, this should work, so what am I doing wrong here? --dave
Suggestion: ''kiss'' - modify the much smaller/simpler ''blinky'' program to output to your specified pin. (or even better - several additional ''same port'' pins) This seems faster/easier method...
as a slightly different way of thinking of this, how would I implement this without utilising the ST libraries, I'm beginning to think that for a simple thing like switching an IO on or off it would be more optimal to just code it without the libs.
> modify the much smaller/simpler ''blinky'' program to output to your >specified pin. I had a look at that, thanks - but the code seems to be for the LPC2100 processor, is it the same code for the STM32, or does it require modifications? --dave [ This message was edited by: dave6 on 22-01-2009 10:25 ]