mirror of
git://soft.sys114.com/klipper
synced 2026-02-13 10:00:33 +09:00
hc32f460: Add support for hc32f460 micro-controllers
Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
This commit is contained in:
committed by
Kevin O'Connor
parent
94cbf5ff48
commit
72b6bd7efa
28
src/hc32f460/main.c
Normal file
28
src/hc32f460/main.c
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code to setup clocks on Huada HC32F460
|
||||
//
|
||||
// Copyright (C) 2022 Steven Gotthardt <gotthardt@gmail.com>
|
||||
//
|
||||
// This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
|
||||
#include "autoconf.h" // CONFIG_MACH_AVR
|
||||
#include "sched.h"
|
||||
#include "system_hc32f460.h"
|
||||
|
||||
|
||||
/****************************************************************
|
||||
* Startup
|
||||
****************************************************************/
|
||||
|
||||
// Main entry point - called from armcm_boot.c:ResetHandler()
|
||||
void __attribute__((noreturn))
|
||||
armcm_main(void)
|
||||
{
|
||||
// sets the system clock speed variable for library use
|
||||
SystemInit();
|
||||
|
||||
// manage the system
|
||||
sched_main();
|
||||
|
||||
// never get here
|
||||
for (;;) ;
|
||||
}
|
||||
Reference in New Issue
Block a user