Change the private default signal number to 32

and remove the unused private signal number macro

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-03-25 07:07:59 +08:00 committed by David Sidrane
parent 417b87a0a0
commit aa99d267b7
35 changed files with 36 additions and 86 deletions

View File

@ -60,7 +60,7 @@ Example Configuration:
- `CONFIG_EXAMPLES_AJOYSTICK_DEVNAME` Joystick device name. Default - `CONFIG_EXAMPLES_AJOYSTICK_DEVNAME` Joystick device name. Default
`/dev/adjoy0`. `/dev/adjoy0`.
- `CONFIG_EXAMPLES_AJOYSTICK_SIGNO` Signal used to signal the test - `CONFIG_EXAMPLES_AJOYSTICK_SIGNO` Signal used to signal the test
application. Default `13`. application. Default `32`.
## `alarm` RTC Alarm ## `alarm` RTC Alarm
@ -278,7 +278,7 @@ Example Configuration:
- `CONFIG_EXAMPLES_DJOYSTICK_DEVNAME` Joystick device name. Default - `CONFIG_EXAMPLES_DJOYSTICK_DEVNAME` Joystick device name. Default
`/dev/djoy0`. `/dev/djoy0`.
- `CONFIG_EXAMPLES_DJOYSTICK_SIGNO` Signal used to signal the test - `CONFIG_EXAMPLES_DJOYSTICK_SIGNO` Signal used to signal the test
application. Default `13`. application. Default `32`.
## `elf` ELF loader ## `elf` ELF loader
@ -940,8 +940,6 @@ This directory contains a simple test of a subset of the NX APIs defined in
- `CONFIG_EXAMPLES_NX_SERVERPRIO` The server priority. Default: `120` - `CONFIG_EXAMPLES_NX_SERVERPRIO` The server priority. Default: `120`
- `CONFIG_EXAMPLES_NX_LISTENERPRIO` The priority of the event listener thread. - `CONFIG_EXAMPLES_NX_LISTENERPRIO` The priority of the event listener thread.
Default `80`. Default `80`.
- `CONFIG_EXAMPLES_NX_NOTIFYSIGNO` The signal number to use with
`nx_eventnotify()`. Default: `4`.
The example also has the following settings and will generate an error if they The example also has the following settings and will generate an error if they
are not as expected: are not as expected:
@ -998,8 +996,6 @@ The following configuration options can be selected to customize the test:
- `CONFIG_EXAMPLES_NXTERM_SERVERPRIO` The server priority. Default: `120`. - `CONFIG_EXAMPLES_NXTERM_SERVERPRIO` The server priority. Default: `120`.
- `CONFIG_EXAMPLES_NXTERM_LISTENERPRIO` The priority of the event listener - `CONFIG_EXAMPLES_NXTERM_LISTENERPRIO` The priority of the event listener
thread. Default: `80`. thread. Default: `80`.
- `CONFIG_EXAMPLES_NXTERM_NOTIFYSIGNO` The signal number to use with
`nx_eventnotify()`. Default: `4`.
## `nxflat` NXFLAT Binary ## `nxflat` NXFLAT Binary
@ -1143,7 +1139,7 @@ The following configuration options can be selected:
- `CONFIG_EXAMPLES_NXTEXT_LISTENERPRIO` The priority of the event listener - `CONFIG_EXAMPLES_NXTEXT_LISTENERPRIO` The priority of the event listener
thread. Default: `80`. thread. Default: `80`.
- `CONFIG_EXAMPLES_NXTEXT_NOTIFYSIGNO` The signal number to use with - `CONFIG_EXAMPLES_NXTEXT_NOTIFYSIGNO` The signal number to use with
`nx_eventnotify()`. Default: `4`. `nx_eventnotify()`. Default: `32`.
The example also expects the following settings and will generate an error if The example also expects the following settings and will generate an error if
they are not as expected: they are not as expected:
@ -1766,7 +1762,7 @@ Example configuration:
Default: `1000000`. Default: `1000000`.
- `EXAMPLES_TIMER_GPIO_SIGNO` This is the signal number that is used to - `EXAMPLES_TIMER_GPIO_SIGNO` This is the signal number that is used to
notify that a timer interrupt occurred. notify that a timer interrupt occurred.
Default: `17`. Default: `32`.
- `EXAMPLES_TIMER_GPIO_STACKSIZE` This is the stack size allocated when the - `EXAMPLES_TIMER_GPIO_STACKSIZE` This is the stack size allocated when the
timer task runs. timer task runs.
Default: `2048`. Default: `2048`.

