mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 19:47:40 +00:00
use gossamer GPIO calls here
This commit is contained in:
parent
2bbd78a99d
commit
da11c14684
@ -32,9 +32,8 @@ void _watch_init(void) {
|
||||
watch_disable_digital_output(GPIO(GPIO_PORTA, 20));
|
||||
|
||||
// disable debugger hot-plugging
|
||||
gpio_set_pin_function(SWCLK, GPIO_PIN_FUNCTION_OFF);
|
||||
gpio_set_pin_direction(SWCLK, GPIO_DIRECTION_OFF);
|
||||
gpio_set_pin_pull_mode(SWCLK, GPIO_PULL_OFF);
|
||||
HAL_GPIO_SWCLK_pmuxdis();
|
||||
HAL_GPIO_SWCLK_off();
|
||||
|
||||
// RAM should be back-biased in STANDBY
|
||||
PM->STDBYCFG.bit.BBIASHS = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user