mirror of https://github.com/ARMmbed/mbed-os.git
Apply new astyle config style
parent
7c05a83afa
commit
fd7e46b799
|
@ -21,8 +21,7 @@
|
||||||
|
|
||||||
#include "reset_reason_api.h"
|
#include "reset_reason_api.h"
|
||||||
|
|
||||||
namespace mbed
|
namespace mbed {
|
||||||
{
|
|
||||||
/** \addtogroup drivers */
|
/** \addtogroup drivers */
|
||||||
/** ResetReason API. When the system is restarted, the reason for the restart is
|
/** ResetReason API. When the system is restarted, the reason for the restart is
|
||||||
* contained in the system registers at boot time in a platform specific manner,
|
* contained in the system registers at boot time in a platform specific manner,
|
||||||
|
@ -30,8 +29,7 @@ namespace mbed
|
||||||
*
|
*
|
||||||
* @ingroup drivers
|
* @ingroup drivers
|
||||||
*/
|
*/
|
||||||
class ResetReason
|
class ResetReason {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
/** Get the platform-independent reason code for the last system reset.
|
/** Get the platform-independent reason code for the last system reset.
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
|
|
||||||
#include "Watchdog.h"
|
#include "Watchdog.h"
|
||||||
|
|
||||||
namespace mbed
|
namespace mbed {
|
||||||
{
|
|
||||||
|
|
||||||
watchdog_status_t Watchdog::start(const uint32_t timeout)
|
watchdog_status_t Watchdog::start(const uint32_t timeout)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,8 +44,7 @@ namespace mbed {
|
||||||
* @endcode
|
* @endcode
|
||||||
* @ingroup drivers
|
* @ingroup drivers
|
||||||
*/
|
*/
|
||||||
class Watchdog
|
class Watchdog {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
Watchdog() {}
|
Watchdog() {}
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,7 @@
|
||||||
* modes unless the chip is woken to refresh the timer.
|
* modes unless the chip is woken to refresh the timer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Refresh value for the watchdog in milliseconds. The maximum value of this
|
* Refresh value for the watchdog in milliseconds. The maximum value of this
|
||||||
* setting is platform dependent, to find the maximum value for the current
|
* setting is platform dependent, to find the maximum value for the current
|
||||||
|
@ -60,8 +59,7 @@ typedef struct
|
||||||
} watchdog_config_t;
|
} watchdog_config_t;
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct {
|
||||||
{
|
|
||||||
/**
|
/**
|
||||||
* Maximum timeout value for the watchdog in milliseconds.
|
* Maximum timeout value for the watchdog in milliseconds.
|
||||||
*/
|
*/
|
||||||
|
@ -84,7 +82,7 @@ typedef enum {
|
||||||
} watchdog_status_t;
|
} watchdog_status_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Initialise and start a watchdog timer with the given configuration.
|
/** Initialise and start a watchdog timer with the given configuration.
|
||||||
|
|
Loading…
Reference in New Issue