hc32f460: Add support for hc32f460 micro-controllers

Signed-off-by: Steven Gotthardt <gotthardt@gmail.com>
This commit is contained in:
Steven Gotthardt
2022-12-18 15:05:51 -07:00
committed by Kevin O'Connor
parent 94cbf5ff48
commit 72b6bd7efa
11 changed files with 928 additions and 0 deletions

28
src/hc32f460/main.c Normal file
View 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 (;;) ;
}