use gossamer GPIO calls here

This commit is contained in:
joeycastillo
2024-09-18 17:13:11 -04:00
parent 2bbd78a99d
commit da11c14684

View File

@@ -32,9 +32,8 @@ void _watch_init(void) {
watch_disable_digital_output(GPIO(GPIO_PORTA, 20)); watch_disable_digital_output(GPIO(GPIO_PORTA, 20));
// disable debugger hot-plugging // disable debugger hot-plugging
gpio_set_pin_function(SWCLK, GPIO_PIN_FUNCTION_OFF); HAL_GPIO_SWCLK_pmuxdis();
gpio_set_pin_direction(SWCLK, GPIO_DIRECTION_OFF); HAL_GPIO_SWCLK_off();
gpio_set_pin_pull_mode(SWCLK, GPIO_PULL_OFF);
// RAM should be back-biased in STANDBY // RAM should be back-biased in STANDBY
PM->STDBYCFG.bit.BBIASHS = 1; PM->STDBYCFG.bit.BBIASHS = 1;