Commit 10705237 authored by Daniel Götz's avatar Daniel Götz
Browse files

adjusting driver strength and setting pin for measurements

parent 14b8e467
......@@ -97,7 +97,7 @@ static void command_bch(char *arg) {
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "o:start\r");
CDC_Device_Flush(&VirtualSerial_CDC_Interface);
P1_0_toggle();
//P1_0_toggle();
uint32_t old_basepri = __get_BASEPRI();
__set_BASEPRI(1 << (8 - __NVIC_PRIO_BITS));
......@@ -109,14 +109,14 @@ static void command_bch(char *arg) {
XMC_PREFETCH_InvalidateInstructionBuffer();
timer_reset();
timer_start();
P1_3_set();
gene_main(val);
P1_3_reset();
timer_stop();
uint64_t cycles = timer_get();
__set_BASEPRI(old_basepri);
P1_0_toggle();
//P1_1_toggle();
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "o:end ");
CDC_Device_USBTask(&VirtualSerial_CDC_Interface);
......@@ -216,6 +216,8 @@ int main(void) {
P1_1_set_mode(OUTPUT_PP_GP);
P1_1_set_driver_strength(STRONG);
P1_3_set_mode(OUTPUT_PP_GP);
P1_3_set_driver_strength(WEAK);
#define BUFFER_SIZE 32
char buffer[BUFFER_SIZE + 1];
......@@ -291,4 +293,3 @@ int main(void) {
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment