summaryrefslogtreecommitdiff
path: root/drivers/media/sprd_sensor/csi2/csi_system.h
blob: 21f19886a6a720a7e00d25e678a4c5094035ebc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * system.h
 *
 *  Created on: Jun 25, 2010
 *      Author: klabadi & dlopo
 */

#ifndef SYSTEM_H_
#define SYSTEM_H_

#include "csi_types.h"

typedef enum
{
    CSI_INT_ERR1 = 1, CSI_INT_ERR2
} interrupt_id_t;
void system_sleep_ms(unsigned ms);
int system_thread_create(void* handle, thread_t p_func, void* param);
int system_thread_destruct(void* handle);
int system_start(thread_t thread);
int system_interrupt_disable(interrupt_id_t id);
int system_interrupt_enable(interrupt_id_t id);
int system_interrupt_acknowledge(interrupt_id_t id);
int system_interrupt_handler_register(interrupt_id_t id, handler_t handler, void * param);
int system_interrupt_handler_unregister(interrupt_id_t id);


#endif /* SYSTEM_H_ */