mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Update to V5.0.0.
This commit is contained in:
parent
4c8425da01
commit
7e529c281f
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
# FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
#
|
#
|
||||||
# This file is part of the FreeRTOS.org distribution.
|
# This file is part of the FreeRTOS.org distribution.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
# FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
#
|
#
|
||||||
# This file is part of the FreeRTOS.org distribution.
|
# This file is part of the FreeRTOS.org distribution.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
This file is part of the FreeRTOS distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
This file is part of the FreeRTOS distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
This file is part of the FreeRTOS distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
This file is part of the FreeRTOS distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
*----------------------------------------------------------*/
|
*----------------------------------------------------------*/
|
||||||
|
|
||||||
#define configUSE_PREEMPTION 1
|
#define configUSE_PREEMPTION 1
|
||||||
#define configUSE_IDLE_HOOK 1
|
#define configUSE_IDLE_HOOK 0
|
||||||
#define configUSE_TICK_HOOK 1
|
#define configUSE_TICK_HOOK 1
|
||||||
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 )
|
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 )
|
||||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
# FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
#
|
#
|
||||||
# This file is part of the FreeRTOS.org distribution.
|
# This file is part of the FreeRTOS.org distribution.
|
||||||
#
|
#
|
||||||
|
@ -29,6 +29,12 @@
|
||||||
# ***************************************************************************
|
# ***************************************************************************
|
||||||
|
|
||||||
|
|
||||||
|
#/*************************************************************************
|
||||||
|
# * Please ensure to read http://www.freertos.org/portLM3Sxxxx_Eclipse.html
|
||||||
|
# * which provides information on configuring and running this demo for the
|
||||||
|
# * various Luminary Micro EKs.
|
||||||
|
# *************************************************************************/
|
||||||
|
|
||||||
RTOS_SOURCE_DIR=../../../Source
|
RTOS_SOURCE_DIR=../../../Source
|
||||||
DEMO_COMMON_DIR=../../Common/Minimal
|
DEMO_COMMON_DIR=../../Common/Minimal
|
||||||
DEMO_INCLUDE_DIR=../../Common/include
|
DEMO_INCLUDE_DIR=../../Common/include
|
||||||
|
@ -56,6 +62,7 @@ SOURCE= main.c \
|
||||||
./ParTest/ParTest.c \
|
./ParTest/ParTest.c \
|
||||||
rit128x96x4.c \
|
rit128x96x4.c \
|
||||||
osram128x64x4.c \
|
osram128x64x4.c \
|
||||||
|
formike128x128x16.c \
|
||||||
$(LUMINARY_DRIVER_DIR)/ustdlib.c \
|
$(LUMINARY_DRIVER_DIR)/ustdlib.c \
|
||||||
$(DEMO_COMMON_DIR)/BlockQ.c \
|
$(DEMO_COMMON_DIR)/BlockQ.c \
|
||||||
$(DEMO_COMMON_DIR)/blocktim.c \
|
$(DEMO_COMMON_DIR)/blocktim.c \
|
||||||
|
@ -82,7 +89,7 @@ SOURCE= main.c \
|
||||||
$(RTOS_SOURCE_DIR)/portable/GCC/ARM_CM3/port.c \
|
$(RTOS_SOURCE_DIR)/portable/GCC/ARM_CM3/port.c \
|
||||||
$(RTOS_SOURCE_DIR)/portable/MemMang/heap_2.c
|
$(RTOS_SOURCE_DIR)/portable/MemMang/heap_2.c
|
||||||
|
|
||||||
LIBS= $(LUMINARY_DRIVER_DIR)/arm-none-eabi-gcc/libdriver.a
|
LIBS= $(LUMINARY_DRIVER_DIR)/arm-none-eabi-gcc/libdriver.a $(LUMINARY_DRIVER_DIR)/arm-none-eabi-gcc/libgr.a
|
||||||
|
|
||||||
OBJS = $(SOURCE:.c=.o)
|
OBJS = $(SOURCE:.c=.o)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
#ifndef BITMAP_H
|
#ifndef BITMAP_H
|
||||||
#define BITMAP_H
|
#define BITMAP_H
|
||||||
|
|
||||||
const unsigned char pucImage[] =
|
#define bmpBITMAP_HEIGHT 50
|
||||||
|
#define bmpBITMAP_WIDTH 128
|
||||||
|
|
||||||
|
const unsigned char pucBasicBitmap[] =
|
||||||
{
|
{
|
||||||
0x00, 0x0a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
0x00, 0x0a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
||||||
|
@ -165,7 +168,169 @@ const unsigned char pucImage[] =
|
||||||
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x00,
|
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x00,
|
||||||
0x00 };
|
0x00 };
|
||||||
|
|
||||||
#define bmpBITMAP_HEIGHT 50
|
const unsigned char pucGrLibBitmap[] =
|
||||||
#define bmpBITMAP_WIDTH 128
|
{
|
||||||
|
IMAGE_FMT_4BPP_COMP,
|
||||||
|
124, 0,
|
||||||
|
49, 0,
|
||||||
|
|
||||||
|
15,
|
||||||
|
0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x0c, 0x00,
|
||||||
|
0x20, 0x44, 0x20,
|
||||||
|
0x00, 0x75, 0x00,
|
||||||
|
0x69, 0x69, 0x69,
|
||||||
|
0x00, 0xc2, 0x00,
|
||||||
|
0x00, 0xd2, 0x00,
|
||||||
|
0x38, 0xb6, 0x38,
|
||||||
|
0x00, 0xea, 0x00,
|
||||||
|
0x00, 0xf2, 0x00,
|
||||||
|
0xaa, 0xb2, 0xaa,
|
||||||
|
0x65, 0xff, 0x65,
|
||||||
|
0x69, 0xff, 0x69,
|
||||||
|
0x6d, 0xff, 0x6d,
|
||||||
|
0x71, 0xff, 0x71,
|
||||||
|
0xff, 0xff, 0xff,
|
||||||
|
|
||||||
|
0x03, 0x21, 0x33, 0x53, 0x33, 0x33, 0x33, 0xe9, 0xd4, 0xf8, 0xa7, 0x5f,
|
||||||
|
0x17, 0x07, 0x06, 0x35, 0x33, 0x12, 0x03, 0x23, 0x96, 0x68, 0x88, 0x88,
|
||||||
|
0x88, 0xe9, 0xd4, 0xf8, 0xa7, 0x5f, 0x17, 0x07, 0x06, 0x86, 0x69, 0x32,
|
||||||
|
0x03, 0x29, 0x66, 0x65, 0x66, 0x66, 0x66, 0xe9, 0xd4, 0xf8, 0xa7, 0x5f,
|
||||||
|
0x17, 0x07, 0x06, 0x56, 0x66, 0x92, 0x07, 0x78, 0x63, 0x11, 0x11, 0x11,
|
||||||
|
0xe9, 0xd4, 0xa7, 0xf0, 0x5f, 0x17, 0x07, 0x07, 0x11, 0x36, 0x87, 0x78,
|
||||||
|
0x0f, 0x63, 0x00, 0x00, 0x00, 0xe9, 0xd4, 0xa7, 0x5f, 0xe0, 0x17, 0x07,
|
||||||
|
0x07, 0x00, 0x36, 0x87, 0x78, 0x63, 0xfe, 0x07, 0x07, 0x77, 0x2f, 0x07,
|
||||||
|
0x07, 0x02, 0x36, 0x1e, 0x87, 0x78, 0x63, 0x07, 0x07, 0x77, 0x2f, 0x00,
|
||||||
|
0x10, 0x01, 0x22, 0x20, 0x07, 0x00, 0x00, 0x22, 0x21, 0x84, 0x03, 0x36,
|
||||||
|
0x87, 0x78, 0x63, 0x02, 0x02, 0xaa, 0x01, 0xa2, 0x22, 0x20, 0x02, 0x77,
|
||||||
|
0x77, 0x77, 0xe9, 0x3a, 0x22, 0x22, 0x7a, 0xa4, 0x71, 0x20, 0x0a, 0x27,
|
||||||
|
0xb8, 0x29, 0x72, 0xb2, 0x9e, 0x93, 0x36, 0x87, 0x78, 0x40, 0x63, 0x62,
|
||||||
|
0x2a, 0xff, 0xf2, 0xaa, 0x40, 0x07, 0x08, 0xad, 0xdd, 0xdd, 0xdd, 0xe9,
|
||||||
|
0xd7, 0x72, 0x00, 0x40, 0x00, 0xa6, 0xdd, 0xda, 0x70, 0x00, 0x00, 0x02,
|
||||||
|
0x00, 0x77, 0xdd, 0xdc, 0xcc, 0xcd, 0xde, 0xc7, 0x20, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x01, 0x27, 0xde, 0xdc, 0x08, 0xcc, 0xcc, 0xdd, 0xea, 0x99,
|
||||||
|
0x36, 0x87, 0x78, 0x40, 0x63, 0x69, 0x02, 0xaf, 0xaa, 0xf2, 0x2f, 0xa0,
|
||||||
|
0x04, 0x02, 0xdb, 0xbb, 0xbb, 0xbb, 0xe9, 0xbc, 0xe7, 0x10, 0x20, 0x00,
|
||||||
|
0x07, 0xa5, 0xbb, 0xbd, 0x70, 0x00, 0x10, 0x00, 0x27, 0xec, 0x3b, 0xcd,
|
||||||
|
0xd7, 0x00, 0x00, 0x80, 0x9f, 0xbd, 0x20, 0x00, 0x00, 0x36, 0x87, 0x78,
|
||||||
|
0x40, 0x63, 0x69, 0x02, 0xfa, 0x2a, 0xf2, 0x2f, 0xa0, 0x31, 0x02, 0xdb,
|
||||||
|
0x43, 0x31, 0x42, 0x00, 0x07, 0xa7, 0x0a, 0x70, 0x00, 0x02, 0xdd, 0x41,
|
||||||
|
0xcc, 0x21, 0xce, 0x04, 0x70, 0x00, 0x00, 0x02, 0x7d, 0x39, 0xbc, 0xcb,
|
||||||
|
0x00, 0xbb, 0xbd, 0x20, 0x00, 0x00, 0x36, 0x87, 0x78, 0x20, 0x63, 0x00,
|
||||||
|
0x69, 0xfa, 0x0a, 0xf2, 0x2f, 0xa0, 0x01, 0x02, 0xdb, 0xbb, 0xbb, 0xdd,
|
||||||
|
0xdd, 0xdc, 0x11, 0x08, 0xe7, 0x00, 0x07, 0xad, 0xbb, 0xcd, 0xdd, 0xda,
|
||||||
|
0x09, 0x70, 0x00, 0x2d, 0xcb, 0x41, 0xcc, 0xdd, 0xd1, 0x04, 0xe7, 0x00,
|
||||||
|
0x00, 0x07, 0xeb, 0x51, 0xdc, 0xcd, 0x00, 0xdd, 0xdd, 0x20, 0x00, 0x00,
|
||||||
|
0x36, 0x87, 0x78, 0x00, 0x63, 0x00, 0x00, 0x00, 0x02, 0xfa, 0x2a, 0xf2,
|
||||||
|
0x00, 0xaf, 0xa0, 0x02, 0xdb, 0xbb, 0xbd, 0x72, 0x22, 0x00, 0x77, 0xdc,
|
||||||
|
0xbb, 0xbb, 0xc7, 0x20, 0x07, 0x77, 0x04, 0x77, 0x77, 0xcb, 0xbb, 0xbc,
|
||||||
|
0xd1, 0x20, 0x01, 0x28, 0x7d, 0xbb, 0x42, 0x27, 0x41, 0xcd, 0x20, 0x00,
|
||||||
|
0x40, 0x27, 0x51, 0x72, 0x22, 0x22, 0x27, 0x7c, 0x20, 0x00, 0x00, 0x00,
|
||||||
|
0x36, 0x87, 0x78, 0x63, 0x00, 0x00, 0x00, 0x00, 0x02, 0xaf, 0xaa, 0xfa,
|
||||||
|
0xff, 0x20, 0x02, 0x10, 0xdb, 0xbb, 0xbe, 0x61, 0x2d, 0xbb, 0xbb, 0xcc,
|
||||||
|
0xa8, 0x29, 0x00, 0x89, 0xbd, 0xc3, 0xeb, 0xbb, 0xbb, 0x00, 0xd7, 0x10,
|
||||||
|
0x00, 0x00, 0x2c, 0xcb, 0xbb, 0xbd, 0x58, 0x70, 0x12, 0xc7, 0x13, 0x29,
|
||||||
|
0x36, 0x87, 0x78, 0x40, 0x63, 0xa9, 0x00, 0xaf, 0xff, 0xff, 0xfa, 0x20,
|
||||||
|
0x08, 0x02, 0xdb, 0xbb, 0xbd, 0x39, 0x07, 0xdb, 0xbb, 0x72, 0xcc, 0x03,
|
||||||
|
0x8c, 0x82, 0xbd, 0x70, 0x84, 0xbc, 0x03, 0xd2, 0x00, 0x2d, 0xbb, 0xbb,
|
||||||
|
0xd7, 0x19, 0x01, 0x02, 0x00, 0x00, 0x36, 0x87, 0x78, 0x63, 0xa2, 0x0a,
|
||||||
|
0x10, 0xaf, 0xff, 0xa2, 0x0a, 0xbd, 0x20, 0x00, 0x00, 0x0c, 0x07, 0xdb,
|
||||||
|
0xbb, 0xc7, 0xc9, 0x8e, 0x00, 0x2c, 0x40, 0xcb, 0xc4, 0x00, 0x7c, 0xbb,
|
||||||
|
0xbb, 0xe7, 0x00, 0x06, 0x2d, 0xbb, 0xbb, 0xc7, 0x10, 0x92, 0x31, 0x36,
|
||||||
|
0x10, 0x87, 0x78, 0x63, 0xab, 0x22, 0x22, 0x00, 0x00, 0x00, 0x02, 0xdb,
|
||||||
|
0xbb, 0xbd, 0x20, 0x00, 0x00, 0x07, 0x18, 0xcb, 0xbb, 0xd7, 0x0a, 0x8d,
|
||||||
|
0x00, 0x2d, 0xbb, 0x23, 0xbb, 0xc7, 0x82, 0x00, 0x2e, 0xbb, 0x39, 0x91,
|
||||||
|
0x20, 0xbd, 0x72, 0x8b, 0x00, 0x00, 0x36, 0x87, 0x78, 0x48, 0x63, 0x33,
|
||||||
|
0x02, 0x20, 0xe1, 0xdb, 0xbb, 0xbd, 0x01, 0x20, 0x00, 0x02, 0x7d, 0xbb,
|
||||||
|
0xbb, 0xe2, 0x6b, 0x94, 0x8b, 0x00, 0x00, 0x81, 0xd7, 0x82, 0x00, 0x2d,
|
||||||
|
0x00, 0xbb, 0xbb, 0xc7, 0x20, 0x2c, 0xcb, 0xbb, 0xbb, 0x10, 0xdd, 0x77,
|
||||||
|
0x22, 0x7b, 0x36, 0x87, 0x78, 0x63, 0x80, 0x32, 0x02, 0xaa, 0xf2, 0x22,
|
||||||
|
0x20, 0x02, 0xdb, 0x00, 0xbb, 0xbc, 0x77, 0x77, 0x77, 0xdb, 0xbb, 0xce,
|
||||||
|
0x42, 0x71, 0x63, 0xdb, 0xbb, 0xbd, 0x20, 0x19, 0x7d, 0x10, 0xbb, 0xbb,
|
||||||
|
0xd2, 0x82, 0x00, 0x27, 0xcb, 0xbb, 0x00, 0xc7, 0x20, 0x07, 0xeb, 0xbb,
|
||||||
|
0xbb, 0xbb, 0xcd, 0x21, 0xd7, 0x72, 0x72, 0x36, 0x87, 0x78, 0x63, 0x32,
|
||||||
|
0x01, 0x4f, 0xff, 0xf2, 0xaf, 0xa0, 0x02, 0xdb, 0x41, 0x03, 0xdd, 0xdc,
|
||||||
|
0xbb, 0xbc, 0xd7, 0x20, 0x22, 0x89, 0x42, 0xbd, 0xba, 0x7d, 0xbb, 0xbb,
|
||||||
|
0xd2, 0x82, 0x00, 0x02, 0x27, 0xcb, 0xbb, 0xcc, 0x20, 0x02, 0x89, 0xbb,
|
||||||
|
0x08, 0xbb, 0xbc, 0xdd, 0x72, 0x31, 0x36, 0x87, 0x78, 0x40, 0x63, 0x31,
|
||||||
|
0x02, 0xaf, 0xaa, 0xf2, 0x2f, 0xa0, 0x21, 0x02, 0xdb, 0x3a, 0xbb, 0xbb,
|
||||||
|
0xc7, 0x20, 0x31, 0x88, 0x59, 0xdb, 0xbb, 0xbd, 0xb2, 0x7d, 0xbb, 0xbb,
|
||||||
|
0x40, 0xd2, 0x7b, 0x27, 0xcb, 0xbb, 0xcc, 0x20, 0x00, 0x00, 0x27, 0xec,
|
||||||
|
0xbb, 0xbb, 0xbb, 0xbb, 0xbc, 0xe7, 0x84, 0x29, 0x36, 0x87, 0x78, 0x63,
|
||||||
|
0x31, 0x02, 0xfa, 0x02, 0x0a, 0xf2, 0x2f, 0xa0, 0x02, 0xdb, 0x42, 0xbb,
|
||||||
|
0x31, 0xbb, 0xc7, 0x39, 0x5a, 0xdb, 0xbb, 0xbd, 0xb2, 0x08, 0x7d, 0xbb,
|
||||||
|
0xbb, 0xd2, 0x7b, 0x27, 0xcb, 0xbb, 0x00, 0xcc, 0x20, 0x00, 0x02, 0x77,
|
||||||
|
0xed, 0xcb, 0xbb, 0x00, 0xbb, 0xbb, 0xbd, 0x71, 0x00, 0x00, 0x36, 0x87,
|
||||||
|
0x20, 0x78, 0x63, 0x31, 0x02, 0xfa, 0x0a, 0xf2, 0x2f, 0x00, 0xa0, 0x02,
|
||||||
|
0xdb, 0xbb, 0xbb, 0xcd, 0xdd, 0xcb, 0x18, 0xbb, 0xbc, 0xe2, 0x69, 0x59,
|
||||||
|
0xdb, 0xbb, 0xbd, 0x42, 0x20, 0x19, 0x7d, 0xbb, 0xbb, 0xd2, 0x7b, 0x27,
|
||||||
|
0x10, 0xcb, 0xbb, 0xcb, 0x79, 0x02, 0x27, 0x7d, 0xdc, 0x00, 0xbb, 0xbb,
|
||||||
|
0xbb, 0xe2, 0x00, 0x00, 0x36, 0x87, 0x20, 0x78, 0x63, 0x31, 0x02, 0xfa,
|
||||||
|
0x2a, 0xf2, 0xaf, 0x00, 0xa0, 0x02, 0xdb, 0xbb, 0xbd, 0x72, 0x27, 0x4c,
|
||||||
|
0x1d, 0xbb, 0xbb, 0xd7, 0x69, 0x59, 0x89, 0x20, 0x19, 0x42, 0x7d, 0x7e,
|
||||||
|
0x2c, 0xbb, 0xbb, 0xc7, 0x7a, 0x00, 0x10, 0x22, 0x7c, 0xcb, 0x63, 0x36,
|
||||||
|
0x87, 0x78, 0x63, 0x80, 0x31, 0x02, 0xaf, 0xfa, 0xff, 0xff, 0x20, 0x02,
|
||||||
|
0x00, 0xdb, 0xbb, 0xbd, 0x20, 0x00, 0x2c, 0xcb, 0xbb, 0x28, 0xcb, 0x20,
|
||||||
|
0x61, 0x00, 0x8c, 0x00, 0x00, 0x2d, 0x12, 0xbb, 0xbb, 0xd7, 0x82, 0x00,
|
||||||
|
0x2e, 0xbe, 0x00, 0x21, 0x02, 0x7c, 0x63, 0x36, 0x87, 0x78, 0x63, 0x32,
|
||||||
|
0x00, 0x2f, 0xff, 0xff, 0xfa, 0x00, 0x02, 0xdb, 0xbb, 0x00, 0xbd, 0x20,
|
||||||
|
0x00, 0x07, 0xdb, 0xbb, 0xbe, 0x20, 0xc2, 0x62, 0x8c, 0x00, 0x00, 0x2c,
|
||||||
|
0xcb, 0xc4, 0x00, 0x0c, 0x7d, 0xbb, 0xbb, 0xe7, 0x3a, 0x19, 0x2d, 0xbb,
|
||||||
|
0x00, 0xbb, 0xc7, 0x00, 0x00, 0x36, 0x87, 0x78, 0x63, 0x80, 0x3a, 0x02,
|
||||||
|
0xaa, 0xaa, 0x40, 0x00, 0x02, 0xdb, 0x00, 0xbb, 0xbd, 0x20, 0x00, 0x02,
|
||||||
|
0xcc, 0xbb, 0xbd, 0x63, 0x70, 0x63, 0x8b, 0x00, 0x00, 0x07, 0x49, 0x7a,
|
||||||
|
0x98, 0x09, 0xbb, 0xd2, 0x3a, 0x19, 0x2d, 0xbb, 0xbb, 0x01, 0xd7, 0x00,
|
||||||
|
0x00, 0x36, 0x87, 0x78, 0x63, 0x3a, 0x14, 0xaa, 0x22, 0x20, 0x0b, 0xbd,
|
||||||
|
0xc9, 0x7d, 0xbb, 0x30, 0xbb, 0xd2, 0x61, 0x8e, 0x00, 0x02, 0xeb, 0xbb,
|
||||||
|
0x20, 0xbb, 0xd7, 0x79, 0x27, 0xcb, 0xbb, 0xbd, 0x70, 0x24, 0x00, 0x02,
|
||||||
|
0x6a, 0x00, 0x7d, 0x6b, 0x36, 0x87, 0x24, 0x78, 0x63, 0x39, 0x02, 0xff,
|
||||||
|
0x62, 0x02, 0xdb, 0x21, 0xbb, 0xbd, 0x21, 0x2e, 0xbb, 0xbb, 0xe7, 0x61,
|
||||||
|
0x80, 0x8e, 0x00, 0x02, 0x7d, 0xbb, 0xbb, 0xbd, 0x72, 0x00, 0x22, 0x27,
|
||||||
|
0xcc, 0xbb, 0xbb, 0xcd, 0x20, 0x00, 0x08, 0x07, 0xe7, 0x72, 0x22, 0xa3,
|
||||||
|
0xe2, 0x00, 0x00, 0x00, 0x36, 0x87, 0x78, 0x63, 0x00, 0x00, 0x00, 0x02,
|
||||||
|
0x20, 0xaf, 0xa0, 0xd2, 0xdb, 0xbb, 0xbd, 0x20, 0x00, 0x03, 0x00, 0x2b,
|
||||||
|
0xcb, 0xbb, 0xc7, 0x10, 0x8f, 0x11, 0x01, 0x2d, 0xcb, 0xbb, 0xbb, 0xdd,
|
||||||
|
0xb7, 0xcd, 0xd1, 0x00, 0xe7, 0x00, 0x00, 0x07, 0xdc, 0xdd, 0xcb, 0x7b,
|
||||||
|
0x00, 0xdd, 0xcb, 0xbb, 0xbc, 0x72, 0x00, 0x00, 0x36, 0x10, 0x87, 0x78,
|
||||||
|
0x63, 0x01, 0x00, 0x2a, 0xfa, 0x42, 0x01, 0x22, 0x20, 0x02, 0xdb, 0xbb,
|
||||||
|
0xbd, 0x20, 0x01, 0xb0, 0xcc, 0x00, 0x8d, 0xb9, 0xec, 0xbb, 0xbb, 0xbb,
|
||||||
|
0x00, 0xcc, 0xcb, 0xbb, 0xbb, 0xbe, 0x71, 0x00, 0x00, 0x05, 0x27, 0xcb,
|
||||||
|
0xbb, 0xcc, 0xcc, 0x81, 0xce, 0x29, 0x08, 0x36, 0x87, 0x78, 0x63, 0x02,
|
||||||
|
0xaa, 0xff, 0xff, 0x02, 0xff, 0xa0, 0x02, 0xdb, 0xbb, 0xbd, 0x61, 0x02,
|
||||||
|
0x0e, 0xeb, 0xbb, 0xbd, 0x70, 0x5a, 0x8c, 0x09, 0x27, 0x00, 0xec, 0xbb,
|
||||||
|
0xbb, 0xbb, 0xbb, 0xbb, 0xbd, 0xd7, 0x54, 0x10, 0xa1, 0xcb, 0xa4, 0xd2,
|
||||||
|
0x31, 0x36, 0x87, 0x20, 0x78, 0x63, 0x01, 0x02, 0xff, 0xff, 0xff, 0xff,
|
||||||
|
0x02, 0xa0, 0x07, 0xad, 0xdd, 0xda, 0x20, 0x99, 0xde, 0x1c, 0xdd, 0xde,
|
||||||
|
0xc2, 0x21, 0x8d, 0x0a, 0x7c, 0xed, 0x04, 0xcc, 0xcc, 0xcc, 0xde, 0xd7,
|
||||||
|
0x92, 0x2c, 0xed, 0x40, 0xdc, 0xa7, 0x36, 0x87, 0x78, 0x63, 0x00, 0x02,
|
||||||
|
0x00, 0x22, 0x02, 0xaa, 0xaa, 0xaa, 0xaa, 0x20, 0x02, 0x1b, 0x77, 0x77,
|
||||||
|
0x77, 0x5a, 0xc9, 0x72, 0x21, 0x8e, 0x88, 0xaa, 0x27, 0x77, 0x7b, 0x9d,
|
||||||
|
0x12, 0x27, 0x77, 0x20, 0x77, 0xb7, 0x3d, 0x36, 0x87, 0x78, 0x63, 0x00,
|
||||||
|
0x3e, 0x02, 0xaa, 0x43, 0x22, 0xc6, 0x87, 0x3e, 0x12, 0x21, 0x22, 0x22,
|
||||||
|
0x06, 0x01, 0x22, 0x22, 0x21, 0x04, 0x00, 0x36, 0x87, 0x78, 0x63, 0x00,
|
||||||
|
0x02, 0xfa, 0x22, 0x3f, 0xaa, 0x20, 0x26, 0xc6, 0x87, 0x3f, 0x07, 0x07,
|
||||||
|
0x00, 0x36, 0x87, 0x78, 0x63, 0x00, 0x02, 0xfa, 0x02, 0x7e, 0xff, 0x07,
|
||||||
|
0x07, 0x77, 0x2f, 0x07, 0x06, 0x36, 0x00, 0x87, 0x78, 0x63, 0x00, 0x02,
|
||||||
|
0xff, 0xaa, 0xfa, 0x07, 0x44, 0x44, 0x44, 0x20, 0x02, 0xd9, 0xc1, 0xd4,
|
||||||
|
0xf0, 0xa7, 0x5f, 0x17, 0x04, 0x42, 0x00, 0x00, 0x36, 0x00, 0x87, 0x78,
|
||||||
|
0x63, 0x00, 0x02, 0xff, 0xff, 0xff, 0x9f, 0xe9, 0xa0, 0x0a, 0xc4, 0x94,
|
||||||
|
0xa7, 0x5f, 0x17, 0x80, 0x04, 0xfa, 0x20, 0x00, 0x36, 0x87, 0x78, 0x63,
|
||||||
|
0x13, 0x00, 0x00, 0xaf, 0x03, 0xa0, 0x0a, 0x07, 0xbf, 0xe0, 0x77, 0x2f,
|
||||||
|
0x07, 0xfa, 0x20, 0x00, 0x36, 0x87, 0x00, 0x78, 0x63, 0x00, 0x00, 0x02,
|
||||||
|
0xaa, 0xfa, 0xaa, 0x0f, 0xaa, 0xaa, 0x20, 0x02, 0xd9, 0xc1, 0xd4, 0xa7,
|
||||||
|
0xe0, 0x5f, 0x17, 0x05, 0x00, 0x00, 0x36, 0x87, 0x78, 0x03, 0x63, 0x00,
|
||||||
|
0x00, 0x00, 0x02, 0xff, 0xd9, 0xc1, 0xfc, 0xd4, 0xa7, 0x5f, 0x17, 0x07,
|
||||||
|
0x03, 0x36, 0x87, 0x23, 0x78, 0x63, 0x01, 0x02, 0x44, 0x20, 0x07, 0x07,
|
||||||
|
0xf0, 0x77, 0x2f, 0x07, 0x05, 0x36, 0x87, 0x78, 0x63, 0xfe, 0x07, 0x07,
|
||||||
|
0x77, 0x2f, 0x07, 0x07, 0x02, 0x36, 0x1f, 0x87, 0x78, 0x63, 0x07, 0x07,
|
||||||
|
0x77, 0x2f, 0x07, 0xc0, 0x07, 0x02, 0x36, 0x87, 0x78, 0x63, 0x11, 0x11,
|
||||||
|
0x7f, 0x11, 0xe9, 0xd4, 0xa7, 0x5f, 0x17, 0x07, 0x07, 0x00, 0x11, 0x36,
|
||||||
|
0x87, 0x29, 0x66, 0x55, 0x55, 0x55, 0xfe, 0xe9, 0xd4, 0xa7, 0x5f, 0x17,
|
||||||
|
0x07, 0x07, 0x55, 0x00, 0x66, 0x92, 0x23, 0x96, 0x68, 0x88, 0x88, 0x88,
|
||||||
|
0xfe, 0xe9, 0xd4, 0xa7, 0x5f, 0x17, 0x07, 0x06, 0x86, 0x01, 0x69, 0x32,
|
||||||
|
0x21, 0x33, 0x55, 0x55, 0x55, 0xe9, 0xfc, 0xd4, 0xa7, 0x5f, 0x17, 0x07,
|
||||||
|
0x07, 0x55, 0x33, 0x00, 0x12,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
902
Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/formike128x128x16.c
Normal file
902
Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/formike128x128x16.c
Normal file
|
@ -0,0 +1,902 @@
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// formike128x128x16.c - Display driver for the Formike Electronic
|
||||||
|
// KWH015C04-F01 CSTN panel with an ST7637 controller.
|
||||||
|
//
|
||||||
|
// Copyright (c) 2008 Luminary Micro, Inc. All rights reserved.
|
||||||
|
//
|
||||||
|
// Software License Agreement
|
||||||
|
//
|
||||||
|
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
|
||||||
|
// exclusively on LMI's microcontroller products.
|
||||||
|
//
|
||||||
|
// The software is owned by LMI and/or its suppliers, and is protected under
|
||||||
|
// applicable copyright laws. All rights are reserved. You may not combine
|
||||||
|
// this software with "viral" open-source software in order to form a larger
|
||||||
|
// program. Any use in violation of the foregoing restrictions may subject
|
||||||
|
// the user to criminal sanctions under applicable laws, as well as to civil
|
||||||
|
// liability for the breach of the terms and conditions of this license.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
|
||||||
|
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
|
||||||
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
|
||||||
|
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
|
||||||
|
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
|
||||||
|
//
|
||||||
|
// This is part of revision 2523 of the Stellaris Peripheral Driver Library.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! \addtogroup ek_lm3s3748_api
|
||||||
|
//! @{
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
|
||||||
|
#include "hw_gpio.h"
|
||||||
|
#include "hw_memmap.h"
|
||||||
|
#include "hw_types.h"
|
||||||
|
#include "gpio.h"
|
||||||
|
#include "sysctl.h"
|
||||||
|
#include "rom.h"
|
||||||
|
#include "grlib.h"
|
||||||
|
#include "formike128x128x16.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Defines for the pins that are used to communicate with the ST7637.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
#define LCD_A0_BASE GPIO_PORTB_BASE
|
||||||
|
#define LCD_A0_PIN GPIO_PIN_2
|
||||||
|
#define LCD_WR_BASE GPIO_PORTC_BASE
|
||||||
|
#define LCD_WR_PIN GPIO_PIN_4
|
||||||
|
#define LCD_RD_BASE GPIO_PORTC_BASE
|
||||||
|
#define LCD_RD_PIN GPIO_PIN_5
|
||||||
|
#define LCD_BL_BASE GPIO_PORTF_BASE
|
||||||
|
#define LCD_BL_PIN GPIO_PIN_1
|
||||||
|
#define LCD_DATA_BASE GPIO_PORTG_BASE
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Translates a 24-bit RGB color to a display driver-specific color.
|
||||||
|
//
|
||||||
|
// \param c is the 24-bit RGB color. The least-significant byte is the blue
|
||||||
|
// channel, the next byte is the green channel, and the third byte is the red
|
||||||
|
// channel.
|
||||||
|
//
|
||||||
|
// This macro translates a 24-bit RGB color into a value that can be written
|
||||||
|
// into the display's frame buffer in order to reproduce that color, or the
|
||||||
|
// closest possible approximation of that color.
|
||||||
|
//
|
||||||
|
// \return Returns the display-driver specific color.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
#define DPYCOLORTRANSLATE(c) ((((c) & 0x00ff0000) >> 19) | \
|
||||||
|
((((c) & 0x0000ff00) >> 5) & 0x000007e0) | \
|
||||||
|
((((c) & 0x000000ff) << 8) & 0x0000f800))
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Writes a data word to the ST7637.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
WriteData(unsigned char ucData)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Write the data to the data bus.
|
||||||
|
//
|
||||||
|
HWREG(LCD_DATA_BASE + GPIO_O_DATA + (0xff << 2)) = ucData;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Assert the write enable signal.
|
||||||
|
//
|
||||||
|
HWREG(LCD_WR_BASE + GPIO_O_DATA + (LCD_WR_PIN << 2)) = 0;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Deassert the write enable signal.
|
||||||
|
//
|
||||||
|
HWREG(LCD_WR_BASE + GPIO_O_DATA + (LCD_WR_PIN << 2)) = LCD_WR_PIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Writes a command to the ST7637.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
WriteCommand(unsigned char ucData)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Write the command to the data bus.
|
||||||
|
//
|
||||||
|
HWREG(LCD_DATA_BASE + GPIO_O_DATA + (0xff << 2)) = ucData;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the A0 signal low, indicating a command.
|
||||||
|
//
|
||||||
|
HWREG(LCD_A0_BASE + GPIO_O_DATA + (LCD_A0_PIN << 2)) = 0;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Assert the write enable signal.
|
||||||
|
//
|
||||||
|
HWREG(LCD_WR_BASE + GPIO_O_DATA + (LCD_WR_PIN << 2)) = 0;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Deassert the write enable signal.
|
||||||
|
//
|
||||||
|
HWREG(LCD_WR_BASE + GPIO_O_DATA + (LCD_WR_PIN << 2)) = LCD_WR_PIN;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the A0 signal high, indicating that following writes are data.
|
||||||
|
//
|
||||||
|
HWREG(LCD_A0_BASE + GPIO_O_DATA + (LCD_A0_PIN << 2)) = LCD_A0_PIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Initializes the display driver.
|
||||||
|
//!
|
||||||
|
//! This function initializes the ST7637 display controller on the panel,
|
||||||
|
//! preparing it to display data.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
void
|
||||||
|
Formike128x128x16Init(void)
|
||||||
|
{
|
||||||
|
unsigned long ulClockMS, ulCount;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Get the value to pass to SysCtlDelay() in order to delay for 1 ms.
|
||||||
|
//
|
||||||
|
ulClockMS = SysCtlClockGet() / (3 * 1000);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Enable the GPIO peripherals used to interface to the ST7637.
|
||||||
|
//
|
||||||
|
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
|
||||||
|
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);
|
||||||
|
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
|
||||||
|
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOG);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Configure the pins that connect to the LCD as GPIO outputs.
|
||||||
|
//
|
||||||
|
GPIOPinTypeGPIOOutput(LCD_A0_BASE, LCD_A0_PIN);
|
||||||
|
GPIOPinTypeGPIOOutput(LCD_WR_BASE, LCD_WR_PIN);
|
||||||
|
GPIOPinTypeGPIOOutput(LCD_RD_BASE, LCD_RD_PIN);
|
||||||
|
GPIOPinTypeGPIOOutput(LCD_BL_BASE, LCD_BL_PIN);
|
||||||
|
GPIOPinTypeGPIOOutput(LCD_DATA_BASE, 0xff);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the LCD control pins to their default values.
|
||||||
|
//
|
||||||
|
GPIOPinWrite(LCD_A0_BASE, LCD_A0_PIN, LCD_A0_PIN);
|
||||||
|
GPIOPinWrite(LCD_WR_BASE, LCD_WR_PIN | LCD_RD_PIN,
|
||||||
|
LCD_WR_PIN | LCD_RD_PIN);
|
||||||
|
GPIOPinWrite(LCD_BL_BASE, LCD_BL_PIN, 0);
|
||||||
|
GPIOPinWrite(LCD_DATA_BASE, 0xff, 0x00);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Perform a software reset of the ST7637.
|
||||||
|
//
|
||||||
|
WriteCommand(0x01);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Delay for 120ms.
|
||||||
|
//
|
||||||
|
SysCtlDelay(ulClockMS * 120);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Disable auto-load of mask rom data.
|
||||||
|
//
|
||||||
|
WriteCommand(0xD7);
|
||||||
|
WriteData(0xBF);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the OTP control mode to read.
|
||||||
|
//
|
||||||
|
WriteCommand(0xE0);
|
||||||
|
WriteData(0x00);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Delay for 10ms.
|
||||||
|
//
|
||||||
|
SysCtlDelay(ulClockMS * 10);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start the OTP read.
|
||||||
|
//
|
||||||
|
WriteCommand(0xE3);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Delay for 20ms.
|
||||||
|
//
|
||||||
|
SysCtlDelay(ulClockMS * 20);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Cancel the OTP read (it should have finished by now).
|
||||||
|
//
|
||||||
|
WriteCommand(0xE1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Turn off the display.
|
||||||
|
//
|
||||||
|
WriteCommand(0x28);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Exit sleep mode.
|
||||||
|
//
|
||||||
|
WriteCommand(0x11);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Delay for 50ms.
|
||||||
|
//
|
||||||
|
SysCtlDelay(ulClockMS * 50);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Program the LCD supply voltage V0 to 14V.
|
||||||
|
//
|
||||||
|
WriteCommand(0xC0);
|
||||||
|
WriteData(0x04);
|
||||||
|
WriteData(0x01);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Select an LCD bias voltage ratio of 1/12.
|
||||||
|
//
|
||||||
|
WriteCommand(0xC3);
|
||||||
|
WriteData(0x00);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Enable the x8 booster circuit.
|
||||||
|
//
|
||||||
|
WriteCommand(0xC4);
|
||||||
|
WriteData(0x07);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Invert the column scan direction for the panel.
|
||||||
|
//
|
||||||
|
WriteCommand(0xB7);
|
||||||
|
WriteData(0xC0);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Select 16bpp, 5-6-5 data input mode.
|
||||||
|
//
|
||||||
|
WriteCommand(0x3A);
|
||||||
|
WriteData(0x05);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Select the memory scanning direction. The scanning mode does not matter
|
||||||
|
// for this driver since the row/column selects will constrain the writes
|
||||||
|
// to the desired area of the display.
|
||||||
|
//
|
||||||
|
WriteCommand(0x36);
|
||||||
|
WriteData(0x00);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Turn on the display.
|
||||||
|
//
|
||||||
|
WriteCommand(0x29);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Clear the contents of the display buffer.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2A);
|
||||||
|
WriteData(0x00);
|
||||||
|
WriteData(0x7F);
|
||||||
|
WriteCommand(0x2B);
|
||||||
|
WriteData(0x01);
|
||||||
|
WriteData(0x80);
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
for(ulCount = 0; ulCount < (128 * 128); ulCount++)
|
||||||
|
{
|
||||||
|
WriteData(0x00);
|
||||||
|
WriteData(0x00);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Enable normal operation of the LCD.
|
||||||
|
//
|
||||||
|
WriteCommand(0x13);
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Turns on the backlight.
|
||||||
|
//!
|
||||||
|
//! This function turns on the backlight on the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
void
|
||||||
|
Formike128x128x16BacklightOn(void)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Assert the signal that turns on the backlight.
|
||||||
|
//
|
||||||
|
HWREG(LCD_BL_BASE + GPIO_O_DATA + (LCD_BL_PIN << 2)) = LCD_BL_PIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Turns off the backlight.
|
||||||
|
//!
|
||||||
|
//! This function turns off the backlight on the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
void
|
||||||
|
Formike128x128x16BacklightOff(void)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Deassert the signal that turns on the backlight.
|
||||||
|
//
|
||||||
|
HWREG(LCD_BL_BASE + GPIO_O_DATA + (LCD_BL_PIN << 2)) = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Draws a pixel on the screen.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param lX is the X coordinate of the pixel.
|
||||||
|
//! \param lY is the Y coordinate of the pixel.
|
||||||
|
//! \param ulValue is the color of the pixel.
|
||||||
|
//!
|
||||||
|
//! This function sets the given pixel to a particular color. The coordinates
|
||||||
|
//! of the pixel are assumed to be within the extents of the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16PixelDraw(void *pvDisplayData, long lX, long lY,
|
||||||
|
unsigned long ulValue)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Set the X address of the display cursor.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2a);
|
||||||
|
WriteData(lX);
|
||||||
|
WriteData(lX);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the Y address of the display cursor.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2b);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Write the pixel value.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
WriteData(ulValue >> 8);
|
||||||
|
WriteData(ulValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Draws a horizontal sequence of pixels on the screen.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param lX is the X coordinate of the first pixel.
|
||||||
|
//! \param lY is the Y coordinate of the first pixel.
|
||||||
|
//! \param lX0 is sub-pixel offset within the pixel data, which is valid for 1
|
||||||
|
//! or 4 bit per pixel formats.
|
||||||
|
//! \param lCount is the number of pixels to draw.
|
||||||
|
//! \param lBPP is the number of bits per pixel; must be 1, 4, or 8.
|
||||||
|
//! \param pucData is a pointer to the pixel data. For 1 and 4 bit per pixel
|
||||||
|
//! formats, the most significant bit(s) represent the left-most pixel.
|
||||||
|
//! \param pucPalette is a pointer to the palette used to draw the pixels.
|
||||||
|
//!
|
||||||
|
//! This function draws a horizontal sequence of pixels on the screen, using
|
||||||
|
//! the supplied palette. For 1 bit per pixel format, the palette contains
|
||||||
|
//! pre-translated colors; for 4 and 8 bit per pixel formats, the palette
|
||||||
|
//! contains 24-bit RGB values that must be translated before being written to
|
||||||
|
//! the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16PixelDrawMultiple(void *pvDisplayData, long lX, long lY,
|
||||||
|
long lX0, long lCount, long lBPP,
|
||||||
|
const unsigned char *pucData,
|
||||||
|
const unsigned char *pucPalette)
|
||||||
|
{
|
||||||
|
unsigned long ulByte;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the extent of the line along the X axis.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2a);
|
||||||
|
WriteData(lX);
|
||||||
|
WriteData(lX + lCount - 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the Y address of the display cursor.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2b);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Write the data RAM write command.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Determine how to interpret the pixel data based on the number of bits
|
||||||
|
// per pixel.
|
||||||
|
//
|
||||||
|
switch(lBPP)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// The pixel data is in 1 bit per pixel format.
|
||||||
|
//
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Loop while there are more pixels to draw.
|
||||||
|
//
|
||||||
|
while(lCount)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Get the next byte of image data.
|
||||||
|
//
|
||||||
|
ulByte = *pucData++;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Loop through the pixels in this byte of image data.
|
||||||
|
//
|
||||||
|
for(; (lX0 < 8) && lCount; lX0++, lCount--)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Draw this pixel in the appropriate color.
|
||||||
|
//
|
||||||
|
lBPP = ((unsigned long *)pucPalette)[(ulByte >>
|
||||||
|
(7 - lX0)) & 1];
|
||||||
|
WriteData(lBPP >> 8);
|
||||||
|
WriteData(lBPP);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start at the beginning of the next byte of image data.
|
||||||
|
//
|
||||||
|
lX0 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// The image data has been drawn.
|
||||||
|
//
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// The pixel data is in 4 bit per pixel format.
|
||||||
|
//
|
||||||
|
case 4:
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Loop while there are more pixels to draw. "Duff's device" is
|
||||||
|
// used to jump into the middle of the loop if the first nibble of
|
||||||
|
// the pixel data should not be used. Duff's device makes use of
|
||||||
|
// the fact that a case statement is legal anywhere within a
|
||||||
|
// sub-block of a switch statement. See
|
||||||
|
// http://en.wikipedia.org/wiki/Duff's_device for detailed
|
||||||
|
// information about Duff's device.
|
||||||
|
//
|
||||||
|
switch(lX0 & 1)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
while(lCount)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Get the upper nibble of the next byte of pixel data
|
||||||
|
// and extract the corresponding entry from the
|
||||||
|
// palette.
|
||||||
|
//
|
||||||
|
ulByte = (*pucData >> 4) * 3;
|
||||||
|
ulByte = (*(unsigned long *)(pucPalette + ulByte) &
|
||||||
|
0x00ffffff);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Translate this palette entry and write it to the
|
||||||
|
// screen.
|
||||||
|
//
|
||||||
|
ulByte = DPYCOLORTRANSLATE(ulByte);
|
||||||
|
WriteData(ulByte >> 8);
|
||||||
|
WriteData(ulByte);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Decrement the count of pixels to draw.
|
||||||
|
//
|
||||||
|
lCount--;
|
||||||
|
|
||||||
|
//
|
||||||
|
// See if there is another pixel to draw.
|
||||||
|
//
|
||||||
|
if(lCount)
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
//
|
||||||
|
// Get the lower nibble of the next byte of pixel
|
||||||
|
// data and extract the corresponding entry from
|
||||||
|
// the palette.
|
||||||
|
//
|
||||||
|
ulByte = (*pucData++ & 15) * 3;
|
||||||
|
ulByte = (*(unsigned long *)(pucPalette + ulByte) &
|
||||||
|
0x00ffffff);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Translate this palette entry and write it to the
|
||||||
|
// screen.
|
||||||
|
//
|
||||||
|
ulByte = DPYCOLORTRANSLATE(ulByte);
|
||||||
|
WriteData(ulByte >> 8);
|
||||||
|
WriteData(ulByte);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Decrement the count of pixels to draw.
|
||||||
|
//
|
||||||
|
lCount--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// The image data has been drawn.
|
||||||
|
//
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// The pixel data is in 8 bit per pixel format.
|
||||||
|
//
|
||||||
|
case 8:
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Loop while there are more pixels to draw.
|
||||||
|
//
|
||||||
|
while(lCount--)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Get the next byte of pixel data and extract the
|
||||||
|
// corresponding entry from the palette.
|
||||||
|
//
|
||||||
|
ulByte = *pucData++ * 3;
|
||||||
|
ulByte = *(unsigned long *)(pucPalette + ulByte) & 0x00ffffff;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Translate this palette entry and write it to the screen.
|
||||||
|
//
|
||||||
|
ulByte = DPYCOLORTRANSLATE(ulByte);
|
||||||
|
WriteData(ulByte >> 8);
|
||||||
|
WriteData(ulByte);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// The image data has been drawn.
|
||||||
|
//
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Flushes any cached drawing operations.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//!
|
||||||
|
//! This functions flushes any cached drawing operations to the display. This
|
||||||
|
//! is useful when a local frame buffer is used for drawing operations, and the
|
||||||
|
//! flush would copy the local frame buffer to the display. For the ST7637
|
||||||
|
//! driver, the flush is a no operation.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16Flush(void *pvDisplayData)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// There is nothing to be done.
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Draws a horizontal line.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param lX1 is the X coordinate of the start of the line.
|
||||||
|
//! \param lX2 is the X coordinate of the end of the line.
|
||||||
|
//! \param lY is the Y coordinate of the line.
|
||||||
|
//! \param ulValue is the color of the line.
|
||||||
|
//!
|
||||||
|
//! This function draws a horizontal line on the display. The coordinates of
|
||||||
|
//! the line are assumed to be within the extents of the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16LineDrawH(void *pvDisplayData, long lX1, long lX2, long lY,
|
||||||
|
unsigned long ulValue)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Set the extent of the line along the X axis.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2a);
|
||||||
|
WriteData(lX1);
|
||||||
|
WriteData(lX2);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the Y address of the display cursor.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2b);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
WriteData(lY + 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Write the data RAM write command.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Loop through the pixels of this horizontal line.
|
||||||
|
//
|
||||||
|
while(lX1++ <= lX2)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Write the pixel value.
|
||||||
|
//
|
||||||
|
WriteData(ulValue >> 8);
|
||||||
|
WriteData(ulValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Draws a vertical line.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param lX is the X coordinate of the line.
|
||||||
|
//! \param lY1 is the Y coordinate of the start of the line.
|
||||||
|
//! \param lY2 is the Y coordinate of the end of the line.
|
||||||
|
//! \param ulValue is the color of the line.
|
||||||
|
//!
|
||||||
|
//! This function draws a vertical line on the display. The coordinates of the
|
||||||
|
//! line are assumed to be within the extents of the display.
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16LineDrawV(void *pvDisplayData, long lX, long lY1, long lY2,
|
||||||
|
unsigned long ulValue)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Set the X address of the display cursor.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2a);
|
||||||
|
WriteData(lX);
|
||||||
|
WriteData(lX);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the extent of the line along the Y axis.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2b);
|
||||||
|
WriteData(lY1 + 1);
|
||||||
|
WriteData(lY2 + 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Write the data RAM write command.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Loop through the pixels of this vertical line.
|
||||||
|
//
|
||||||
|
while(lY1++ <= lY2)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Write the pixel value.
|
||||||
|
//
|
||||||
|
WriteData(ulValue >> 8);
|
||||||
|
WriteData(ulValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Fills a rectangle.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param pRect is a pointer to the structure describing the rectangle.
|
||||||
|
//! \param ulValue is the color of the rectangle.
|
||||||
|
//!
|
||||||
|
//! This function fills a rectangle on the display. The coordinates of the
|
||||||
|
//! rectangle are assumed to be within the extents of the display, and the
|
||||||
|
//! rectangle specification is fully inclusive (i.e. both sXMin and sXMax are
|
||||||
|
//! drawn, along with sYMin and sYMax).
|
||||||
|
//!
|
||||||
|
//! \return None.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static void
|
||||||
|
Formike128x128x16RectFill(void *pvDisplayData, const tRectangle *pRect,
|
||||||
|
unsigned long ulValue)
|
||||||
|
{
|
||||||
|
long lCount;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the extent of the rectangle along the X axis.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2a);
|
||||||
|
WriteData(pRect->sXMin);
|
||||||
|
WriteData(pRect->sXMax);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set the extent of the rectangle along the Y axis.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2b);
|
||||||
|
WriteData(pRect->sYMin + 1);
|
||||||
|
WriteData(pRect->sYMax + 1);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Write the data RAM write command.
|
||||||
|
//
|
||||||
|
WriteCommand(0x2c);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Loop through the pixels in this rectangle.
|
||||||
|
//
|
||||||
|
for(lCount = ((pRect->sXMax - pRect->sXMin + 1) *
|
||||||
|
(pRect->sYMax - pRect->sYMin + 1)); lCount > 0; lCount--)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Write the pixel value.
|
||||||
|
//
|
||||||
|
WriteData(ulValue >> 8);
|
||||||
|
WriteData(ulValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! Translates a 24-bit RGB color to a display driver-specific color.
|
||||||
|
//!
|
||||||
|
//! \param pvDisplayData is a pointer to the driver-specific data for this
|
||||||
|
//! display driver.
|
||||||
|
//! \param ulValue is the 24-bit RGB color. The least-significant byte is the
|
||||||
|
//! blue channel, the next byte is the green channel, and the third byte is the
|
||||||
|
//! red channel.
|
||||||
|
//!
|
||||||
|
//! This function translates a 24-bit RGB color into a value that can be
|
||||||
|
//! written into the display's frame buffer in order to reproduce that color,
|
||||||
|
//! or the closest possible approximation of that color.
|
||||||
|
//!
|
||||||
|
//! \return Returns the display-driver specific color.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
static unsigned long
|
||||||
|
Formike128x128x16ColorTranslate(void *pvDisplayData, unsigned long ulValue)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// Translate from a 24-bit RGB color to a 5-6-5 RGB color.
|
||||||
|
//
|
||||||
|
return(DPYCOLORTRANSLATE(ulValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
//! The display structure that describes the driver for the Formike Electronic
|
||||||
|
//! KWH015C04-F01 CSTN panel with an ST7637 controller.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
const tDisplay g_sFormike128x128x16 =
|
||||||
|
{
|
||||||
|
sizeof(tDisplay),
|
||||||
|
0,
|
||||||
|
128,
|
||||||
|
128,
|
||||||
|
Formike128x128x16PixelDraw,
|
||||||
|
Formike128x128x16PixelDrawMultiple,
|
||||||
|
Formike128x128x16LineDrawH,
|
||||||
|
Formike128x128x16LineDrawV,
|
||||||
|
Formike128x128x16RectFill,
|
||||||
|
Formike128x128x16ColorTranslate,
|
||||||
|
Formike128x128x16Flush
|
||||||
|
};
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Close the Doxygen group.
|
||||||
|
//! @}
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* FreeRTOS.org demo wrappers. These are required so the prototypes for the
|
||||||
|
functions are the same as for the display drivers used by other evaluation
|
||||||
|
kits. */
|
||||||
|
|
||||||
|
static tContext sContext;
|
||||||
|
|
||||||
|
void vFormike128x128x16Clear( void )
|
||||||
|
{
|
||||||
|
const tRectangle xRectangle = { 0, 0, 127, 127 };
|
||||||
|
|
||||||
|
GrContextForegroundSet( &sContext, ClrBlack );
|
||||||
|
GrRectFill( &sContext, &xRectangle );
|
||||||
|
GrContextForegroundSet(&sContext, ClrWhite);
|
||||||
|
}
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
void vFormike128x128x16StringDraw( const char *pcString, unsigned long lX, unsigned long lY, unsigned char ucColor )
|
||||||
|
{
|
||||||
|
GrContextForegroundSet(&sContext, ClrWhite);
|
||||||
|
GrStringDraw( &sContext, pcString, strlen( pcString ), lX, lY, false );
|
||||||
|
}
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
void vFormike128x128x16Init( unsigned long ul )
|
||||||
|
{
|
||||||
|
tRectangle rectScreen;
|
||||||
|
const unsigned char *pcAppName = "www.FreeRTOS.org";
|
||||||
|
|
||||||
|
( void ) ul;
|
||||||
|
|
||||||
|
Formike128x128x16Init();
|
||||||
|
Formike128x128x16BacklightOn();
|
||||||
|
GrContextInit(&sContext, &g_sFormike128x128x16);
|
||||||
|
GrContextFontSet(&sContext, &g_sFontCmss12);
|
||||||
|
rectScreen.sXMin = 0;
|
||||||
|
|
||||||
|
/* Fill the screen with a black rectangle. */
|
||||||
|
rectScreen.sYMin = 0;
|
||||||
|
rectScreen.sXMax = g_sFormike128x128x16.usWidth - 1;
|
||||||
|
rectScreen.sYMax = g_sFormike128x128x16.usHeight - 1;
|
||||||
|
GrContextForegroundSet(&sContext, ClrBlack);
|
||||||
|
GrRectFill(&sContext, &rectScreen);
|
||||||
|
}
|
||||||
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
void vFormike128x128x16ImageDraw( const unsigned char *pucImage, unsigned long ulX, unsigned long ulY, unsigned long ulWidth, unsigned long ulHeight )
|
||||||
|
{
|
||||||
|
GrImageDraw( &sContext, pucImage, ( long ) ulX, ( long ) ulY);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
51
Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/formike128x128x16.h
Normal file
51
Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/formike128x128x16.h
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// formike128x128x16.h - Prototypes for the Formike Electronic KWH015C04-F01
|
||||||
|
// display driver.
|
||||||
|
//
|
||||||
|
// Copyright (c) 2008 Luminary Micro, Inc. All rights reserved.
|
||||||
|
//
|
||||||
|
// Software License Agreement
|
||||||
|
//
|
||||||
|
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
|
||||||
|
// exclusively on LMI's microcontroller products.
|
||||||
|
//
|
||||||
|
// The software is owned by LMI and/or its suppliers, and is protected under
|
||||||
|
// applicable copyright laws. All rights are reserved. You may not combine
|
||||||
|
// this software with "viral" open-source software in order to form a larger
|
||||||
|
// program. Any use in violation of the foregoing restrictions may subject
|
||||||
|
// the user to criminal sanctions under applicable laws, as well as to civil
|
||||||
|
// liability for the breach of the terms and conditions of this license.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
|
||||||
|
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
|
||||||
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
|
||||||
|
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
|
||||||
|
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
|
||||||
|
//
|
||||||
|
// This is part of revision 2523 of the Stellaris Peripheral Driver Library.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
|
||||||
|
#ifndef __FORMIKE128X128X16_H__
|
||||||
|
#define __FORMIKE128X128X16_H__
|
||||||
|
|
||||||
|
//*****************************************************************************
|
||||||
|
//
|
||||||
|
// Prototypes for the globals exported by this driver.
|
||||||
|
//
|
||||||
|
//*****************************************************************************
|
||||||
|
extern void Formike128x128x16Init(void);
|
||||||
|
extern void Formike128x128x16BacklightOn(void);
|
||||||
|
extern void Formike128x128x16BacklightOff(void);
|
||||||
|
extern const tDisplay g_sFormike128x128x16;
|
||||||
|
|
||||||
|
/* FreeRTOS.org demo wrappers. These are required so the prototypes for the
|
||||||
|
functions are the same as for the display drivers used by other evaluation
|
||||||
|
kits. */
|
||||||
|
void vFormike128x128x16Clear( void );
|
||||||
|
void vFormike128x128x16StringDraw( const char *pcString, unsigned long lX, unsigned long lY, unsigned char ucColor );
|
||||||
|
void vFormike128x128x16Init( unsigned long ul );
|
||||||
|
void vFormike128x128x16ImageDraw( const unsigned char *pucImage, unsigned long ulX, unsigned long ulY, unsigned long ulWidth, unsigned long ulHeight );
|
||||||
|
|
||||||
|
#endif // __FORMIKE128X128X16_H__
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
@ -82,6 +82,16 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* Please ensure to read http://www.freertos.org/portLM3Sxxxx_Eclipse.html
|
||||||
|
* which provides information on configuring and running this demo for the
|
||||||
|
* various Luminary Micro EKs.
|
||||||
|
*************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Standard includes. */
|
/* Standard includes. */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -91,6 +101,17 @@
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
#include "semphr.h"
|
#include "semphr.h"
|
||||||
|
|
||||||
|
/* Hardware library includes. */
|
||||||
|
#include "hw_memmap.h"
|
||||||
|
#include "hw_types.h"
|
||||||
|
#include "hw_sysctl.h"
|
||||||
|
#include "sysctl.h"
|
||||||
|
#include "gpio.h"
|
||||||
|
#include "grlib.h"
|
||||||
|
#include "rit128x96x4.h"
|
||||||
|
#include "osram128x64x4.h"
|
||||||
|
#include "formike128x128x16.h"
|
||||||
|
|
||||||
/* Demo app includes. */
|
/* Demo app includes. */
|
||||||
#include "BlockQ.h"
|
#include "BlockQ.h"
|
||||||
#include "death.h"
|
#include "death.h"
|
||||||
|
@ -106,14 +127,6 @@
|
||||||
#include "QPeek.h"
|
#include "QPeek.h"
|
||||||
#include "recmutex.h"
|
#include "recmutex.h"
|
||||||
|
|
||||||
/* Hardware library includes. */
|
|
||||||
#include "hw_memmap.h"
|
|
||||||
#include "hw_types.h"
|
|
||||||
#include "hw_sysctl.h"
|
|
||||||
#include "sysctl.h"
|
|
||||||
#include "gpio.h"
|
|
||||||
#include "rit128x96x4.h"
|
|
||||||
#include "osram128x64x4.h"
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -149,6 +162,7 @@ the jitter time in nano seconds. */
|
||||||
|
|
||||||
/* Constants used when writing strings to the display. */
|
/* Constants used when writing strings to the display. */
|
||||||
#define mainCHARACTER_HEIGHT ( 9 )
|
#define mainCHARACTER_HEIGHT ( 9 )
|
||||||
|
#define mainMAX_ROWS_128 ( mainCHARACTER_HEIGHT * 14 )
|
||||||
#define mainMAX_ROWS_96 ( mainCHARACTER_HEIGHT * 10 )
|
#define mainMAX_ROWS_96 ( mainCHARACTER_HEIGHT * 10 )
|
||||||
#define mainMAX_ROWS_64 ( mainCHARACTER_HEIGHT * 7 )
|
#define mainMAX_ROWS_64 ( mainCHARACTER_HEIGHT * 7 )
|
||||||
#define mainFULL_SCALE ( 15 )
|
#define mainFULL_SCALE ( 15 )
|
||||||
|
@ -199,6 +213,11 @@ unsigned portLONG ulIdleError = pdFALSE;
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*************************************************************************
|
||||||
|
* Please ensure to read http://www.freertos.org/portLM3Sxxxx_Eclipse.html
|
||||||
|
* which provides information on configuring and running this demo for the
|
||||||
|
* various Luminary Micro EKs.
|
||||||
|
*************************************************************************/
|
||||||
int main( void )
|
int main( void )
|
||||||
{
|
{
|
||||||
prvSetupHardware();
|
prvSetupHardware();
|
||||||
|
@ -272,6 +291,7 @@ void vApplicationTickHook( void )
|
||||||
{
|
{
|
||||||
static xOLEDMessage xMessage = { "PASS" };
|
static xOLEDMessage xMessage = { "PASS" };
|
||||||
static unsigned portLONG ulTicksSinceLastDisplay = 0;
|
static unsigned portLONG ulTicksSinceLastDisplay = 0;
|
||||||
|
static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||||
|
|
||||||
/* Called from every tick interrupt. Have enough ticks passed to make it
|
/* Called from every tick interrupt. Have enough ticks passed to make it
|
||||||
time to perform our health status check again? */
|
time to perform our health status check again? */
|
||||||
|
@ -323,7 +343,8 @@ static unsigned portLONG ulTicksSinceLastDisplay = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send the message to the OLED gatekeeper for display. */
|
/* Send the message to the OLED gatekeeper for display. */
|
||||||
xQueueSendFromISR( xOLEDQueue, &xMessage, pdFALSE );
|
xHigherPriorityTaskWoken = pdFALSE;
|
||||||
|
xQueueSendFromISR( xOLEDQueue, &xMessage, &xHigherPriorityTaskWoken );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
@ -335,13 +356,14 @@ unsigned portLONG ulY, ulMaxY;
|
||||||
static portCHAR cMessage[ mainMAX_MSG_LEN ];
|
static portCHAR cMessage[ mainMAX_MSG_LEN ];
|
||||||
extern unsigned portLONG ulMaxJitter;
|
extern unsigned portLONG ulMaxJitter;
|
||||||
unsigned portBASE_TYPE uxUnusedStackOnEntry, uxUnusedStackNow;
|
unsigned portBASE_TYPE uxUnusedStackOnEntry, uxUnusedStackNow;
|
||||||
|
const unsigned portCHAR *pucImage;
|
||||||
|
|
||||||
/* Functions to access the OLED. The one used depends on the dev kit
|
/* Functions to access the OLED. The one used depends on the dev kit
|
||||||
being used. */
|
being used. */
|
||||||
void ( *vOLEDInit )( unsigned portLONG );
|
void ( *vOLEDInit )( unsigned portLONG ) = NULL;
|
||||||
void ( *vOLEDStringDraw )( const portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portCHAR );
|
void ( *vOLEDStringDraw )( const portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portCHAR ) = NULL;
|
||||||
void ( *vOLEDImageDraw )( const unsigned portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portLONG, unsigned portLONG );
|
void ( *vOLEDImageDraw )( const unsigned portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portLONG, unsigned portLONG ) = NULL;
|
||||||
void ( *vOLEDClear )( void );
|
void ( *vOLEDClear )( void ) = NULL;
|
||||||
|
|
||||||
/* Just for demo purposes. */
|
/* Just for demo purposes. */
|
||||||
uxUnusedStackOnEntry = uxTaskGetStackHighWaterMark( NULL );
|
uxUnusedStackOnEntry = uxTaskGetStackHighWaterMark( NULL );
|
||||||
|
@ -356,13 +378,24 @@ void ( *vOLEDClear )( void );
|
||||||
vOLEDImageDraw = OSRAM128x64x4ImageDraw;
|
vOLEDImageDraw = OSRAM128x64x4ImageDraw;
|
||||||
vOLEDClear = OSRAM128x64x4Clear;
|
vOLEDClear = OSRAM128x64x4Clear;
|
||||||
ulMaxY = mainMAX_ROWS_64;
|
ulMaxY = mainMAX_ROWS_64;
|
||||||
|
pucImage = pucBasicBitmap;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default : vOLEDInit = RIT128x96x4Init;
|
case SYSCTL_DID1_PRTNO_1968 :
|
||||||
|
case SYSCTL_DID1_PRTNO_8962 : vOLEDInit = RIT128x96x4Init;
|
||||||
vOLEDStringDraw = RIT128x96x4StringDraw;
|
vOLEDStringDraw = RIT128x96x4StringDraw;
|
||||||
vOLEDImageDraw = RIT128x96x4ImageDraw;
|
vOLEDImageDraw = RIT128x96x4ImageDraw;
|
||||||
vOLEDClear = RIT128x96x4Clear;
|
vOLEDClear = RIT128x96x4Clear;
|
||||||
ulMaxY = mainMAX_ROWS_96;
|
ulMaxY = mainMAX_ROWS_96;
|
||||||
|
pucImage = pucBasicBitmap;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default : vOLEDInit = vFormike128x128x16Init;
|
||||||
|
vOLEDStringDraw = vFormike128x128x16StringDraw;
|
||||||
|
vOLEDImageDraw = vFormike128x128x16ImageDraw;
|
||||||
|
vOLEDClear = vFormike128x128x16Clear;
|
||||||
|
ulMaxY = mainMAX_ROWS_128;
|
||||||
|
pucImage = pucGrLibBitmap;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,8 +406,6 @@ void ( *vOLEDClear )( void );
|
||||||
vOLEDStringDraw( "POWERED BY FreeRTOS", 0, 0, mainFULL_SCALE );
|
vOLEDStringDraw( "POWERED BY FreeRTOS", 0, 0, mainFULL_SCALE );
|
||||||
vOLEDImageDraw( pucImage, 0, mainCHARACTER_HEIGHT + 1, bmpBITMAP_WIDTH, bmpBITMAP_HEIGHT );
|
vOLEDImageDraw( pucImage, 0, mainCHARACTER_HEIGHT + 1, bmpBITMAP_WIDTH, bmpBITMAP_HEIGHT );
|
||||||
|
|
||||||
uxUnusedStackNow = uxTaskGetStackHighWaterMark( NULL );
|
|
||||||
|
|
||||||
for( ;; )
|
for( ;; )
|
||||||
{
|
{
|
||||||
/* Wait for a message to arrive that requires displaying. */
|
/* Wait for a message to arrive that requires displaying. */
|
||||||
|
@ -397,69 +428,9 @@ void ( *vOLEDClear )( void );
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
void vApplicationIdleHook( void )
|
|
||||||
{
|
|
||||||
/* This is just a sanity check function to test the port is
|
|
||||||
functioning correctly. It can be removed from real applications.
|
|
||||||
|
|
||||||
Fill the general purpose registers with known values. */
|
|
||||||
__asm volatile( " mov r11, #10 \n"
|
|
||||||
" add r0, r11, #1 \n"
|
|
||||||
" add r1, r11, #2 \n"
|
|
||||||
" add r2, r11, #3 \n"
|
|
||||||
" add r3, r11, #4 \n"
|
|
||||||
" add r4, r11, #5 \n"
|
|
||||||
" add r5, r11, #6 \n"
|
|
||||||
" add r6, r11, #7 \n"
|
|
||||||
" add r7, r11, #8 \n"
|
|
||||||
" add r8, r11, #9 \n"
|
|
||||||
" add r9, r11, #10 \n"
|
|
||||||
" add r10, r11, #11 \n"
|
|
||||||
" add r12, r11, #12" );
|
|
||||||
|
|
||||||
/* Check the values are as expected. A context switch might
|
|
||||||
have occurred since setting the register values. */
|
|
||||||
__asm volatile( " cmp r11, #10 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r0, #11 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r1, #12 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r2, #13 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r3, #14 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r4, #15 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r5, #16 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r6, #17 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r7, #18 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r8, #19 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r9, #20 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r10, #21 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" cmp r12, #22 \n"
|
|
||||||
" bne set_error_flag \n"
|
|
||||||
" bx r14 \n"
|
|
||||||
" \n" /* If an error is detected in the */
|
|
||||||
"set_error_flag: \n" /* value of a register then the error */
|
|
||||||
" ldr r1, ulIdleErrorConst\n" /* variable will be set to true. This */
|
|
||||||
" mov r0, #1 \n" /* will cause an error message to be */
|
|
||||||
" str r0, [r1] \n" /* written to the OLED. */
|
|
||||||
" bx r14 \n"
|
|
||||||
" \n"
|
|
||||||
" .align 2 \n"
|
|
||||||
"ulIdleErrorConst: .word ulIdleError" );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName )
|
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName )
|
||||||
{
|
{
|
||||||
for( ;; );
|
for( ;; );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ zero. */
|
||||||
void Timer0IntHandler( void );
|
void Timer0IntHandler( void );
|
||||||
|
|
||||||
/* Stores the value of the maximum recorded jitter between interrupts. */
|
/* Stores the value of the maximum recorded jitter between interrupts. */
|
||||||
unsigned portLONG ulMaxJitter = 0;
|
volatile unsigned portLONG ulMaxJitter = 0;
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
@ -102,6 +102,9 @@ unsigned long ulFrequency;
|
||||||
/* Just used to measure time. */
|
/* Just used to measure time. */
|
||||||
TimerLoadSet(TIMER1_BASE, TIMER_A, timerMAX_32BIT_VALUE );
|
TimerLoadSet(TIMER1_BASE, TIMER_A, timerMAX_32BIT_VALUE );
|
||||||
|
|
||||||
|
/* Ensure interrupts do not start until the scheduler is running. */
|
||||||
|
portDISABLE_INTERRUPTS();
|
||||||
|
|
||||||
/* The rate at which the timer will interrupt. */
|
/* The rate at which the timer will interrupt. */
|
||||||
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY;
|
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY;
|
||||||
TimerLoadSet( TIMER0_BASE, TIMER_A, ulFrequency );
|
TimerLoadSet( TIMER0_BASE, TIMER_A, ulFrequency );
|
||||||
|
@ -116,7 +119,8 @@ unsigned long ulFrequency;
|
||||||
|
|
||||||
void Timer0IntHandler( void )
|
void Timer0IntHandler( void )
|
||||||
{
|
{
|
||||||
unsigned portLONG ulDifference, ulCurrentCount;
|
unsigned portLONG ulDifference;
|
||||||
|
volatile unsigned portLONG ulCurrentCount;
|
||||||
static portLONG ulMaxDifference = 0, ulLastCount = 0;
|
static portLONG ulMaxDifference = 0, ulLastCount = 0;
|
||||||
|
|
||||||
/* We use the timer 1 counter value to measure the clock cycles between
|
/* We use the timer 1 counter value to measure the clock cycles between
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@
|
||||||
#define configIDLE_SHOULD_YIELD 0
|
#define configIDLE_SHOULD_YIELD 0
|
||||||
#define configUSE_CO_ROUTINES 0
|
#define configUSE_CO_ROUTINES 0
|
||||||
#define configUSE_MUTEXES 1
|
#define configUSE_MUTEXES 1
|
||||||
|
#define configCHECK_FOR_STACK_OVERFLOW 2
|
||||||
|
|
||||||
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
|
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
|
||||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
FreeRTOS.org V4.8.0 - Copyright (C) 2003-2008 Richard Barry.
|
FreeRTOS.org V5.0.0 - Copyright (C) 2003-2008 Richard Barry.
|
||||||
|
|
||||||
This file is part of the FreeRTOS.org distribution.
|
This file is part of the FreeRTOS.org distribution.
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue