AnsweredAssumed Answered

cannot operate out ports

Question asked by be_senyor.ezra on Sep 28, 2010
Latest reply on Sep 29, 2010 by be_senyor.ezra
hi
i am just in the begnnig of proraming the stm32 discovery.
i try to simply direct all of port c to output and put out "1" at all the ports so i wrote the following code:

#include "stm32F10x.h"



int main(void)
{

 GPIOC->CRL=0x333333;
  GPIOC->CRH=0x333333;

  while(1)
  {

  GPIOC->ODR=0xffff;


  }


}

but it does not work.
why?
 
thanks for your help. 

Outcomes