File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ static const BoardConfig BOARD_CONFIG = {
9898
9999 .has_mic = true,
100100
101- .ioe_rst = {hwp_gpio1 , 11 , true},
101+ .ioe_rst = {hwp_gpio1 , 44 , true},
102102};
103103extern void BSP_LCD_PowerDown (void );
104104extern void BSP_LCD_PowerUp (void );
Original file line number Diff line number Diff line change @@ -200,24 +200,37 @@ elif bld.is_asterix():
200200 'driver_vibe' ,
201201 'driver_voltage_monitor' ,
202202 ],
203- )
204-
203+ )
204+
205205elif bld .is_obelix ():
206+ bld (
207+ name = 'drivers' ,
208+ use = [
209+ 'driver_uart' ,
210+ 'driver_sf32lb' ,
211+ 'driver_vibe' ,
212+ 'driver_mpu' ,
213+ 'driver_flash' ,
214+ 'driver_gpio_defaults' ,
215+ 'driver_imu'
216+ ],
217+ )
218+
219+ elif bld .is_obelix_bb ():
206220 bld (
207221 name = 'drivers' ,
208222 use = [
209223 'driver_uart' ,
210224 'driver_sf32lb' ,
211225 'driver_mpu' ,
212226 'driver_flash' ,
213- # 'driver_accessory',
214227 'driver_gpio_defaults' ,
215228 'driver_ioe' ,
216229 'driver_motor' ,
217230 'driver_imu' ,
218231 'driver_touch' ,
219232 ],
220- )
233+ )
221234
222235if bld .env .BOARD == "obelix_bb" :
223236 bld .objects (
@@ -244,20 +257,7 @@ if bld.env.BOARD == "obelix_bb":
244257 ],
245258 )
246259
247- if bld .env .BOARD == "obelix_bb" :
248- bld .objects (
249- name = 'driver_imu' ,
250- source = [
251- 'imu/imu_obelix_bb.c' ,
252- 'imu/mmc5603/mmc5603.c' ,
253- ],
254- use = [
255- 'driver_mmc5603' ,
256- 'fw_includes' ,
257- 'root_includes' ,
258- ],
259- )
260-
260+
261261if bld .env .BOARD == "obelix_bb" :
262262 bld .objects (
263263 name = 'driver_touch' ,
@@ -950,6 +950,33 @@ elif bld.is_asterix():
950950 'root_includes' ,
951951 ],
952952 )
953+ elif bld .is_obelix ():
954+ bld .objects (
955+ name = 'driver_imu' ,
956+ source = [
957+ 'imu/imu_asterix.c' ,
958+ 'sf32lb/stubs/mag.c' ,
959+ ],
960+ use = [
961+ 'fw_includes' ,
962+ 'root_includes' ,
963+ ],
964+ )
965+ elif bld .is_obelix_bb ():
966+ bld .objects (
967+ name = 'driver_imu' ,
968+ source = [
969+ 'imu/imu_obelix_bb.c' ,
970+ 'imu/mmc5603/mmc5603.c' ,
971+ ],
972+ use = [
973+ 'driver_mmc5603' ,
974+ 'fw_includes' ,
975+ 'root_includes' ,
976+ ],
977+ )
978+
979+
953980
954981if bld .env .BOARD == "v2_0" :
955982 bld .objects (
@@ -1566,6 +1593,19 @@ elif mcu_family == 'NRF52840':
15661593 'root_includes' ,
15671594 ],
15681595 )
1596+ elif mcu_family == 'SF32LB' :
1597+ # FIXME: provide working implementation
1598+ bld .objects (
1599+ name = 'driver_vibe' ,
1600+ source = [
1601+ 'sf32lb/stubs/vibe.c' ,
1602+ ],
1603+ use = [
1604+ 'freertos' ,
1605+ 'fw_includes' ,
1606+ 'root_includes' ,
1607+ ],
1608+ )
15691609
15701610if mcu_family in ('STM32F2' , 'STM32F4' , 'STM32F7' ):
15711611 bld .objects (
You can’t perform that action at this time.
0 commit comments