mirror of
https://salsa.debian.org/gnuk-team/gnuk/gnuk.git
synced 2024-09-21 11:20:08 +00:00
37 lines
498 B
C
37 lines
498 B
C
|
#include "config.h"
|
||
|
#include "ch.h"
|
||
|
#include "hal.h"
|
||
|
|
||
|
#include "../common/hwinit.c"
|
||
|
|
||
|
void
|
||
|
hwinit0 (void)
|
||
|
{
|
||
|
hwinit0_common ();
|
||
|
}
|
||
|
|
||
|
void
|
||
|
hwinit1 (void)
|
||
|
{
|
||
|
hwinit1_common ();
|
||
|
}
|
||
|
|
||
|
void
|
||
|
USB_Cable_Config (FunctionalState NewState)
|
||
|
{
|
||
|
/* CQ STARM has no functionality to stop USB. */
|
||
|
/*
|
||
|
* It seems that users can add the functionality with USB_DC (PD9)
|
||
|
* though
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
void
|
||
|
set_led (int value)
|
||
|
{
|
||
|
if (value)
|
||
|
palClearPad (IOPORT3, GPIOC_LED);
|
||
|
else
|
||
|
palSetPad (IOPORT3, GPIOC_LED);
|
||
|
}
|