예제 #1
0
파일: mcc.c 프로젝트: niranjanhegde/cgscope
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    ADC_Initialize();
    TMR1_Initialize();
    TMR0_Initialize();
}
예제 #2
0
파일: mcc.c 프로젝트: laurent-fr/SuperServo
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    EUSART_Initialize();
    TMR2_Initialize();
    EPWM1_Initialize();
}
예제 #3
0
파일: mcc.c 프로젝트: luciodj/Ping
void SYSTEM_Initialize(void)
{
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    TMR1_Initialize();
    CCP1_Initialize();
    CCP2_Initialize();
}
예제 #4
0
void SYSTEM_Initialize(void)
{
    
    PIN_MANAGER_Initialize();
    OSCILLATOR_Initialize();
    I2C2_Initialize();
    EUSART_Initialize();
}
예제 #5
0
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    TMR2_Initialize();
    UART2_Initialize();
    TMR3_Initialize();
}
예제 #6
0
파일: mcc.c 프로젝트: LT819/AC_PIC
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    ADC_Initialize();
    TMR1_Initialize();
    CCP5_Initialize();
    I2C1_Initialize();
}
예제 #7
0
파일: mcc.c 프로젝트: OfnyaHoo/EV15
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    EUSART1_Initialize();
    begin(receiveArray, sizeof (receiveArray), PDU_ADDRESS, false, Send_put, Receive_get, Receive_available, Receive_peek);

    ADC_Initialize();
}
예제 #8
0
파일: mcc.c 프로젝트: etdey/hvac-controller
void SYSTEM_Initialize(void)
{
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    TMR0_Initialize();
    I2C_Initialize();
    EUSART_Initialize();
}
예제 #9
0
파일: mcc.c 프로젝트: korbah/manticord
void SYSTEM_Initialize(void)
{

    INTERRUPT_Initialize();
    PIN_MANAGER_Initialize();
    OSCILLATOR_Initialize();
    ADC_Initialize();
    EUSART1_Initialize();
}
예제 #10
0
파일: mcc.c 프로젝트: rihakd/public-biosup
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    WWDT_Initialize();
    TMR1_Initialize();
    ADC1_Initialize();
    TMR2_Initialize();
    TMR0_Initialize();
    PWM1_Initialize();
}
예제 #11
0
void main(void)
{
    PIN_MANAGER_Initialize();
    SYSTEM_Initialize();
    OSCILLATOR_Initialize();
    SPI1_Initialize();
    
    while(1)
        listenForMaster();
}
예제 #12
0
파일: mcc.c 프로젝트: brinnLabs/DOUGLAS
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    EUSART1_Initialize();
    TMR3_Initialize();
    TMR5_Initialize();
    ADC_Initialize();
    I2C2_Initialize();
    stepperInit();
}
예제 #13
0
void SYSTEM_Initialize(void)
{
    
    PIN_MANAGER_Initialize();
    OSCILLATOR_Initialize();
    SPI1_Initialize();
    FVR_Initialize();
    ADCC_Initialize();
    TMR1_Initialize();
    EUSART_Initialize();
    Network_Init();
}
예제 #14
0
void SYSTEM_Initialize(void)
{

    INTERRUPT_Initialize();
    PIN_MANAGER_Initialize();
    OSCILLATOR_Initialize();
    I2C1_Initialize();
    TMR3_Initialize();
//    PWM4_Initialize();
    TMR2_Initialize();
    EUSART1_Initialize();
    EUSART2_Initialize();
}
예제 #15
0
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    OC1_Initialize();
    OC2_Initialize();
    OC3_Initialize();
    OC4_Initialize();
    OC5_Initialize();
    OC6_Initialize();
    TMR1_Initialize();
    TMR2_Initialize();
    I2C2_Initialize();
}
예제 #16
0
파일: mcc.c 프로젝트: rmfharvey/Atlas_REVA
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    SPI1_Initialize();
    OC1_Initialize();
    OC2_Initialize();
    OC3_Initialize();
    OC4_Initialize();
    OC5_Initialize();
    TMR2_Initialize();
    TMR3_Initialize();
    UART1_Initialize();
    UART2_Initialize();
    ADC1_Initialize();
    IC1_Initialize();
    TMR4_Initialize();
    EXT_INT_Initialize();
}
예제 #17
0
파일: mcc.c 프로젝트: douglassanoja/Rocket
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    SPI_Initialize();
    TMR2_Initialize();
}
예제 #18
0
static uint8_t moteApp_GoToSleep(void)
{
    uint8_t status = 0;
    while (SWITCH_2_PORT == 0);     // Hold for Button Release
    modemSleep();
    oled_displayOff(true); 
    ADCON0bits.ADON = 0;       // ADC Off
    INTCONbits.GIE = 0;
    GIE = 0;
    PEIE = 0;
    // Prepare USB Detect
    USB_DET_ANSEL = 1;
    // Prepare IOC to wake us up
    USB_DET_EN = 1;      // Enables CMP1 interrupt.
    SWITCH_1_IOC = 1;
    SWITCH_2_IOC = 1;
    MODEM_WAKE_IOC = 1;
    IOC_ENABLE = 1;
    // Dummy Reads to Establish IOC level
    status = SWITCH_1_PORT;
    status = SWITCH_2_PORT;
    status = MODEM_WAKE_PORT;
    if (periodicState)
    {
        //WDTCONbits.SWDTEN = 1;
    }
    IOC_FLAG = 0;
    USB_DET_FLAG = 0;
    NOP();
    SLEEP();
    NOP();
    // Reconfigure Critical peripherals
    //WDTCONbits.SWDTEN = 0;
    EUSART_FlushBuffer();
    // Disable IOC
    IOC_ENABLE = 0;
    SWITCH_1_IOC = 0;
    SWITCH_2_IOC = 0;
    MODEM_WAKE_IOC = 0;
    PIE2bits.C1IE = 0;
    GIE = 1;

    PIN_MANAGER_Initialize();
    EUSART_Initialize();
    // Process Wake Up Event
    if (IOC_FLAG)
    {   // PushButton or Module IOC woke us
        IOC_FLAG = 0;
        status = 1;
    }
// TODO:
//    else if (Comparator)    // USB EVENT
//    {
//        status = 2;
//    }
    else
    {   // Time woke us. Reload; so wake from sleep is short
        secTicker = 10;
        status = 0;
    }
    USB_DET_ANSEL = 0;
    oled_displayOff(false);
    oled_init();         // Dispaly

    modemResync();
    return status;
}
예제 #19
0
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    ZCD_Initialize();
  //  EUSART_Initialize();
}
예제 #20
0
파일: mcc.c 프로젝트: kunal15595/pic
void SYSTEM_Initialize(void)
{
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    DRV_TMR1_Initialize();
}
예제 #21
0
void SYSTEM_Initialize(void) {
    OSCILLATOR_Initialize();
    PIN_MANAGER_Initialize();
    INTERRUPT_Initialize();
    UART1_InitializeDebugPort();
}