Files
recycled-ni-libstb-hal/libazbox/init.cpp
vanhofen 7e7298eca1 init: align init/exit function names
Origin commit data
------------------
Branch: master
Commit: 3213abe71a
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-12-26 (Wed, 26 Dec 2018)

Origin message was:
------------------
- init: align init/exit function names

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2018-12-26 15:17:31 +01:00

24 lines
519 B
C++

#include <unistd.h>
#include "init.h"
#include "hal_debug.h"
#define hal_debug(args...) _hal_debug(HAL_DEBUG_INIT, NULL, args)
#define hal_info(args...) _hal_info(HAL_DEBUG_INIT, NULL, args)
static bool initialized = false;
void hal_api_init()
{
if (!initialized)
hal_debug_init();
hal_info("%s begin, initialized=%d, debug=0x%02x\n", __func__, (int)initialized, debuglevel);
initialized = true;
}
void hal_api_exit()
{
hal_info("%s, initialized = %d\n", __func__, (int)initialized);
initialized = false;
}