コード例 #1
0
int main(void) {
	testMissedSpark299();
	testSparkReverseOrderBug319();
	testFuelSchedulerBug299smallAndLarge();
	testFuelSchedulerBug299smallAndMedium();
	testLogicExpressions();
	testOverflow64Counter();
	testInterpolate3d();
	testFindIndex();
	testInterpolate2d();
	testGpsParser();
	testMisc();
	testFuelMap();
	testEngineMath();
	testIgnitionPlanning();
	testEventRegistry();
	testSensors();
	testCyclicBuffer();
	testCrc();

	testSignalExecutor();

	testHistogram();


	testMalfunctionCentral();

	testConsoleLogic();

	testAngleResolver();

	testPinHelper();
	testSetTableValue();

	testAccelEnrichment();

	testSpeedDensity();

	testFLStack();

	testIdleController();

	testMenuTree();
	testMafLookup();
	testIgnitionMapGenerator();
	testMafFuelMath();

	testPidController();
	testTriggerDecoder();

	//	resizeMap();
	printf("Success 20161031\r\n");
	printAllTriggers();
	return EXIT_SUCCESS;
}
コード例 #2
0
ファイル: main.c プロジェクト: ajithpeter/AX25MODEM
static THD_FUNCTION(crc_thread_1, p) {
  (void)p;
  chRegSetThreadName("CRC thread 1");
  while (true) {

/* Test ST hardware CRC */
/* if CRC_USE_DMA == TRUE these sync function internally use DMA and put the
 * calling thread to sleep */
#if STM32_CRC_USE_CRC1 == TRUE
    /* CRC32 Calculation */
    testCrc(&crc32_config, 0x91267e8a);
    /* CRC16 Calculation */
    testCrc(&crc16_config, 0xc36a);
    /* CRC8 Calculation */
    testCrc(&crc8_config, 0x06);

/* Test ST CRC with DMA */
#if CRC_USE_DMA == TRUE
    /* CRC32 Calculation */
    testCrcDma(&crc32_dma_config, 0x91267e8a);
    /* CRC16 Calculation */
    testCrcDma(&crc16_dma_config, 0xc36a);
#endif

#endif /* STM32_CRC_USE_CRC1 */


/* Test software CRC */
#if CRCSW_USE_CRC1 == TRUE
/* Test CRCSW with compute CRC */
#if CRCSW_PROGRAMMABLE == TRUE
    /* CRC32 Calculation */
    testCrc(&crc32_config, 0x91267e8a);
    /* CRC16 Calculation */
    testCrc(&crc16_config, 0xc36a);
    testCrc(&crc8_config, 0x06);
#endif
/* Test CRCSW with table lookups.  */
#if CRCSW_CRC32_TABLE == TRUE
    /* CRC32 Calculation with table lookup */
    testCrc(CRCSW_CRC32_TABLE_CONFIG, 0x91267e8a);
#endif
#if CRCSW_CRC16_TABLE == TRUE
    /* CRC16 Calculation with table lookup */
    testCrc(CRCSW_CRC16_TABLE_CONFIG, 0xc36a);
#endif

#endif /* CRCSW_USE_CRC1 */
  }
}
コード例 #3
0
ファイル: main.cpp プロジェクト: rus084/rusefi
int main(void) {
	testOverflow64Counter();
	testInterpolate3d();
	testFindIndex();
	testInterpolate2d();
	testGpsParser();
	prepareFuelMap();
	testFuelMap();
	testEngineMath();
	testEventRegistry();
	testSensors();
	testCyclicBuffer();
	testCrc();

	testSignalExecutor();

	testHistogram();

	testTriggerDecoder();

	testMalfunctionCentral();

	testConsoleLogic();

	testAngleResolver();

	testPinHelper();
	testSetTableValue();

	testAccelEnrichment();

	testSpeedDensity();

	testFLStack();

	//	resizeMap();
	printf("Success 20130830\r\n");
	return EXIT_SUCCESS;
}