Skip to content

Commit 567fb33

Browse files
author
Kei
committed
Enable SensorXEL revE.
1 parent 1e9ace0 commit 567fb33

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

boards.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ XELNetwork.menu.pnum.PowerXEL.bootloader.tool = stm32flash
5252
XELNetwork.menu.pnum.PowerXEL.bootloader.file = powerXel_boot.bin
5353

5454
# SensorXEL board revE
55-
#XELNetwork.menu.pnum.SensorXEL_revE=SensorXEL_revE. (32kb RAM)
56-
#XELNetwork.menu.pnum.SensorXEL_revE.upload.maximum_data_size=32768
57-
#XELNetwork.menu.pnum.SensorXEL_revE.upload.maximum_size=52736
58-
#XELNetwork.menu.pnum.SensorXEL_revE.upload.flash_address=0x08003000
59-
#XELNetwork.menu.pnum.SensorXEL_revE.build.mcu=cortex-m3
60-
#XELNetwork.menu.pnum.SensorXEL_revE.build.board=SensorXEL_revE
61-
#XELNetwork.menu.pnum.SensorXEL_revE.build.series=STM32L1xx
62-
#XELNetwork.menu.pnum.SensorXEL_revE.build.product_line=STM32L151xBA
63-
#XELNetwork.menu.pnum.SensorXEL_revE.build.variant=XELNetwork_SensorXEL_revE
64-
#XELNetwork.menu.pnum.SensorXEL_revE.build.flash_offset=0x3200
65-
#XELNetwork.menu.pnum.SensorXEL_revE.build.cmsis_lib_gcc=arm_cortexM3l_math
66-
#XELNetwork.menu.pnum.SensorXEL_revE.build.extra_flags=-D{build.product_line} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset} -DSERIAL_TX_BUFFER_SIZE=1024 -DSERIAL_RX_BUFFER_SIZE=1024
67-
#XELNetwork.menu.pnum.SensorXEL_revE.bootloader.tool = stm32flash
68-
#XELNetwork.menu.pnum.SensorXEL_revE.bootloader.file = sensorXel_boot_revE.bin
55+
XELNetwork.menu.pnum.SensorXEL_revE=SensorXEL_revE. (32kb RAM)
56+
XELNetwork.menu.pnum.SensorXEL_revE.upload.maximum_data_size=32768
57+
XELNetwork.menu.pnum.SensorXEL_revE.upload.maximum_size=52736
58+
XELNetwork.menu.pnum.SensorXEL_revE.upload.flash_address=0x08003000
59+
XELNetwork.menu.pnum.SensorXEL_revE.build.mcu=cortex-m3
60+
XELNetwork.menu.pnum.SensorXEL_revE.build.board=SensorXEL_revE
61+
XELNetwork.menu.pnum.SensorXEL_revE.build.series=STM32L1xx
62+
XELNetwork.menu.pnum.SensorXEL_revE.build.product_line=STM32L151xBA
63+
XELNetwork.menu.pnum.SensorXEL_revE.build.variant=XELNetwork_SensorXEL_revE
64+
XELNetwork.menu.pnum.SensorXEL_revE.build.flash_offset=0x3200
65+
XELNetwork.menu.pnum.SensorXEL_revE.build.cmsis_lib_gcc=arm_cortexM3l_math
66+
XELNetwork.menu.pnum.SensorXEL_revE.build.extra_flags=-D{build.product_line} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset} -DSERIAL_TX_BUFFER_SIZE=1024 -DSERIAL_RX_BUFFER_SIZE=1024
67+
XELNetwork.menu.pnum.SensorXEL_revE.bootloader.tool = stm32flash
68+
XELNetwork.menu.pnum.SensorXEL_revE.bootloader.file = sensorXel_boot_revE.bin
6969

7070
# CommXEL board (lastest)
7171
XELNetwork.menu.pnum.CommXEL=CommXEL. (320kb RAM)

libraries/SrcWrapper/src/stm32/uart.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,10 +808,15 @@ uint8_t uart_index(UART_HandleTypeDef *huart)
808808
*/
809809
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
810810
{
811+
#if defined(ARDUINO_SensorXEL) || defined(ARDUINO_SensorXEL_revE)\
812+
|| defined(ARDUINO_PowerXEL) //|| defined(ARDUINO_CommXEL)
813+
(void)huart;
814+
#else
811815
serial_t *obj = get_serial_obj(huart);
812816
if (obj && obj->rx_callback != NULL) {
813817
obj->rx_callback(obj);
814818
}
819+
#endif
815820
}
816821

817822
/**

0 commit comments

Comments
 (0)