View File

@ -18,6 +18,6 @@ config EXAMPLES_AJOYSTICK_DEVNAME
config EXAMPLES_AJOYSTICK_SIGNO config EXAMPLES_AJOYSTICK_SIGNO
int "Joystick signal" int "Joystick signal"
default 13 default 32
endif endif

View File

@ -51,7 +51,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_AJOYSTICK_SIGNO #ifndef CONFIG_EXAMPLES_AJOYSTICK_SIGNO
# define CONFIG_EXAMPLES_AJOYSTICK_SIGNO 13 # define CONFIG_EXAMPLES_AJOYSTICK_SIGNO 32
#endif #endif
#define FULL_RANGE 16 #define FULL_RANGE 16

View File

@ -33,6 +33,6 @@ config EXAMPLES_ALARM_DEVPATH
config EXAMPLES_ALARM_SIGNO config EXAMPLES_ALARM_SIGNO
int "Alarm signal" int "Alarm signal"
default 1 default 32
endif # EXAMPLES_ALARM endif # EXAMPLES_ALARM

View File

@ -50,7 +50,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_BUTTONS_SIGNO #ifndef CONFIG_EXAMPLES_BUTTONS_SIGNO
# define CONFIG_EXAMPLES_BUTTONS_SIGNO 13 # define CONFIG_EXAMPLES_BUTTONS_SIGNO 32
#endif #endif
#ifndef CONFIG_INPUT_BUTTONS_POLL_DELAY #ifndef CONFIG_INPUT_BUTTONS_POLL_DELAY

View File

@ -44,7 +44,7 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
#define BUTTON_SIGNO 13 #define BUTTON_SIGNO 32
#define BUTTON_STACKSIZE 2048 #define BUTTON_STACKSIZE 2048
#define BUTTON_PRIORITY 100 #define BUTTON_PRIORITY 100
#define BUTTON_DEVPATH "/dev/buttons" #define BUTTON_DEVPATH "/dev/buttons"

View File

@ -18,6 +18,6 @@ config EXAMPLES_DJOYSTICK_DEVNAME
config EXAMPLES_DJOYSTICK_SIGNO config EXAMPLES_DJOYSTICK_SIGNO
int "Joystick signal" int "Joystick signal"
default 13 default 32
endif endif

View File

@ -50,7 +50,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_DJOYSTICK_SIGNO #ifndef CONFIG_EXAMPLES_DJOYSTICK_SIGNO
# define CONFIG_EXAMPLES_DJOYSTICK_SIGNO 13 # define CONFIG_EXAMPLES_DJOYSTICK_SIGNO 32
#endif #endif
/**************************************************************************** /****************************************************************************

View File

@ -103,10 +103,4 @@ config EXAMPLES_NX_LISTENERPRIO
---help--- ---help---
The priority of the event listener thread. Default 80. The priority of the event listener thread. Default 80.
config EXAMPLES_NX_NOTIFYSIGNO
int "Notify Signal Number"
default 4
---help---
The signal number to use with nx_eventnotify(). Default: 4
endif endif

View File

@ -134,9 +134,6 @@
#ifndef CONFIG_EXAMPLES_NX_SERVERPRIO #ifndef CONFIG_EXAMPLES_NX_SERVERPRIO
# define CONFIG_EXAMPLES_NX_SERVERPRIO 120 # define CONFIG_EXAMPLES_NX_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NX_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NX_NOTIFYSIGNO 4
#endif
#ifdef CONFIG_EXAMPLES_NX_RAWWINDOWS #ifdef CONFIG_EXAMPLES_NX_RAWWINDOWS
# define NXEGWINDOW NXWINDOW # define NXEGWINDOW NXWINDOW

View File

@ -99,9 +99,6 @@
#ifndef CONFIG_EXAMPLES_NXDEMO_SERVERPRIO #ifndef CONFIG_EXAMPLES_NXDEMO_SERVERPRIO
# define CONFIG_EXAMPLES_NXDEMO_SERVERPRIO 120 # define CONFIG_EXAMPLES_NXDEMO_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NXDEMO_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NXDEMO_NOTIFYSIGNO 4
#endif
/* Image Information ********************************************************/ /* Image Information ********************************************************/

