In My_Wireless_App there are two files called "MC9S0...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

In My_Wireless_App there are two files called "MC9S0...

1,079 次查看
Juan
Contributor I
In My_Wireless_App there are two files called "MC9S08gt60.c" and "MC9S08gt60.h." In this file are given the registers of status, control and configuration of the AD converter. To access these registers do, for example
# include "MC9S08gt60.h."

However, I can not have access to the values of those registers.

In "MC9S08gt60.h" they are defined as follows:

typedef union {
    Byte Byte;
    struct {
       "registers"
    }Bits;
  } AT1SC;

How do I configure these registers?
标签 (1)
0 项奖励
回复
1 回复

585 次查看
Ake
Contributor III
Hi,
Use
#include "derivative.h"
instead.
then the compiler will pick up the correct .h file for you. That is the MCU that is in "Change MCU/Connection...."
 
Regards,
Ake
0 项奖励
回复