FreeCalypso > hg > fc-tourmaline
changeset 279:4dd30fac5933
kpd_scan_functions.c: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 23 Sep 2021 23:42:41 +0000 |
parents | 75758d7a9be3 |
children | 82665effff30 |
files | src/cs/drivers/drv_app/kpd/board/kpd_scan_functions.c |
diffstat | 1 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/kpd/board/kpd_scan_functions.c Tue Sep 07 22:36:16 2021 +0000 +++ b/src/cs/drivers/drv_app/kpd/board/kpd_scan_functions.c Thu Sep 23 23:42:41 2021 +0000 @@ -66,7 +66,7 @@ #define KP_COLS 4 const T_KPD_PHYSICAL_KEY_ID keypad_layout[KP_ROWS][KP_COLS]= - { + { /* Layout of B-Sample */ {KPD_PKEY_SOFT_LEFT, KPD_PKEY_UP, KPD_PKEY_DOWN, KPD_PKEY_SOFT_RIGHT}, {KPD_PKEY_1, KPD_PKEY_2, KPD_PKEY_3, KPD_PKEY_GREEN}, @@ -78,7 +78,7 @@ #define KP_ROWS 5 #define KP_COLS 4 const T_KPD_PHYSICAL_KEY_ID keypad_layout[KP_ROWS][KP_COLS]= - { + { /* Layout of C-Sample */ {KPD_PKEY_UP, KPD_PKEY_GREEN,KPD_PKEY_SOFT_RIGHT,KPD_PKEY_DOWN}, {KPD_PKEY_1, KPD_PKEY_2, KPD_PKEY_3, KPD_PKEY_SOFT_LEFT}, @@ -90,7 +90,7 @@ #define KP_ROWS 5 #define KP_COLS 4 const T_KPD_PHYSICAL_KEY_ID keypad_layout[KP_ROWS][KP_COLS]= - { + { /* Mot C1xx keypad */ {KPD_PKEY_GREEN, KPD_PKEY_3, KPD_PKEY_2, KPD_PKEY_1}, {KPD_PKEY_UP, KPD_PKEY_6, KPD_PKEY_5, KPD_PKEY_4}, @@ -102,7 +102,7 @@ #define KP_ROWS 5 #define KP_COLS 5 const T_KPD_PHYSICAL_KEY_ID keypad_layout[KP_ROWS][KP_COLS]= - { + { /* Pirelli's keypad */ {KPD_PKEY_NAV_CENTER, KPD_PKEY_LEFT, KPD_PKEY_RIGHT, KPD_PKEY_UP, KPD_PKEY_NULL}, {KPD_PKEY_SOFT_LEFT, KPD_PKEY_SOFT_RIGHT, KPD_PKEY_GREEN, KPD_PKEY_DOWN, KPD_PKEY_VOL_UP}, @@ -114,7 +114,7 @@ #define KP_ROWS 5 #define KP_COLS 5 const T_KPD_PHYSICAL_KEY_ID keypad_layout[KP_ROWS][KP_COLS]= - { + { /* Layout of D-Sample and E-Sample */ {KPD_PKEY_GREEN, KPD_PKEY_VOL_DOWN, KPD_PKEY_VOL_UP,KPD_PKEY_SOFT_LEFT, KPD_PKEY_LEFT}, {KPD_PKEY_1, KPD_PKEY_2, KPD_PKEY_3, KPD_PKEY_REC, KPD_PKEY_RIGHT}, @@ -149,12 +149,12 @@ /** kpd_init_ctrl_reg : Initialize the Control register */ -void kpd_init_ctrl_reg(const UINT8 software_nreset, - const T_KPD_Nsoftware_mode nsoftware_mode, +void kpd_init_ctrl_reg(const UINT8 software_nreset, + const T_KPD_Nsoftware_mode nsoftware_mode, const T_KPD_PTV ptv, const T_KPD_EnableDetection long_key_process_en, const T_KPD_EnableDetection time_out_empty_en, - const T_KPD_EnableDetection time_out_long_key_en, + const T_KPD_EnableDetection time_out_long_key_en, const T_KPD_EnableDetection repeat_mode_en) { volatile UINT16 status_reg; @@ -163,9 +163,9 @@ if ( (status_reg != KPD_TEST_TIMER_DEBOUNCING) && (status_reg != KPD_TEST_TIMER_LONG_KEY) && (status_reg != KPD_TEST_TIMER_TIME_OUT) && (status_reg != KPD_TEST_TIMER_REPEAT_KEY) ) { - + /* The PTV can be programmed since the timer is not running */ - + *(volatile UINT16*) KBR_CTRL_REG = (software_nreset | nsoftware_mode << 1 | ptv << 2 | @@ -176,7 +176,7 @@ } else { - + /* The PTV must not be programmed when the timer is running */ SetGroupBits16(*(volatile unsigned short *)(KBR_CTRL_REG), 0, 1, software_nreset); @@ -189,12 +189,12 @@ } -/** kpd_software_reset : reset software +/** kpd_software_reset : reset software */ void kpd_software_reset(void) { volatile UINT16 mem_reg; - + mem_reg = (*(volatile UINT16*) KBR_CTRL_REG) & 0xFFFE; *(volatile UINT16*) KBR_CTRL_REG = mem_reg; @@ -207,7 +207,7 @@ { *(volatile UINT16*) KBR_DEBOUNCING_TIME = debouncing_time; - + } #endif /* #if (CHIPSET == 12) */ @@ -225,7 +225,7 @@ T_KPD_PHYSICAL_KEY_ID key; /* Reserve memory for message */ - mb_status = rvf_get_buf (kpd_env_ctrl_blk->prim_id, sizeof(T_KPD_KEY_PRESSED_MSG), (void **) &msg_key_pressed); + mb_status = rvf_get_buf (kpd_env_ctrl_blk->prim_id, sizeof(T_KPD_KEY_PRESSED_MSG), (void **) &msg_key_pressed); if (mb_status != RVF_RED) /* Memory allocation success */ { @@ -336,7 +336,7 @@ * * Wait a while to let bus settle * Magic value found by trial and error - * + * */ static void delay(void) {