View File

@ -102,10 +102,4 @@ config EXAMPLES_NXHELLO_LISTENERPRIO
---help--- ---help---
The priority of the event listener thread. Default 80. The priority of the event listener thread. Default 80.
config EXAMPLES_NXHELLO_NOTIFYSIGNO
int "Notify Signal Number"
default 4
---help---
The signal number to use with nx_eventnotify(). Default: 4
endif endif

View File

@ -102,9 +102,6 @@
#ifndef CONFIG_EXAMPLES_NXHELLO_SERVERPRIO #ifndef CONFIG_EXAMPLES_NXHELLO_SERVERPRIO
# define CONFIG_EXAMPLES_NXHELLO_SERVERPRIO 120 # define CONFIG_EXAMPLES_NXHELLO_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NXHELLO_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NXHELLO_NOTIFYSIGNO 4
#endif
/**************************************************************************** /****************************************************************************
* Public Types * Public Types

View File

@ -116,10 +116,4 @@ config EXAMPLES_NXIMAGE_LISTENERPRIO
---help--- ---help---
The priority of the event listener thread. Default 80. The priority of the event listener thread. Default 80.
config EXAMPLES_NXIMAGE_NOTIFYSIGNO
int "Notify Signal Number"
default 4
---help---
The signal number to use with nx_eventnotify(). Default: 4
endif endif

View File

@ -111,9 +111,6 @@
#ifndef CONFIG_EXAMPLES_NXIMAGE_SERVERPRIO #ifndef CONFIG_EXAMPLES_NXIMAGE_SERVERPRIO
# define CONFIG_EXAMPLES_NXIMAGE_SERVERPRIO 120 # define CONFIG_EXAMPLES_NXIMAGE_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NXIMAGE_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NXIMAGE_NOTIFYSIGNO 4
#endif
/* Image Information ********************************************************/ /* Image Information ********************************************************/
@ -197,7 +194,8 @@ void nximage_image(NXWINDOW hwnd);
/* Image interfaces */ /* Image interfaces */
nxgl_mxpixel_t nximage_bgcolor(void); nxgl_mxpixel_t nximage_bgcolor(void);
nxgl_mxpixel_t nximage_avgcolor(nxgl_mxpixel_t color1, nxgl_mxpixel_t color2); nxgl_mxpixel_t nximage_avgcolor(nxgl_mxpixel_t color1,
nxgl_mxpixel_t color2);
void nximage_blitrow(FAR nxgl_mxpixel_t *run, FAR const void **state); void nximage_blitrow(FAR nxgl_mxpixel_t *run, FAR const void **state);
#endif /* __APPS_EXAMPLES_NXIMAGE_NXIMAGE_H */ #endif /* __APPS_EXAMPLES_NXIMAGE_NXIMAGE_H */

View File

@ -111,10 +111,4 @@ config EXAMPLES_NXLINES_LISTENERPRIO
---help--- ---help---
The priority of the event listener thread. Default 80. The priority of the event listener thread. Default 80.
config EXAMPLES_NXLINES_NOTIFYSIGNO
int "Notify Signal Number"
default 4
---help---
The signal number to use with nx_eventnotify(). Default: 4
endif endif

