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-06-10
- Revision:
- 2:0de4854743f7
- Parent:
- 1:2594a70c1ddd
- Child:
- 3:a4677501ae87
File content as of revision 2:0de4854743f7:
/** mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* @file
* @author Ahn semin <asm5206@gmail.com>
* @date 2021.06.09
* @version 1.1.0
*
* @section DESCRIPTION
*
* Control board
* 2021.06.09 Ahn: V1.1.0, Add delay on ssr control sequence
* SSR logic change npn
*/
#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
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 *****/