nm_bsp.h
Go to the documentation of this file.
1 
42 #ifndef _NM_BSP_H_
43 #define _NM_BSP_H_
44 
45 #define NMI_API
46 
49 #define CONST const
50 
51 #ifndef NULL
52 #define NULL ((void*)0)
53 #endif
54 
59 #define BSP_MIN(x,y) ((x)>(y)?(y):(x))
60 
65 
81 typedef void (*tpfNmBspIsr)(void);
82 
88 typedef unsigned char uint8;
89 
95 typedef unsigned short uint16;
96 
102 typedef unsigned long uint32;
104 
110 typedef signed char sint8;
117 typedef signed short sint16;
125 typedef signed long sint32;
127 
128 #ifndef CORTUS_APP
129 
130 
131 #ifdef __cplusplus
132 extern "C"{
133 #endif
134 
150 sint8 nm_bsp_init(void);
161 sint8 nm_bsp_deinit(void);
172 void nm_bsp_reset(void);
186 void nm_bsp_sleep(uint32 u32TimeMsec);
199 void nm_bsp_register_isr(tpfNmBspIsr pfIsr);
211 void nm_bsp_interrupt_ctrl(uint8 u8Enable);
214 #ifdef __cplusplus
215 }
216 #endif
217 
218 #endif
219 
225 #ifdef _NM_BSP_BIG_END
226 
227 #define NM_BSP_B_L_32(x) \
228 ((((x) & 0x000000FF) << 24) + \
229 (((x) & 0x0000FF00) << 8) + \
230 (((x) & 0x00FF0000) >> 8) + \
231 (((x) & 0xFF000000) >> 24))
232 
233 #define NM_BSP_B_L_16(x) \
234 ((((x) & 0x00FF) << 8) + \
235 (((x) & 0xFF00) >> 8))
236 #else
237 
238 #define NM_BSP_B_L_32(x) (x)
240 #define NM_BSP_B_L_16(x) (x)
241 #endif
242 
246 #endif /*_NM_BSP_H_*/
void nm_bsp_reset(void)
Reset WINC1500 SoC by setting CHIP_EN and RESET_N signals low, CHIP_EN high then RESET_N high...
signed short sint16
Range of values between -32768 to 32767.
Definition: nm_bsp.h:118
signed char sint8
Range of values between -128 to 127.
Definition: nm_bsp.h:111
void nm_bsp_register_isr(tpfNmBspIsr pfIsr)
void nm_bsp_interrupt_ctrl(uint8 u8Enable)
Enable/Disable interrupts.
unsigned short uint16
Range of values between 0 to 65535.
Definition: nm_bsp.h:96
void nm_bsp_sleep(uint32 u32TimeMsec)
sint8 nm_bsp_init(void)
Definition: nm_bsp_same70.c:71
unsigned long uint32
Range of values between 0 to 4294967295.
Definition: nm_bsp.h:103
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:89
sint8 nm_bsp_deinit(void)
De-iInitialize BSP.
Definition: nm_bsp_same70.c:89
void(* tpfNmBspIsr)(void)
Pointer to function. Used as a data type of ISR function registered by nm_bsp_register_isr.
Definition: nm_bsp.h:82
signed long sint32
Range of values between -2147483648 to 2147483647.
Definition: nm_bsp.h:126


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04