View File

@ -120,9 +120,6 @@
#ifndef CONFIG_EXAMPLES_NXLINES_SERVERPRIO #ifndef CONFIG_EXAMPLES_NXLINES_SERVERPRIO
# define CONFIG_EXAMPLES_NXLINES_SERVERPRIO 120 # define CONFIG_EXAMPLES_NXLINES_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NXLINES_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NXLINES_NOTIFYSIGNO 4
#endif
/**************************************************************************** /****************************************************************************
* Public Types * Public Types

View File

@ -74,7 +74,7 @@ config EXAMPLES_NXSCOPE_TIMER_PATH
config EXAMPLES_NXSCOPE_TIMER_SIGNO config EXAMPLES_NXSCOPE_TIMER_SIGNO
int "nxscope notification signal number" int "nxscope notification signal number"
default 17 default 32
config EXAMPLES_NXSCOPE_TIMER_INTERVAL config EXAMPLES_NXSCOPE_TIMER_INTERVAL
int "nxscope timer interval (microseconds)" int "nxscope timer interval (microseconds)"

View File

@ -40,11 +40,6 @@ config EXAMPLES_NXTERM_SERVERPRIO
int "Server priority" int "Server priority"
default 120 default 120
config EXAMPLES_NXTERM_NOTIFYSIGNO
int "Notification signal"
default 4
range 1 31
config EXAMPLES_NXTERM_BPP config EXAMPLES_NXTERM_BPP
int "Pixel width" int "Pixel width"
default 16 default 16

View File

@ -184,9 +184,6 @@
#ifndef CONFIG_EXAMPLES_NXTERM_SERVERPRIO #ifndef CONFIG_EXAMPLES_NXTERM_SERVERPRIO
# define CONFIG_EXAMPLES_NXTERM_SERVERPRIO 120 # define CONFIG_EXAMPLES_NXTERM_SERVERPRIO 120
#endif #endif
#ifndef CONFIG_EXAMPLES_NXTERM_NOTIFYSIGNO
# define CONFIG_EXAMPLES_NXTERM_NOTIFYSIGNO 4
#endif
/* NX Console Device */ /* NX Console Device */

View File

@ -28,7 +28,7 @@ config EXAMPLES_ONESHOT_DELAY
config EXAMPLES_ONESHOT_SIGNO config EXAMPLES_ONESHOT_SIGNO
int "Signal number" int "Signal number"
default 13 default 32
---help--- ---help---
This is the number of the signal that will be used in the oneshot This is the number of the signal that will be used in the oneshot
notification. notification.

View File

