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.
Fork of WncControllerLibrary by
Diff: WncControllerK64F.cpp
- Revision:
- 1:ac2de545b981
- Parent:
- 0:affdbb35faa4
- Child:
- 2:30d78cda6779
diff -r affdbb35faa4 -r ac2de545b981 WncControllerK64F.cpp
--- a/WncControllerK64F.cpp Wed Aug 31 02:06:26 2016 +0000
+++ b/WncControllerK64F.cpp Thu Sep 01 02:28:10 2016 +0000
@@ -30,8 +30,7 @@
using namespace WncControllerK64F_fk;
-WncControllerK64F::WncControllerK64F(const char * const apnStr, struct WncGpioPinListK64F * pPins, Serial * wnc_uart, Serial * debug_uart)
-: WncController(apnStr)
+WncControllerK64F::WncControllerK64F(struct WncGpioPinListK64F * pPins, MODSERIAL * wnc_uart, MODSERIAL * debug_uart)
{
m_logTimer.start(); // Start the log timer now!
m_pDbgUart = debug_uart;
@@ -54,12 +53,12 @@
return (m_pWncUart->getc());
}
-int WncControllerK64F::byteReady(void)
+int WncControllerK64F::charReady(void)
{
return (m_pWncUart->readable());
}
-int WncControllerK64F::dbgWriteByte(char b)
+int WncControllerK64F::dbgWriteChar(char b)
{
if (m_pDbgUart != NULL)
return (m_pDbgUart->putc(b));
@@ -67,7 +66,7 @@
return (0);
}
-int WncControllerK64F::dbgWriteBytes(const char * b)
+int WncControllerK64F::dbgWriteChars(const char * b)
{
if (m_pDbgUart != NULL)
return (m_pDbgUart->puts(b));
@@ -138,9 +137,9 @@
m_timerA.stop();
}
-int WncControllerK64F::getUsTimerTicksA(void)
+int WncControllerK64F::getTimerTicksA_mS(void)
{
- return (m_timerA.read_us());
+ return (m_timerA.read_ms());
}
void WncControllerK64F::startTimerB(void)
@@ -154,7 +153,7 @@
m_timerB.stop();
}
-int WncControllerK64F::getUsTimerTicksB(void)
+int WncControllerK64F::getTimerTicksB_mS(void)
{
- return (m_timerB.read_us());
+ return (m_timerB.read_ms());
}
