ChibiOS/demos/STM32/RT-STM32L4R9-DISCOVERY-SB_H.../source/sdmon.h

64 lines
2.6 KiB
C

/*
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef SDMON_H
#define SDMON_H
/*===========================================================================*/
/* Module constants. */
/*===========================================================================*/
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/
/*===========================================================================*/
/* Module data structures and types. */
/*===========================================================================*/
/*===========================================================================*/
/* Module macros. */
/*===========================================================================*/
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
extern event_source_t sdmon_inserted_event, sdmon_removed_event;
extern bool sdmon_ready;
#ifdef __cplusplus
extern "C" {
#endif
void sdmonInit(void);
void sdmonInsertHandler(eventid_t id);
void sdmonRemoveHandler(eventid_t id);
#ifdef __cplusplus
}
#endif
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/
#endif /* SDMON_H */
/** @} */