@ -49,7 +49,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_ONESHOT_SIGNO #ifndef CONFIG_EXAMPLES_ONESHOT_SIGNO
# define CONFIG_EXAMPLES_ONESHOT_SIGNO 13 # define CONFIG_EXAMPLES_ONESHOT_SIGNO 32
#endif #endif
/* For long delays that have to be broken into segments, some loss of /* For long delays that have to be broken into segments, some loss of

View File

@ -38,7 +38,7 @@ config EXAMPLES_TIMER_NSAMPLES
config EXAMPLES_TIMER_SIGNO config EXAMPLES_TIMER_SIGNO
int "Notification signal number" int "Notification signal number"
default 17 default 32
---help--- ---help---
This is the signal number that is used to notify the test of This is the signal number that is used to notify the test of
timer expiration events. timer expiration events.

View File

@ -58,7 +58,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_TIMER_SIGNO #ifndef CONFIG_EXAMPLES_TIMER_SIGNO
# define CONFIG_EXAMPLES_TIMER_SIGNO 17 # define CONFIG_EXAMPLES_TIMER_SIGNO 32
#endif #endif
/**************************************************************************** /****************************************************************************

View File

@ -39,7 +39,7 @@ config EXAMPLES_TIMER_GPIO_INTERVAL
config EXAMPLES_TIMER_GPIO_SIGNO config EXAMPLES_TIMER_GPIO_SIGNO
int "Notification signal number" int "Notification signal number"
default 17 default 32
---help--- ---help---
This is the signal number that is used to notify that a timer This is the signal number that is used to notify that a timer
interrupt occurred. interrupt occurred.

View File

@ -18,6 +18,6 @@ config EXAMPLES_ZEROCROSS_DEVNAME
config EXAMPLES_ZEROCROSS_SIGNO config EXAMPLES_ZEROCROSS_SIGNO
int "Zero Cross signal" int "Zero Cross signal"
default 13 default 32
endif endif

View File

@ -50,7 +50,7 @@
#endif #endif
#ifndef CONFIG_EXAMPLES_ZEROCROSS_SIGNO #ifndef CONFIG_EXAMPLES_ZEROCROSS_SIGNO
# define CONFIG_EXAMPLES_ZEROCROSS_SIGNO 13 # define CONFIG_EXAMPLES_ZEROCROSS_SIGNO 32
#endif #endif
/**************************************************************************** /****************************************************************************

View File

@ -33,7 +33,7 @@
****************************************************************************/ ****************************************************************************/
#define DJOYSTICK_DEVNAME "/dev/djoy0" #define DJOYSTICK_DEVNAME "/dev/djoy0"
#define DJOYSTICK_SIGNO 13 #define DJOYSTICK_SIGNO 32
/* The set of supported joystick discretes */ /* The set of supported joystick discretes */

View File

@ -489,10 +489,10 @@ config NXWM_TOUCHSCREEN_DEVPATH
config NXWM_TOUCHSCREEN_SIGNO config NXWM_TOUCHSCREEN_SIGNO
int "Touchscreen Signal Number" int "Touchscreen Signal Number"
default 5 default 32
---help--- ---help---
The realtime signal used to wake up the touchscreen listener The realtime signal used to wake up the touchscreen listener
thread. Default: 5 thread. Default: 32
config NXWM_TOUCHSCREEN_LISTENERPRIO config NXWM_TOUCHSCREEN_LISTENERPRIO
int "Touchscreen Listener Task Priority" int "Touchscreen Listener Task Priority"
@ -552,10 +552,10 @@ config NXWM_KEYBOARD_USBHOST
config NXWM_KEYBOARD_SIGNO config NXWM_KEYBOARD_SIGNO
int "Keyboard Task Signal Number" int "Keyboard Task Signal Number"
default 6 default 33
---help--- ---help---
The realtime signal used to wake up the keyboard listener thread. The realtime signal used to wake up the keyboard listener thread.
Default: 6 Default: 33
config NXWM_KEYBOARD_BUFSIZE config NXWM_KEYBOARD_BUFSIZE
int "Keyboard Buffer Size" int "Keyboard Buffer Size"
@ -729,10 +729,10 @@ endif # NXWM_CUSTOM_CALIBRATION_ICON
config NXWM_CALIBRATION_SIGNO config NXWM_CALIBRATION_SIGNO
int "Calibration Signal Number" int "Calibration Signal Number"
default 5 default 32
---help--- ---help---
The realtime signal used to wake up the touchscreen calibration The realtime signal used to wake up the touchscreen calibration
thread. Default: 5 thread. Default: 32
config NXWM_CALIBRATION_LISTENERPRIO config NXWM_CALIBRATION_LISTENERPRIO
int "Calibration Task Priority" int "Calibration Task Priority"

View File

