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
|
@ -21,7 +21,7 @@
|
|||
//This is necessary here because halSleepForQsWithOptions returns an
|
||||
//StStatus and not adding this typedef to this file breaks a
|
||||
//whole lot of builds.
|
||||
typedef int8u StStatus;
|
||||
typedef uint8_t StStatus;
|
||||
#endif //__STSTATUS_TYPE__
|
||||
#endif // DOXYGEN_SHOULD_SKIP_THIS
|
||||
|
||||
|
@ -58,7 +58,7 @@ void halInternalEnableWatchDog(void);
|
|||
*
|
||||
* @param magicKey A value (::MICRO_DISABLE_WATCH_DOG_KEY) that enables the function.
|
||||
*/
|
||||
void halInternalDisableWatchDog(int8u magicKey);
|
||||
void halInternalDisableWatchDog(uint8_t magicKey);
|
||||
|
||||
/** @brief Determines whether the watchdog has been enabled or disabled.
|
||||
*
|
||||
|
@ -90,7 +90,7 @@ boolean halInternalWatchDogEnabled( void );
|
|||
*/
|
||||
enum SleepModes
|
||||
#else
|
||||
typedef int8u SleepModes;
|
||||
typedef uint8_t SleepModes;
|
||||
enum
|
||||
#endif
|
||||
{
|
||||
|
@ -116,7 +116,7 @@ enum
|
|||
* @param us The specified time, in microseconds.
|
||||
Values should be between 1 and 65535 microseconds.
|
||||
*/
|
||||
void halCommonDelayMicroseconds(int16u us);
|
||||
void halCommonDelayMicroseconds(uint16_t us);
|
||||
|
||||
/** @brief Request the appplication to enter in bootloader mode
|
||||
*
|
||||
|
@ -132,7 +132,7 @@ void halCommonDelayMicroseconds(int16u us);
|
|||
* default panID (only vaild for RF mode).
|
||||
* @return An error code or it will never return.
|
||||
*/
|
||||
StStatus halBootloaderStart(int8u mode, int8u channel, int16u panId);
|
||||
StStatus halBootloaderStart(uint8_t mode, uint8_t channel, uint16_t panId);
|
||||
|
||||
#ifdef CORTEXM3_STM32F103
|
||||
#include "micro/cortexm3/stm32f103ret/micro-specific.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue