mirror of
https://github.com/drasko/codezero.git
synced 2026-02-22 14:53:14 +01:00
Timer capability added, Baremetal5 added as Timer Sevice, Code not
tested yet.
This commit is contained in:
@@ -151,6 +151,18 @@ cap_strings = { 'ipc' : \
|
||||
\t\t\t\t.start = 0, .end = 0, .size = 0,
|
||||
\t\t\t},
|
||||
'''
|
||||
, 'timer' : \
|
||||
'''
|
||||
\t\t\t[${idx}] = {
|
||||
\t\t\t\t/* For device selection */
|
||||
\t\t\t\t.target = ${cid},
|
||||
\t\t\t\t.uattr = CAP_DEVTYPE_TIMER | (${devnum} << 16),
|
||||
\t\t\t\t.type = CAP_TYPE_MAP_PHYSMEM | CAP_RTYPE_CONTAINER,
|
||||
\t\t\t\t.access = CAP_MAP_READ | CAP_MAP_WRITE | CAP_MAP_EXEC |
|
||||
\t\t\t\t\tCAP_MAP_CACHED | CAP_MAP_UNCACHED | CAP_MAP_UNMAP | CAP_MAP_UTCB,
|
||||
\t\t\t\t.start = 0, .end = 0, .size = 0,
|
||||
\t\t\t},
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ CONT%(cn)d_BAREMETAL_PROJ1 'Hello World'
|
||||
CONT%(cn)d_BAREMETAL_PROJ2 'Thread Library Demo'
|
||||
CONT%(cn)d_BAREMETAL_PROJ3 'Test Project'
|
||||
CONT%(cn)d_BAREMETAL_PROJ4 'UART Service'
|
||||
CONT%(cn)d_BAREMETAL_PROJ5 'Timer Service'
|
||||
|
||||
choices cont%(cn)d_baremetal_params
|
||||
CONT%(cn)d_BAREMETAL_PROJ0
|
||||
@@ -165,6 +166,7 @@ choices cont%(cn)d_baremetal_params
|
||||
CONT%(cn)d_BAREMETAL_PROJ2
|
||||
CONT%(cn)d_BAREMETAL_PROJ3
|
||||
CONT%(cn)d_BAREMETAL_PROJ4
|
||||
CONT%(cn)d_BAREMETAL_PROJ5
|
||||
default CONT%(cn)d_BAREMETAL_PROJ0
|
||||
|
||||
menu cont%(cn)d_default_pager_params
|
||||
@@ -218,14 +220,23 @@ symbols
|
||||
cont%(cn)d_device_uart1 'Container %(cn)d UART1 Menu'
|
||||
cont%(cn)d_device_uart2 'Container %(cn)d UART2 Menu'
|
||||
cont%(cn)d_device_uart3 'Container %(cn)d UART3 Menu'
|
||||
cont%(cn)d_device_timer1 'Container %(cn)d TIMER1 Menu'
|
||||
cont%(cn)d_device_timer2 'Container %(cn)d TIMER2 Menu'
|
||||
cont%(cn)d_device_timer3 'Container %(cn)d TIMER3 Menu'
|
||||
|
||||
CONT%(cn)d_CAP_UART1_DEVICE_USE 'Container %(cn)d UART1 Enable'
|
||||
CONT%(cn)d_CAP_UART2_DEVICE_USE 'Container %(cn)d UART2 Enable'
|
||||
CONT%(cn)d_CAP_UART3_DEVICE_USE 'Container %(cn)d UART3 Enable'
|
||||
CONT%(cn)d_CAP_TIMER1_DEVICE_USE 'Container %(cn)d TIMER1 Enable'
|
||||
CONT%(cn)d_CAP_TIMER2_DEVICE_USE 'Container %(cn)d TIMER2 Enable'
|
||||
CONT%(cn)d_CAP_TIMER3_DEVICE_USE 'Container %(cn)d TIMER3 Enable'
|
||||
|
||||
default CONT%(cn)d_CAP_UART1_DEVICE_USE from n
|
||||
default CONT%(cn)d_CAP_UART2_DEVICE_USE from n
|
||||
default CONT%(cn)d_CAP_UART3_DEVICE_USE from n
|
||||
default CONT%(cn)d_CAP_TIMER1_DEVICE_USE from n
|
||||
default CONT%(cn)d_CAP_TIMER2_DEVICE_USE from n
|
||||
default CONT%(cn)d_CAP_TIMER3_DEVICE_USE from n
|
||||
|
||||
# Note: We are suppressing the menu not symbol here, as in future
|
||||
# we will add new parameters to menu, so suprpressing each symbol
|
||||
@@ -290,6 +301,66 @@ when CONT3_CAP_UART3_DEVICE_USE == y suppress
|
||||
cont1_device_uart3
|
||||
cont2_device_uart3
|
||||
|
||||
when CONT0_CAP_TIMER1_DEVICE_USE == y suppress
|
||||
cont1_device_timer1
|
||||
cont2_device_timer1
|
||||
cont3_device_timer1
|
||||
|
||||
when CONT1_CAP_TIMER1_DEVICE_USE == y suppress
|
||||
cont0_device_timer1
|
||||
cont2_device_timer1
|
||||
cont3_device_timer1
|
||||
|
||||
when CONT2_CAP_TIMER1_DEVICE_USE == y suppress
|
||||
cont0_device_timer1
|
||||
cont1_device_timer1
|
||||
cont3_device_timer1
|
||||
|
||||
when CONT3_CAP_TIMER1_DEVICE_USE == y suppress
|
||||
cont0_device_timer1
|
||||
cont1_device_timer1
|
||||
cont2_device_timer1
|
||||
|
||||
when CONT0_CAP_TIMER2_DEVICE_USE == y suppress
|
||||
cont1_device_timer2
|
||||
cont2_device_timer2
|
||||
cont3_device_timer2
|
||||
|
||||
when CONT1_CAP_TIMER2_DEVICE_USE == y suppress
|
||||
cont0_device_timer2
|
||||
cont2_device_timer2
|
||||
cont3_device_timer2
|
||||
|
||||
when CONT2_CAP_TIMER2_DEVICE_USE == y suppress
|
||||
cont0_device_timer2
|
||||
cont1_device_timer2
|
||||
cont3_device_timer2
|
||||
|
||||
when CONT3_CAP_TIMER2_DEVICE_USE == y suppress
|
||||
cont0_device_timer2
|
||||
cont1_device_timer2
|
||||
cont2_device_timer2
|
||||
|
||||
when CONT0_CAP_TIMER3_DEVICE_USE == y suppress
|
||||
cont1_device_timer3
|
||||
cont2_device_timer3
|
||||
cont3_device_timer3
|
||||
|
||||
when CONT1_CAP_TIMER3_DEVICE_USE == y suppress
|
||||
cont0_device_timer3
|
||||
cont2_device_timer3
|
||||
cont3_device_timer3
|
||||
|
||||
when CONT2_CAP_TIMER3_DEVICE_USE == y suppress
|
||||
cont0_device_timer3
|
||||
cont1_device_timer3
|
||||
cont3_device_timer3
|
||||
|
||||
when CONT3_CAP_TIMER3_DEVICE_USE == y suppress
|
||||
cont0_device_timer3
|
||||
cont1_device_timer3
|
||||
cont2_device_timer3
|
||||
|
||||
menu cont%(cn)d_device_uart1
|
||||
CONT%(cn)d_CAP_UART1_DEVICE_USE
|
||||
|
||||
@@ -299,11 +370,22 @@ menu cont%(cn)d_device_uart2
|
||||
menu cont%(cn)d_device_uart3
|
||||
CONT%(cn)d_CAP_UART3_DEVICE_USE
|
||||
|
||||
menu cont%(cn)d_device_timer1
|
||||
CONT%(cn)d_CAP_TIMER1_DEVICE_USE
|
||||
|
||||
menu cont%(cn)d_device_timer2
|
||||
CONT%(cn)d_CAP_TIMER2_DEVICE_USE
|
||||
|
||||
menu cont%(cn)d_device_timer3
|
||||
CONT%(cn)d_CAP_TIMER3_DEVICE_USE
|
||||
|
||||
menu cont%(cn)d_device_list
|
||||
cont%(cn)d_device_uart1
|
||||
cont%(cn)d_device_uart2
|
||||
cont%(cn)d_device_uart3
|
||||
|
||||
cont%(cn)d_device_timer1
|
||||
cont%(cn)d_device_timer2
|
||||
cont%(cn)d_device_timer3
|
||||
#
|
||||
# Settings for Custom Capabilities
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user