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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

770件の閲覧回数
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 返信

276件の閲覧回数
Ake
Contributor II
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 件の賞賛
返信