@ -423,7 +423,7 @@
#endif #endif
#ifndef CONFIG_NXWM_TOUCHSCREEN_SIGNO #ifndef CONFIG_NXWM_TOUCHSCREEN_SIGNO
# define CONFIG_NXWM_TOUCHSCREEN_SIGNO 5 # define CONFIG_NXWM_TOUCHSCREEN_SIGNO 32
#endif #endif
#ifndef CONFIG_NXWM_TOUCHSCREEN_LISTENERPRIO #ifndef CONFIG_NXWM_TOUCHSCREEN_LISTENERPRIO
@ -459,7 +459,7 @@
#endif #endif
#ifndef CONFIG_NXWM_KEYBOARD_SIGNO #ifndef CONFIG_NXWM_KEYBOARD_SIGNO
# define CONFIG_NXWM_KEYBOARD_SIGNO 6 # define CONFIG_NXWM_KEYBOARD_SIGNO 33
#endif #endif
#ifndef CONFIG_NXWM_KEYBOARD_BUFSIZE #ifndef CONFIG_NXWM_KEYBOARD_BUFSIZE
@ -532,7 +532,7 @@
#endif #endif
#ifndef CONFIG_NXWM_CALIBRATION_SIGNO #ifndef CONFIG_NXWM_CALIBRATION_SIGNO
# define CONFIG_NXWM_CALIBRATION_SIGNO 5 # define CONFIG_NXWM_CALIBRATION_SIGNO 32
#endif #endif
#ifndef CONFIG_NXWM_CALIBRATION_LISTENERPRIO #ifndef CONFIG_NXWM_CALIBRATION_LISTENERPRIO

View File

@ -114,7 +114,7 @@
#endif #endif
#ifndef CONFIG_TWM4NX_CALIBRATION_SIGNO #ifndef CONFIG_TWM4NX_CALIBRATION_SIGNO
# define CONFIG_TWM4NX_CALIBRATION_SIGNO 5 # define CONFIG_TWM4NX_CALIBRATION_SIGNO 32
#endif #endif
#ifndef CONFIG_TWM4NX_CALIBRATION_LISTENERPRIO #ifndef CONFIG_TWM4NX_CALIBRATION_LISTENERPRIO

View File

@ -448,7 +448,7 @@
*/ */
#ifndef CONFIG_TWM4NX_INPUT_SIGNO #ifndef CONFIG_TWM4NX_INPUT_SIGNO
# define CONFIG_TWM4NX_INPUT_SIGNO 6 # define CONFIG_TWM4NX_INPUT_SIGNO 33
#endif #endif
#ifndef CONFIG_TWM4NX_INPUT_LISTENERPRIO #ifndef CONFIG_TWM4NX_INPUT_LISTENERPRIO

View File

@ -69,7 +69,7 @@
#endif #endif
#ifndef CONFIG_NETINIT_SIGNO #ifndef CONFIG_NETINIT_SIGNO
# define CONFIG_NETINIT_SIGNO 18 # define CONFIG_NETINIT_SIGNO 32
#endif #endif
#ifndef CONFIG_NETINIT_THREAD_STACKSIZE #ifndef CONFIG_NETINIT_THREAD_STACKSIZE

View File

@ -90,7 +90,7 @@ if NETINIT_MONITOR
config NETINIT_SIGNO config NETINIT_SIGNO
int "Notification signal number" int "Notification signal number"
default 18 default 32
---help--- ---help---
The network monitor logic will receive signals when there is any The network monitor logic will receive signals when there is any
change in the link status. This setting may be used to customize change in the link status. This setting may be used to customize

View File

@ -48,7 +48,7 @@
#define TIMER_DEFAULT_DEVPATH "/dev/timer0" #define TIMER_DEFAULT_DEVPATH "/dev/timer0"
#define TIMER_DEFAULT_INTERVAL 1000000 #define TIMER_DEFAULT_INTERVAL 1000000
#define TIMER_DEFAULT_NSAMPLES 20 #define TIMER_DEFAULT_NSAMPLES 20
#define TIMER_DEFAULT_SIGNO 17 #define TIMER_DEFAULT_SIGNO 32
#define TIMER_DEFAULT_RANGE 1 #define TIMER_DEFAULT_RANGE 1
#define OPTARG_TO_VALUE(value, type, base) \ #define OPTARG_TO_VALUE(value, type, base) \