Changes

CW308T-CEC1702

18 bytes added, 20:27, 4 April 2018
no edit summary
* All variable declarations need to be done at the beginning of functions, before any variables are modified or functions are called.
* The mikroC compiler may have strange sizes for integer constants, meaning changing 4 8 bit numbers into a 32 bit number via bitshifts may not work as intended. Instead, using memcpy() may prove easier and more reliable.
* When using mikroC's "Clean Project Folder", ensure that .mcpar , .c, .h, and .xml files are not selected, as this will cause the source/project file to be deleted./Flash Center
* The port base for use with the GPIO library is actually GPIO_PORT_xxx_xxx, not _GPIO_PORT_xxx_xxx. Additionally, this is not a pointer, meaning the address of this variable needs to be passed to the gpio functions
* There are no GPIO library functions to write or read from pins. Instead, use GPIO_OUTPUT_xxx_xxx.Bn/GPIO_INPUT_xxx_xxx.Bn for bit n of pin range xxx-xxx.
Approved_users, administrator
366
edits