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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,062 Views
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?
Labels (1)
0 Kudos
Reply
1 Reply

568 Views
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 Kudos
Reply