blob: 2759c57ed5b2f3ea6829b6d16d0f121532063fb4 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2008-2012 Travis Geiselbrecht
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#pragma once
#include <zircon/compiler.h>
#include <stdbool.h>
__BEGIN_CDECLS
/* super early platform initialization, before almost everything */
void target_early_init(void);
/* later init, after the kernel has come up */
void target_init(void);
/* called during chain loading to make sure target specific bits are put into a stopped state */
void target_quiesce(void);
/* a target can optionally define a set of debug leds that can be used
* in various locations in the system.
*/
#if TARGET_HAS_DEBUG_LED
void target_set_debug_led(unsigned int led, bool on);
#else
#define target_set_debug_led(led, on) ((void)(0))
#endif
__END_CDECLS