Don't open-code mcu_set_clock_prescalar

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 1 insertions(+), 9 deletions(-)

M main.c
M main.c +1 -9
@@ 412,15 412,7 @@ void start(void)
     (RAW_MCU_FREQ_SCALE != 256)
 #error "Invalid MCU frequency prescaler value"
 #endif
-	asm volatile(
-		"st Z, %1\n"
-		"st Z, %2\n"
-		: /* out */
-		: /* in */
-		  "z" (&mmregs->clkpr),
-		  "r" (REG_CLKPR_CLKPCE),
-		  "r" (mcu_clock_prescalar_to_clkps(RAW_MCU_FREQ_SCALE))
-	);
+	mcu_set_clock_prescalar(RAW_MCU_FREQ_SCALE);
 
 	/*
 	 * Initialize the state struct