Statistics
| Branch: | Tag: | Revision:

mongoose / examples / PIC32 / mqtt_client / firmware / src / main.c @ eaef5bd1

History | View | Annotate | Download (491 Bytes)

1
/*
2
 * Copyright (c) 2016 Cesanta Software Limited
3
 * All rights reserved
4
 */
5

    
6
#include <stddef.h>
7
#include <stdlib.h>
8
#include "system/common/sys_module.h"
9

    
10
int main(void) {
11
  /* Initialize all MPLAB Harmony modules, including application(s). */
12
  SYS_Initialize(NULL);
13

    
14
  while (1) {
15
    /* Maintain state machines of all polled MPLAB Harmony modules. */
16
    SYS_Tasks();
17
  }
18

    
19
  /* Execution should not come here during normal operation */
20

    
21
  return (EXIT_FAILURE);
22
}