Magnificent7 / Hackathon
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers np_system.h Source File

np_system.h

00001 /*
00002  * np_system.h
00003  *
00004  *  Created on: July 14, 2016
00005  *      Author: Alan.Lin
00006  *
00007  *  Copyright: NexPack Ltd.
00008  */
00009 
00010 #ifndef NP_SYSTEM_H_
00011 #define NP_SYSTEM_H_
00012 
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif
00016 #include <stdint.h>
00017 
00018 typedef void (*app_function)(void);
00019 void np_system_disable_interrupt(void);
00020 void np_system_disable_interrupt(void);
00021 void np_system_initial(app_function np_app_setup);
00022 void np_system_loop(app_function np_api_loop);
00023 void np_sys_init();
00024 void np_sys_start();
00025 void np_sys_bsl_chk();
00026 void delay_ms(uint32_t t_ms);
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030 
00031 #endif /* NP_SYSTEM_H_ */