Commit 1f2f7029 authored by Christian Eichler's avatar Christian Eichler
Browse files

Set/reset pin 5.7 for measurement via osci

parent 34109dfb
...@@ -132,11 +132,15 @@ static void command_bch(char *arg) { ...@@ -132,11 +132,15 @@ static void command_bch(char *arg) {
// ensure a "clean" system state // ensure a "clean" system state
XMC_PREFETCH_InvalidateInstructionBuffer(); XMC_PREFETCH_InvalidateInstructionBuffer();
timer_reset(); timer_reset();
P5_7_set();
timer_start(); timer_start();
gene_main(val); gene_main(val);
timer_stop(); timer_stop();
P5_7_reset();
uint64_t cycles = timer_get(); uint64_t cycles = timer_get();
__set_BASEPRI(old_basepri); __set_BASEPRI(old_basepri);
...@@ -225,6 +229,9 @@ int main(void) { ...@@ -225,6 +229,9 @@ int main(void) {
P1_1_set_mode(OUTPUT_PP_GP); P1_1_set_mode(OUTPUT_PP_GP);
P1_1_set_driver_strength(STRONG); P1_1_set_driver_strength(STRONG);
P5_7_set_mode(OUTPUT_PP_GP);
P5_7_set_driver_strength(WEAK);
#define BUFFER_SIZE 32 #define BUFFER_SIZE 32
uint8_t pos = 0; uint8_t pos = 0;
char buffer[BUFFER_SIZE + 1] = {0}; char buffer[BUFFER_SIZE + 1] = {0};
......
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