Added some comments.

FossilOrigin-Name: 04f80317574a45bfd705dc38137f421eacc055ae76c51f9648f2ca46b27793fd
This commit is contained in:
7u83@mail.ru 2016-03-05 22:10:35 +00:00
parent 0919d85456
commit b7e34d6dde
2 changed files with 17 additions and 1 deletions

View File

@ -16,7 +16,6 @@
*/
/* Use some macros from LWAPP */
/**
@ -43,9 +42,22 @@
*/
#define cw_put_data lw_put_data
/**
* Put a bstr_t object
* see #lw_put_bstr
*/
#define cw_put_bstr lw_put_bstr
/**
* Put bstr16_t object
* see #lw_put_bstr16
*/
#define cw_put_bstr16 lw_put_bstr16
/**
* Set dword
* see #lw_set_dword
*/
#define cw_set_dword lw_set_dword
#define cw_get_byte lw_get_byte

View File

@ -50,6 +50,10 @@
#define lw_set_word(dst,b) \
(*((uint16_t*)(dst)) = htons(w))
/**
* Same as #lw_put_dword, but the return value
* is unspecified.
*/
#define lw_set_dword(dst,dw)\
(*((uint32_t*)(dst)) = htonl(dw))