|
|
|
@ -41,13 +41,13 @@ void timer_capture_compare_test(timerNo_t timer)
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
uint8_t i = 0;
|
|
|
|
|
|
|
|
|
|
// making array with all available timers
|
|
|
|
|
timerNo_t timers[MAX_TIMER_CHANNEL_COUNT] = {timer_1, timer_2, timer_3, timer_14, timer_16, timer_17};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delayInitMs(8000000, 1000); // Clock Freq and Divider for ARM library
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pinConfig(pinB3, output, pushPull, def_res, def_speed);
|
|
|
|
|
pinConfig(pinA0, input, def_stage, pullDown, def_speed);
|
|
|
|
@ -76,8 +76,13 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
|
pinWrite(pinB3,0);
|
|
|
|
|
|
|
|
|
|
timer_capture_compare_test(timer_2);
|
|
|
|
|
print_Usart(usart2, "All is working fine \r\n");
|
|
|
|
|
spi_initMaster(SPI_CH_1);
|
|
|
|
|
while(1) {
|
|
|
|
|
spi_trx(SPI_CH_1, 0xAE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//timer_capture_compare_test(timer_2);
|
|
|
|
|
//print_Usart(usart2, "All is working fine \r\n");
|
|
|
|
|
|
|
|
|
|
while(1)
|
|
|
|
|
{
|
|
|
|
|