This commit is contained in:
QL 2019-01-30 11:49:53 -05:00
parent c3db4284f1
commit 3cad37574c
9 changed files with 63 additions and 58 deletions

View File

@ -1,5 +1,5 @@
//****************************************************************************
// Product: DPP example
// Product: BSP for DPP with FreeRTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//

View File

@ -1,5 +1,5 @@
//****************************************************************************
// Product: DPP example
// Product: BSP for DPP with FreeRTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//

View File

@ -1,5 +1,5 @@
//****************************************************************************
// Product: DPP example
// Product: BSP for DPP with FreeRTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//

View File

@ -1,13 +1,13 @@
//****************************************************************************
// Product: DPP example
// Last Updated for Version: 5.8.1
// Date of the Last Update: 2016-12-12
// Product: BSP for DPP with ThreadX RTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#ifndef bsp_h
@ -38,7 +38,7 @@ namespace DPP {
class BSP {
public:
enum { TICKS_PER_SEC = 100 };
enum { TICKS_PER_SEC = TX_TIMER_TICKS_PER_SECOND };
static void init(void);
static void displayPaused(uint8_t const paused);

View File

@ -1,13 +1,13 @@
//****************************************************************************
// Product: DPP example
// Last Updated for Version: 5.8.1
// Date of the Last Update: 2016-12-12
// Product: BSP for DPP with ThreadX RTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#ifndef bsp_h
@ -38,7 +38,7 @@ namespace DPP {
class BSP {
public:
enum { TICKS_PER_SEC = 100 };
enum { TICKS_PER_SEC = TX_TIMER_TICKS_PER_SECOND };
static void init(void);
static void displayPaused(uint8_t const paused);

View File

@ -1,13 +1,13 @@
///***************************************************************************
// Product: DPP example, EK-TM4C123GXL board, TI-RTOS kernel (SYS/BIOS)
// Last updated for version 5.9.5
// Last updated on 2017-07-20
// Last updated for version 6.3.8
// Last updated on 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#include "qpcpp.h"
@ -165,6 +165,11 @@ void QF::onStartup(void) {
Clock_Params_init(&clkParams);
clkParams.startFlag = TRUE;
// NOTE:
// The conversion constant 1000 must be consistent with Clock.tickPeriod
// in the .cfg file for this TI-RTOS application!
//
clkParams.period = 1000U/DPP::BSP::TICKS_PER_SEC;
// Construct a periodic Clock Instance

View File

@ -1,13 +1,13 @@
//****************************************************************************
// Product: DPP example
// Last Updated for Version: 5.6.0
// Date of the Last Update: 2015-12-28
// Product: BSP for DPP with uC/OS-II RTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#ifndef bsp_h
@ -38,7 +38,7 @@ namespace DPP {
class BSP {
public:
enum { TICKS_PER_SEC = 100 };
enum { TICKS_PER_SEC = OS_TICKS_PER_SEC };
static void init(void);
static void displayPaused(uint8_t const paused);
@ -46,7 +46,7 @@ public:
static void terminate(int16_t const result);
static void randomSeed(uint32_t const seed); // random seed
static uint32_t random(void); // pseudo-random generator
static uint32_t random(void); // pseudo-random generator
// for testing...
static void wait4SW1(void);

View File

@ -1,13 +1,13 @@
//****************************************************************************
// Product: DPP example
// Last Updated for Version: 5.6.0
// Date of the Last Update: 2015-12-28
// Product: BSP for DPP with uC/OS-II RTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#ifndef bsp_h
@ -38,7 +38,7 @@ namespace DPP {
class BSP {
public:
enum { TICKS_PER_SEC = 100 };
enum { TICKS_PER_SEC = OS_TICKS_PER_SEC };
static void init(void);
static void displayPaused(uint8_t const paused);
@ -46,7 +46,7 @@ public:
static void terminate(int16_t const result);
static void randomSeed(uint32_t const seed); // random seed
static uint32_t random(void); // pseudo-random generator
static uint32_t random(void); // pseudo-random generator
// for testing...
static void wait4SW1(void);

View File

@ -1,13 +1,13 @@
//****************************************************************************
// Product: DPP example
// Last Updated for Version: 5.6.0
// Date of the Last Update: 2015-12-28
// Product: BSP for DPP with uC/OS-II RTOS
// Last Updated for Version: 6.3.8
// Date of the Last Update: 2019-01-30
//
// Q u a n t u m L e a P s
// ---------------------------
// innovating embedded systems
// Q u a n t u m L e a P s
// ------------------------
// Modern Embedded Software
//
// Copyright (C) Quantum Leaps, LLC. All rights reserved.
// Copyright (C) 2005-2019 Quantum Leaps, LLC. All rights reserved.
//
// This program is open source software: you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
@ -28,7 +28,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// Contact information:
// https://state-machine.com
// https://www.state-machine.com
// mailto:info@state-machine.com
//****************************************************************************
#ifndef bsp_h
@ -38,7 +38,7 @@ namespace DPP {
class BSP {
public:
enum { TICKS_PER_SEC = 100 };
enum { TICKS_PER_SEC = OS_TICKS_PER_SEC };
static void init(void);
static void displayPaused(uint8_t const paused);
@ -46,7 +46,7 @@ public:
static void terminate(int16_t const result);
static void randomSeed(uint32_t const seed); // random seed
static uint32_t random(void); // pseudo-random generator
static uint32_t random(void); // pseudo-random generator
// for testing...
static void wait4SW1(void);