Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BleSerial Cli ConfigFile MbedJSONValue
source/Hardware.h@0:1d8829c32cd5, 2018-01-03 (annotated)
- Committer:
- twixx
- Date:
- Wed Jan 03 15:07:35 2018 +0000
- Revision:
- 0:1d8829c32cd5
first commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| twixx | 0:1d8829c32cd5 | 1 | #ifndef HARDWARE_H_ |
| twixx | 0:1d8829c32cd5 | 2 | #define HARDWARE_H_ |
| twixx | 0:1d8829c32cd5 | 3 | |
| twixx | 0:1d8829c32cd5 | 4 | #include "General.h" |
| twixx | 0:1d8829c32cd5 | 5 | #include "mbed.h" |
| twixx | 0:1d8829c32cd5 | 6 | #include <events/mbed_events.h> |
| twixx | 0:1d8829c32cd5 | 7 | #include "Cli.h" |
| twixx | 0:1d8829c32cd5 | 8 | #include "BleSerial.h" |
| twixx | 0:1d8829c32cd5 | 9 | #include "ble/BLE.h" |
| twixx | 0:1d8829c32cd5 | 10 | #include "ble/Gap.h" |
| twixx | 0:1d8829c32cd5 | 11 | #include "ble/services/BatteryService.h" |
| twixx | 0:1d8829c32cd5 | 12 | #include "ble/services/DFUService.h" |
| twixx | 0:1d8829c32cd5 | 13 | #include "UARTService.h" |
| twixx | 0:1d8829c32cd5 | 14 | #include "ConfigFile.h" |
| twixx | 0:1d8829c32cd5 | 15 | #include "MbedJSONValue.h" |
| twixx | 0:1d8829c32cd5 | 16 | #include <string> |
| twixx | 0:1d8829c32cd5 | 17 | |
| twixx | 0:1d8829c32cd5 | 18 | //namespace BLETEST |
| twixx | 0:1d8829c32cd5 | 19 | //{ |
| twixx | 0:1d8829c32cd5 | 20 | class Hardware |
| twixx | 0:1d8829c32cd5 | 21 | { |
| twixx | 0:1d8829c32cd5 | 22 | public: |
| twixx | 0:1d8829c32cd5 | 23 | |
| twixx | 0:1d8829c32cd5 | 24 | Serial *pc; |
| twixx | 0:1d8829c32cd5 | 25 | Cli *myCli; |
| twixx | 0:1d8829c32cd5 | 26 | Cli *bleCli; |
| twixx | 0:1d8829c32cd5 | 27 | BleSerial *bleSerial; |
| twixx | 0:1d8829c32cd5 | 28 | |
| twixx | 0:1d8829c32cd5 | 29 | //DigitalOut *led1; |
| twixx | 0:1d8829c32cd5 | 30 | PwmOut *led; |
| twixx | 0:1d8829c32cd5 | 31 | |
| twixx | 0:1d8829c32cd5 | 32 | Hardware(); |
| twixx | 0:1d8829c32cd5 | 33 | |
| twixx | 0:1d8829c32cd5 | 34 | InitResult init(); |
| twixx | 0:1d8829c32cd5 | 35 | InitResult initCli(); |
| twixx | 0:1d8829c32cd5 | 36 | |
| twixx | 0:1d8829c32cd5 | 37 | static CbResult cb_print(void* pObject, va_list args); |
| twixx | 0:1d8829c32cd5 | 38 | |
| twixx | 0:1d8829c32cd5 | 39 | private: |
| twixx | 0:1d8829c32cd5 | 40 | |
| twixx | 0:1d8829c32cd5 | 41 | |
| twixx | 0:1d8829c32cd5 | 42 | }; |
| twixx | 0:1d8829c32cd5 | 43 | //} /* namespace BLETEST */ |
| twixx | 0:1d8829c32cd5 | 44 | |
| twixx | 0:1d8829c32cd5 | 45 | #endif /* MICROZOO_H_ */ |
| twixx | 0:1d8829c32cd5 | 46 |