Skip to content

Commit

Permalink
Remove CMemorySystem member from all samples
Browse files Browse the repository at this point in the history
The CMemorySystem class is instantiated early during system
initialization in any case since Step 41.2, but in the sample
programs there were still alias instances, which were obsolete.
These will be removed now in all samples in sample/, addon/ and app/.
  • Loading branch information
rsta2 committed Mar 29, 2021
1 parent 91075a4 commit ab6ca24
Show file tree
Hide file tree
Showing 76 changed files with 17 additions and 146 deletions.
2 changes: 0 additions & 2 deletions addon/OneWire/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -37,7 +36,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/Properties/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -58,7 +57,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/SDCard/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/Spectrum/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/devicenameservice.h>
#include <circle/serial.h>
Expand Down Expand Up @@ -50,7 +49,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CDeviceNameService m_DeviceNameService;
CSerialDevice m_Serial;
Expand Down
2 changes: 0 additions & 2 deletions addon/WS28XX/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -52,7 +51,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/dio/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/display/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -58,7 +57,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/fatfs/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -54,7 +53,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/gpio/sample/rtkgpio/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -52,7 +51,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/lvgl/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -54,7 +53,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/microbit/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/profile/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -57,7 +56,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/qemu/gpiodemo/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/devicenameservice.h>
#include <circle/screen.h>
Expand All @@ -45,7 +44,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CDeviceNameService m_DeviceNameService;
CScreenDevice m_Screen;
Expand Down
2 changes: 0 additions & 2 deletions addon/qemu/hostlogdemo/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
CQEMUHostFile m_LogFile;
Expand Down
2 changes: 0 additions & 2 deletions addon/rtc/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -56,7 +55,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/sensor/sample/bmp180/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/sensor/sample/hcsr04/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/sensor/sample/mpu6050/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/tftpfileserver/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -56,7 +55,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
2 changes: 0 additions & 2 deletions addon/ugui/sample/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -59,7 +58,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
3 changes: 2 additions & 1 deletion addon/vc4/interface/sample/hello_dispmanx/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#include "kernel.h"
#include <circle/memory.h>

extern "C" int _main (void);

Expand All @@ -27,7 +28,7 @@ CKernel::CKernel (void)
: m_Screen (m_Options.GetWidth (), m_Options.GetHeight ()),
m_Timer (&m_Interrupt),
m_Logger (m_Options.GetLogLevel (), &m_Timer),
m_VCHIQ (&m_Memory, &m_Interrupt)
m_VCHIQ (CMemorySystem::Get (), &m_Interrupt)
{
m_ActLED.Blink (5); // show we are alive
}
Expand Down
2 changes: 0 additions & 2 deletions addon/vc4/interface/sample/hello_dispmanx/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
3 changes: 2 additions & 1 deletion addon/vc4/interface/sample/hello_tiger/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#include "kernel.h"
#include <circle/memory.h>

extern "C" int _main (void);

Expand All @@ -27,7 +28,7 @@ CKernel::CKernel (void)
: m_Screen (m_Options.GetWidth (), m_Options.GetHeight ()),
m_Timer (&m_Interrupt),
m_Logger (m_Options.GetLogLevel (), &m_Timer),
m_VCHIQ (&m_Memory, &m_Interrupt)
m_VCHIQ (CMemorySystem::Get (), &m_Interrupt)
{
m_ActLED.Blink (5); // show we are alive
}
Expand Down
2 changes: 0 additions & 2 deletions addon/vc4/interface/sample/hello_tiger/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#ifndef _kernel_h
#define _kernel_h

#include <circle/memory.h>
#include <circle/actled.h>
#include <circle/koptions.h>
#include <circle/devicenameservice.h>
Expand Down Expand Up @@ -53,7 +52,6 @@ class CKernel

private:
// do not change this order
CMemorySystem m_Memory;
CActLED m_ActLED;
CKernelOptions m_Options;
CDeviceNameService m_DeviceNameService;
Expand Down
Loading

0 comments on commit ab6ca24

Please sign in to comment.