Cleanup and refactoring of the STM32w port
This is a general cleanup of things like code style issues and code structure of the STM32w port to make it more like the rest of Contiki is structured.
This commit is contained in:
parent
12b3d02ba1
commit
a5046e83c7
118 changed files with 4470 additions and 4281 deletions
|
@ -137,7 +137,7 @@
|
|||
* - Refer to nvm-def.h for a list of offset/length that define the data
|
||||
* stored in NVM storage space.
|
||||
* - All writes to flash are 16bit granularity and therefore the internal
|
||||
* flash writes cast the data to int16u. Length is also required to be
|
||||
* flash writes cast the data to uint16_t. Length is also required to be
|
||||
* a multiple of 16bits.
|
||||
* - Flash page erase uses a granularity of a single flash page. The size
|
||||
* of a flash page depends on the chip and is defined in memmap.h with
|
||||
|
@ -198,7 +198,7 @@
|
|||
* - ST_ERR_FATAL if the NVM storage management indicated an invalid
|
||||
* state. The function will return entirely 0xFF in the data parameter.
|
||||
*/
|
||||
StStatus halCommonReadFromNvm(void *data, int32u offset, int16u length);
|
||||
StStatus halCommonReadFromNvm(void *data, uint32_t offset, uint16_t length);
|
||||
|
||||
/**
|
||||
* @brief Return the address of the token in NVM
|
||||
|
@ -208,7 +208,7 @@ StStatus halCommonReadFromNvm(void *data, int32u offset, int16u length);
|
|||
*
|
||||
* @return The address requested
|
||||
*/
|
||||
int16u *halCommonGetAddressFromNvm(int32u offset);
|
||||
uint16_t *halCommonGetAddressFromNvm(uint32_t offset);
|
||||
|
||||
/**
|
||||
* @brief Write the NVM data from the provided location RAM into flash.
|
||||
|
@ -226,7 +226,7 @@ int16u *halCommonGetAddressFromNvm(int32u offset);
|
|||
* - Any other status value is an error code generated by the low level
|
||||
* flash erase and write API. Refer to flash.h for details.
|
||||
*/
|
||||
StStatus halCommonWriteToNvm(const void *data, int32u offset, int16u length);
|
||||
StStatus halCommonWriteToNvm(const void *data, uint32_t offset, uint16_t length);
|
||||
|
||||
/**
|
||||
* @brief Define the number of physical flash pages that comprise a NVM page.
|
||||
|
@ -256,14 +256,14 @@ StStatus halCommonWriteToNvm(const void *data, int32u offset, int16u length);
|
|||
* is defined by nvmStorageLeft[NVM_DATA_SIZE_B] and placed by the linker
|
||||
* using the segment "NVM".
|
||||
*/
|
||||
#define NVM_LEFT_PAGE ((int32u)nvmStorageLeft)
|
||||
#define NVM_LEFT_PAGE ((uint32_t)nvmStorageLeft)
|
||||
|
||||
/**
|
||||
* @brief Define the absolute address of the RIGHT page. RIGHT page storage
|
||||
* is defined by nvmStorageRight[NVM_DATA_SIZE_B] and placed by the linker
|
||||
* using the segment "NVM".
|
||||
*/
|
||||
#define NVM_RIGHT_PAGE ((int32u)nvmStorageRight)
|
||||
#define NVM_RIGHT_PAGE ((uint32_t)nvmStorageRight)
|
||||
|
||||
/**
|
||||
* @brief Define the number of bytes that comprise the NVM management bytes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue