Bugfix/network port object link speeds (#488)

* fix ports/xplained build under Linux

* fix network port object link-speeds property

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-09-08 17:41:56 -05:00
committed by GitHub
parent bd597082d2
commit 0001f85f29
20 changed files with 404 additions and 73 deletions
+5 -5
View File
@@ -44,17 +44,17 @@
static volatile uint32_t Millisecond_Counter;
/**
* Handles an interrupt from a hardware millisecond timer
* Handles an interrupt from a hardware counter timer, every millisecond
*/
static void my_counter_handler(void)
static void mstimer_counter_handler(void)
{
Millisecond_Counter++;
}
/**
* Handles an interrupt from a hardware millisecond timer
* Handles an interrupt from an overflow hardware timer, every millisecond
*/
static void my_callback_handler(void)
static void mstimer_overflow_handler(void)
{
/* callback might go too long; prevent re-entrency by disable IRQ source */
tc_set_overflow_interrupt_level(&MS_TIMER_CALLBACK, TC_INT_LVL_OFF);
@@ -98,7 +98,7 @@ void mstimer_init(void)
tc_enable(&MS_TIMER_CALLBACK);
tc_set_overflow_interrupt_callback(&MS_TIMER_CALLBACK,
my_callback_handler);
mstimer_overflow_handler);
tc_set_wgm(&MS_TIMER_CALLBACK, TC_WG_NORMAL);
tc_write_count(&MS_TIMER_CALLBACK, 1);
period = sysclk_get_peripheral_bus_hz(&MS_TIMER_CALLBACK);