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.
main.cpp
- Committer:
- _seminahn
- Date:
- 2021-05-26
- Revision:
- 1:2594a70c1ddd
- Parent:
- 0:4ff8aeb3e4d1
- Child:
- 2:0de4854743f7
File content as of revision 1:2594a70c1ddd:
/* mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 20201024 Thread example :
* got from https://os.mbed.com/docs/mbed-os/v6.3/apis/thread.html
*/
#include "mbedHeader.hpp"
#include "robotConfig.h"
#include "rosHeader.hpp"
#include "moduleHeader.hpp"
#include "defineHeader.h"
#include "instanceHeader.hpp"
#include "myUtil.hpp"
#include "globalVariable.h"
#include "initFunction.hpp"
#include "threadDeclaration.hpp"
#include "callbackHeader.hpp"
/* function protopytes begin ------------------------------------------------ */
/* function protopytes end -------------------------------------------------- */
/* Instancs begin ----------------------------------------------------------- */
#ifdef NO_ROS
mbed::Serial pc(USBTX, USBRX);
#else
ros::NodeHandle nh;
#endif
//MODULE module(BOOSTPUMP_PIN, SOLENOID_PIN, PURIFIER_PWM_PIN, PURIFIER_BR_PIN, UVC_PIN);
//UVC uvc(UVC_P, UVC_N);
Serial bt(BT_TX,BT_RX);
#define CALIBRATION_MODE 1
/* Instancs end ------------------------------------------------------------- */
int main() {
SystemCoreClockUpdate();
#if (NO_ROS)
initSerial();
//pc.printf("- Start of Program. CPU SystemCoreClock is %d Hz\r\n", SystemCoreClock);
#else
initROS();
#endif
initBT();
initThread();
while(1) {;}
#if (NO_ROS)
pc.printf("- End of Program\r\n");
#endif
return 0;
}
/***** EOF *****/