#define   TabNub                   24

#ifdef        GLOBALS_MOTOR
    #define   EXTERN_MOTOR
    
    const INT16U Sin[TabNub] =                            
    {
         0x8000,0x8178,0x82D6,0x8404,0x84EB,0x857C,0x85AE,0x857C,0x84EB,0x8404,0x82D6,0x8178,
         0x0000,0x0178,0x02D6,0x0404,0x04EB,0x057C,0x05AE,0x057C,0x04EB,0x0404,0x02D6,0x0178,
    };
    
    const INT16U Cos[TabNub] =                            
    {
         0x85AE,0x857C,0x84EB,0x8404,0x82D6,0x8178,0x0000,0x0178,0x02D6,0x0404,0x04EB,0x057C,
         0x05AE,0x057C,0x04EB,0x0404,0x02D6,0x0178,0x8000,0x8178,0x82D6,0x8404,0x84EB,0x857C
    };


#else
    #define   EXTERN_MOTOR   extern
    extern    INT16U Sin[TabNub];    
    extern    INT16U Cos[TabNub];
#endif

#ifndef       __MOTOR_H__
    #define   __MOTOR_H__

    EXTERN_MOTOR             void           Api_Motor_Init(void);
    EXTERN_MOTOR             void           Api_Motor_Drive(MeterPos *M,INT8U M_sel);
    #pragma CODE_SEG NON_BANKED 
    EXTERN_MOTOR   interrupt void           Api_Motor_isr(void);
    #pragma CODE_SEG DEFAULT
#endif