Skip to content

Commit

Permalink
working crow repl! time for hw drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
trentgill committed Dec 21, 2023
1 parent 2558219 commit 30a2db5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ int main(void)

// Debugging
Debug_Pin_Init();
//Debug_USART_Init(); // ignored in TRACE mode
Debug_USART_Init(); // ignored in TRACE mode
// User-readable status led
status_led_init();
status_led_fast(LED_SLOW); // slow blink until USB connection goes live
status_led_set(1); // set status to ON to show sign of life straight away
Debug_Pin_Set(1);

printf("\n\nhi from test platform!\n");
Debug_Pin_Set(0);

// Drivers
int max_timers = Timer_Init();
Expand All @@ -41,7 +43,7 @@ int main(void)
events_init();
Metro_Init( max_timers-2 ); // reserve 2 timers for USB & ADC
clock_init( 100 ); // TODO how to pass it the timer?

status_led_set(0); // set status to ON to show sign of life straight away

Caw_Init( max_timers-1 ); // use last timer
Expand Down

0 comments on commit 30a2db5

Please sign in to comment.