AnsweredAssumed Answered

How do I assign a TUS

Question asked by mahir on Jan 18, 2015
Latest reply on Jan 18, 2015 by mahir
hi
How do I assign a TUS variable cont
TUS = cont;      How do I ?
thanks



#include <stm32f10x.h>
#include <stm32f10x_conf.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_gpio.h>


#define  PORT     GPIOB
#define   TUS       GPIO_Pin_1

char cont;

int main(void)
      

        {
        RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
        GPIO_StructInit(&GPIO_InitStructure);
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1  ;
        GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
        GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
        GPIO_Init(PORT, &GPIO_InitStructure);

//    
TUS = cont;
//
            }

Outcomes