1
1
/*
2
- Copyright (c) 2020 SiWi Embedded Solutions. All right reserved.
2
+ Copyright (c) 2021 WAYBYTE Solutions. All right reserved.
3
3
4
4
This library is free software; you can redistribute it and/or
5
5
modify it under the terms of the GNU Lesser General Public
@@ -23,17 +23,19 @@ int g_ioHandles[GPIO_PIN_MAX];
23
23
int g_ioModes[GPIO_PIN_MAX];
24
24
25
25
static const uint32_t adc_channel_map[6 ][2 ] = {
26
- {GPIO_1 , ADC_CH1},
27
- {GPIO_21 , ADC_CH2},
28
- {GPIO_31 , ADC_CH3},
29
- {GPIO_32 , ADC_CH4},
26
+ {GPIO_0 , ADC_CH1},
27
+ {GPIO_20 , ADC_CH2},
28
+ {GPIO_30 , ADC_CH3},
29
+ {GPIO_31 , ADC_CH4},
30
30
{GPIO_PIN_MAX, ADC_CH0},
31
+ #ifdef PLATFORM_M56
31
32
{GPIO_PIN_MAX + 1 , ADC_CH5},
33
+ #endif
32
34
};
33
35
34
36
static const uint32_t pwm_channel_map[2 ][2 ] = {
35
- {GPIO_1 , PWM_CH0},
36
- {GPIO_36 , PWM_CH1},
37
+ {GPIO_0 , PWM_CH0},
38
+ {GPIO_35 , PWM_CH1},
37
39
};
38
40
39
41
int pin2adc_channel (uint32_t pin)
@@ -100,7 +102,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
100
102
case URC_CFUN_STATE_IND:
101
103
break ;
102
104
case URC_COMING_CALL_IND:
103
- debug (DBG_OFF, " Incoming voice call from: %s\n " , ((ST_ComingCall *)param2)->phoneNumber );
105
+ debug (DBG_OFF, " Incoming voice call from: %s\n " , ((struct callinfo_t *)param2)->phoneNumber );
104
106
/* Take action here, Answer/Hang-up */
105
107
break ;
106
108
case URC_CALL_STATE_IND:
@@ -148,6 +150,6 @@ static void urc_callback(unsigned int param1, unsigned int param2)
148
150
149
151
void variant_init (void )
150
152
{
151
- /* Initialize Siwi system task */
152
- siwilib_init (DEFAULT_STDIO_PORT, urc_callback);
153
+ /* Initialize LogicROM */
154
+ logicrom_init (DEFAULT_STDIO_PORT, urc_callback);
153
155
}
0 commit comments