本文整理汇总了C++中PEX_RTOS_START函数的典型用法代码示例。如果您正苦于以下问题:C++ PEX_RTOS_START函数的具体用法?C++ PEX_RTOS_START怎么用?C++ PEX_RTOS_START使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PEX_RTOS_START函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
CYG_Init();
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
DEMO_Init();
(void)DEMO_Run();
CYG_PrintCallTrace();
/* For example: for(;;) { } */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:ADeadCat,项目名称:mcuoneclipse,代码行数:28,代码来源:main.c
示例2: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
size_t heapSize=1;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
(void)FRTOS1_xTaskCreate(Task1, (signed portCHAR *)"Task1", configMINIMAL_STACK_SIZE*3, NULL, tskIDLE_PRIORITY-1, NULL);
(void)FRTOS1_xTaskCreate(Task1, (signed portCHAR *)"Task1", configMINIMAL_STACK_SIZE*3, NULL, tskIDLE_PRIORITY-2, NULL);
heapSize = xPortGetFreeHeapSize();
printf("starting my ADC application %d\n",heapSize);
FRTOS1_vTaskStartScheduler();
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:tsbiberdorf,项目名称:TWR-K60D-examples,代码行数:28,代码来源:ProcessorExpert.c
示例3: main
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
setup();
plan_buffer_line(2,1);
//
for(;;){ST_PULSE_TI_Enable();}
//heat_manager();
//inactivity_manager();
/* Write your code here */
/* For example: for(;;) { } */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:Raev0,项目名称:Stepper_Acc_Driver,代码行数:34,代码来源:main.c
示例4: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/**
* disable write buffering end enable exceptions,
* for debugging purposes
*/
SCB->SHCSR |= 0x00070000;
SCnSCB->ACTLR |= SCnSCB_ACTLR_DISDEFWBUF_Msk;
HEXIWEAR_Init();
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:Btar,项目名称:HEXIWEAR,代码行数:32,代码来源:main.c
示例5: main
/**
* Main USB2TCM function
*/
int main(void)
{
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
TCM_disable();
EM_Init();
MS_InitDevices();
possibleFile = 0;
while (1)
{
if (possibleFile == 1)
{
readAndSendEPD();
USBTCM_error=0;
LED_SetVal(NULL);
}
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
}
开发者ID:MpicoSys,项目名称:USB2TCM,代码行数:34,代码来源:ProcessorExpert.c
示例6: main
int main(void)
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* UART Bluetooth Rx on PTC3 and Tx on PTC4 */
/* pull-up RX/PTC3 for BT_BOARD V1.06 needed, see http://mcuoneclipse.com/2014/03/30/getting-bluetooth-working-with-jy-mcu-bt_board-v1-06/ */
PORT_PDD_SetPinPullSelect(PORTC_BASE_PTR, 3, PORT_PDD_PULL_UP);
PORT_PDD_SetPinPullEnable(PORTC_BASE_PTR, 3, PORT_PDD_PULL_ENABLE);
SHELL_Run();
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
return 0;
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:26,代码来源:ProcessorExpert.c
示例7: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
i = 5;
//k = i/j;
for(;;) {
LED1_Neg();
WAIT1_Waitms(200);
LED2_Neg();
WAIT1_Waitms(200);
LED3_Neg();
WAIT1_Waitms(200);
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:30,代码来源:ProcessorExpert.c
示例8: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){
(void)AD1_Measure(TRUE); /* do conversion and wait for the result */
(void)AD1_GetValue16(&value); /* get the result into value variable */
UTIL1_Num16uToStr(buf, sizeof(buf), value); /* transform into string */
i=0;
while(buf[i]!=0) {
RxBuf_Put(buf[i]); /* write string */
i++;
}
APP_Run();
}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:nickbotto,项目名称:FRDM-KL25Z,代码行数:33,代码来源:ProcessorExpert.c
示例9: main
void main(void)
{
/* Write your local variable definition here */
int i = 0;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
for(;;) {
i++;
if ((i%5)==0) {
data[0]++; /* change data */
TestFlash();
}
LED1_Neg();
WAIT1_Waitms(250);
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:alsancho,项目名称:mcuoneclipse,代码行数:30,代码来源:main.c
示例10: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
int counter = 0;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
bit1Ptr = Bit1_Init((LDD_TUserData *)NULL); /* Initialize the pin */
printf("Hello\r\n");
while(1)
{
if(counter >= 1000000)
{
Bit1_NegVal(bit1Ptr);
counter = 0;
}
counter++;
}
/* Write your code here */
/* For example: for(;;) { } */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:Lyanzh,项目名称:Learning_Material,代码行数:34,代码来源:ProcessorExpert.c
示例11: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
printf("Welcome to the world of lwip!\r\n");
/* Disable the mpu */
MPU_BWR_CESR_VLD(MPU, 0);
/* create lwIP initialization task */
xTaskCreate(LwipInitTask,
"LwipInitTask",
configMINIMAL_STACK_SIZE * 4,
(void*)NULL,
tskIDLE_PRIORITY,
(xTaskHandle*)NULL);
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:waynenb,项目名称:mcuoneclipse,代码行数:33,代码来源:main.c
示例12: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
LCD1_Clear();
WAIT1_Waitms(1000);
LCD1_WriteLineStr(1, "Hello FRDM-KL25z");
for(;;) {
uint8_t cnt;
uint8_t buf[5];
LCD1_GotoXY(2,1);
UTIL1_Num16uToStr(buf, sizeof(buf), cnt);
LCD1_WriteString((char*)buf);
cnt++;
WAIT1_Waitms(100);
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:funkyguy4000,项目名称:ARM-Programs,代码行数:35,代码来源:main.c
示例13: main
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
f();
/* For example: for(;;) { } */
if (FRTOS1_xTaskCreate(MyTask, (signed portCHAR *)"Task",
configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) {
for(;;){} /* error */
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:BarberCol,项目名称:mcuoneclipse,代码行数:27,代码来源:ProcessorExpert.c
示例14: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
if (FRTOS1_xTaskCreate(
LedTask, /* pointer to the task */
(signed char *)"Led", /* task name for kernel awareness debugging */
configMINIMAL_STACK_SIZE, /* task stack size */
(void*)NULL, /* optional task startup argument */
tskIDLE_PRIORITY+1, /* initial priority */
(xTaskHandle*)NULL /* optional task handle to create */
) != pdPASS) {
/*lint -e527 */
for(;;){} /* error! probably out of memory */
/*lint +e527 */
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:33,代码来源:ProcessorExpert.c
示例15: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
_lwsem_create(&adcsem, 1);
_lwsem_create(&i2csem, 1);
_lwsem_create(&uartsem, 1);
byte aslp_cnt [2]= {0x29, 0x5e};
byte ctrl_reg1[2]= {0x2a, 0x01};//fast mode, active
//CI2C1_SelectSlave(0x1d); //select mma8451q with sa=1
Accel_SendBlock(ctrl_reg1, 2, &snt); //sleep& data rate 12.5hz, fast read on, active mode
Accel_SendStop();
Accel_SendBlock(aslp_cnt, 2, &snt); //30sec sleep time
Accel_SendStop();
//Term1_SetColor(clGreen, clBlack);
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
}
开发者ID:c-kel,项目名称:Assorted,代码行数:34,代码来源:main.c
示例16: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
MMA8451_Freedom_Init_50Hz(I2CFreedom_DeviceData, &thisAccel);
/* Write your code here */
//MMA8451_Freedom_Init_50Hz(I2CFreedom_DeviceData, &thisAccel);
/* For example: for(;;) { } */
for(;;){
if(UART_Flg){
UART_Flg = FALSE;
UART_SendBlock(UART_DeviceData,(byte *)'1', 1);
MMA8451_Freedom_ReadData(I2CFreedom_DeviceData, &thisAccel);
// scale the HAL-aligned accelerometer measurements
thisAccel.fGp[X] = (float) thisAccel.iGp[X] * thisAccel.fgPerCount;
thisAccel.fGp[Y] = (float) thisAccel.iGp[Y] * thisAccel.fgPerCount;
thisAccel.fGp[Z] = (float) thisAccel.iGp[Z] * thisAccel.fgPerCount;
}
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:unbalancedgiraffe,项目名称:SENS,代码行数:34,代码来源:main.c
示例17: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
int DataUart0;
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
debug_printf("FRDM-K64F System Init!\r\n"); // Envia mensaje de inicio
debug_printf("Wayt for Data over UART0 <-> OpenSDA debug port\r\n"); // Imprime mensaje informativo
for(;;){
DataUart0=debug_getchar(); // Espera dato por UART
debug_printf("%%c:%c\r\n",DataUart0); // Imprime dato recibido en formato char
debug_printf("%%u:%u\r\n",DataUart0); // Imprime dato recibido en formato entero
debug_printf("%%x:0x%x\r\n",DataUart0); // Imprime dato recibido en formato hexadecimal
debug_printf("%%d:%d\r\n",DataUart0); // Imprime dato recibido en formato decimal
debug_printf("\r\n"); // Imprime salto de linea
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:EmbeddedANT,项目名称:FREESCALE_FRDM-K64F,代码行数:36,代码来源:main.c
示例18: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
LED2_On();
WAIT1_Waitms(1000);
LED2_Off();
#if PL_HAS_LOW_POWER
LP_Init();
#endif
#if PL_HAS_RTOS
if (FRTOS1_xTaskCreate(BlinkTask, "Blink", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL) != pdPASS) {
for(;;){} /* error */
}
#endif
#if PL_HAS_SHELL
SHELL_Init();
#endif
#if PL_HAS_RTOS
PEX_RTOS_START();
#endif
for(;;) {
LP_EnterPowerMode(LP_WAIT);
LED1_On();
WAIT1_Waitms(20);
LED1_Off();
}
/* For example: for(;;) { } */
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:Joteyo,项目名称:mcuoneclipse,代码行数:46,代码来源:ProcessorExpert.c
示例19: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
/* For example: for(;;) { } */
Boot_Check();
AD1_Calibrate(TRUE);
OLED_Init();
unsigned char buffer[64*4];
ClearScr(buffer,0);
OLED_Display(buffer);
DecoderInit();
int T = 0;
for(;;) {
T++;
ClearScr(buffer,0);
for (int x = 0;x<64;x++)
{
buffer[Reader.Sync * 64 + x] = 255;
}
if (Reader.Sync == AUDIOREADER_SYNCED)
{
for (int i =0;i<theprogress/8;i++)
{
buffer[i] = 0xff;
}
}
//else
{
for(int i =0 ;i<64;i++)
{
int y = 16 + (((History[i]-32768) * 15)/400);
if (y>= 0 && y< 32) SetPixel(buffer, i, y);
}
}
OLED_Display(buffer);
}
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:ThisIsNotRocketScience,项目名称:TinyGame,代码行数:58,代码来源:main.c
示例20: main
/*lint -save -e970 Disable MISRA rule (6.3) checking. */
int main(void)
/*lint -restore Enable MISRA rule (6.3) checking. */
{
/* Write your local variable definition here */
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
#if OPTIMIZE_BIT_ACCESS
GREEN_Clr(); /* turn on green LED */
WAIT1_Waitms(1000);
GREEN_Set(); /* turn off green LED */
for(;;) {
if (SW1_Get()==0) { /* button low level => pressed */
RED_Clr(); /* LED cathode is connected to microcontroller pin: low level turns it on */
BLUE_Set(); /* turn off blue led */
} else {
RED_Set(); /* turn off red led */
BLUE_Clr(); /* turn on blue led */
}
if (SW2_Get()==0) { /* switch low level => pressed */
BLUE_Clr(); /* turn on blue led */
} else {
BLUE_Set(); /* turn off blue led */
}
}
#else
GREEN_ClrVal(GREEN_DeviceData); /* turn on green LED */
WAIT1_Waitms(1000);
GREEN_SetVal(GREEN_DeviceData); /* turn off green LED */
for(;;) {
if (SW1_GetVal(SW1_DeviceData)==0) { /* button low level => pressed */
RED_ClrVal(RED_DeviceData); /* LED cathode is connected to microcontroller pin: low level turns it on */
BLUE_SetVal(BLUE_DeviceData); /* turn off blue led */
} else {
RED_SetVal(RED_DeviceData); /* turn off red led */
BLUE_ClrVal(BLUE_DeviceData); /* turn on blue led */
}
if (SW2_GetVal(SW2_DeviceData)==0) { /* switch low level => pressed */
BLUE_ClrVal(BLUE_DeviceData); /* turn on blue led */
} else {
BLUE_SetVal(BLUE_DeviceData); /* turn off blue led */
}
}
#endif
/*** Don't write any code pass this line, or it will be deleted during code generation. ***/
/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON'T MODIFY THIS CODE!!! ***/
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
/*** End of RTOS startup code. ***/
/*** Processor Expert end of main routine. DON'T MODIFY THIS CODE!!! ***/
for(;;){}
/*** Processor Expert end of main routine. DON'T WRITE CODE BELOW!!! ***/
} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/
开发者ID:210221030,项目名称:mcuoneclipse,代码行数:57,代码来源:ProcessorExpert.c
注:本文中的PEX_RTOS_START函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论