mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
Origin commit data
------------------
Branch: master
Commit: d274b4435d
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
24 lines
519 B
C++
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;
|
|
}
|