kopia lustrzana https://github.com/bristol-seds/pico-tracker
Removed PA_27 from si_trx, use a lf timer instead
rodzic
70314c1ef6
commit
2acd6e5f83
|
@ -178,7 +178,6 @@
|
|||
#define SI4xxx_IRQ_PIN PIN_PA24
|
||||
#define SI4xxx_IRQ_PINMUX PINMUX_PA24A_EIC_EXTINT12
|
||||
#define SI4xxx_SDN_PIN PIN_PA17
|
||||
#define SI4xxx_GPIO0_PIN PIN_PA27
|
||||
#define SI4xxx_GPIO1_PIN PIN_PA25
|
||||
#define SI4xxx_GPIO1_PINMUX PINMUX_PA25F_TC5_WO1
|
||||
#define SI4xxx_TCXO_FREQUENCY 16369000
|
||||
|
@ -200,6 +199,8 @@
|
|||
* LF Clock
|
||||
*/
|
||||
#define USE_LFTIMER 0
|
||||
#define LFTIMER_GCLKIO_0_PIN PIN_PA27
|
||||
#define LFTIMER_GCLKIO_0_PINMUX PINMUX_PA27H_GCLK_IO0
|
||||
|
||||
/**
|
||||
* HF Clock
|
||||
|
|
|
@ -156,6 +156,15 @@ void gclk0_to_hf_clock(void)
|
|||
*/
|
||||
void gclk0_to_lf_clock(void)
|
||||
{
|
||||
#if USE_LFTIMER
|
||||
/* Configure GCLK_IO[0] pin */
|
||||
system_pinmux_pin_set_config(LFTIMER_GCLKIO_0_PINMUX >> 16,
|
||||
LFTIMER_GCLKIO_0_PINMUX & 0xFFFF,
|
||||
SYSTEM_PINMUX_PIN_DIR_INPUT,
|
||||
SYSTEM_PINMUX_PIN_PULL_NONE,
|
||||
true);
|
||||
#endif
|
||||
|
||||
/* Configure GCLK0 to GCLK_IO[0] / OSCULP32K */
|
||||
system_gclk_gen_set_config(GCLK_GENERATOR_0,
|
||||
#if USE_LFTIMER
|
||||
|
|
Ładowanie…
Reference in New Issue