mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-06-10 19:15:59 +00:00
more cleanup
This commit is contained in:
parent
1f6f610c61
commit
cd37e379f8
@ -139,26 +139,6 @@ int main(void)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
||||||
//HAL_Delay(1);
|
|
||||||
//HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12, GPIO_PIN_RESET);
|
|
||||||
//HAL_Delay(100);
|
|
||||||
//HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12, GPIO_PIN_SET);#
|
|
||||||
//testCan(&hcan1);
|
|
||||||
|
|
||||||
/*HAL_CAN_GetRxMessage(&hcan1, CAN_RX_FIFO0, &rxHeader, canRX);
|
|
||||||
if (canRX[0] != 0){
|
|
||||||
HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_8);
|
|
||||||
HAL_Delay(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint8_t csend[] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08};
|
|
||||||
//HAL_CAN_AddTxMessage(&hcan1,&txHeader,csend,&canMailbox);*/
|
|
||||||
/*HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_RESET);
|
|
||||||
HAL_Delay(100);
|
|
||||||
HAL_GPIO_WritePin(GPIOD,GPIO_PIN_8, GPIO_PIN_SET);*/
|
|
||||||
|
|
||||||
//testCanMsg(&hcan1, canRX);
|
|
||||||
|
|
||||||
if (received == 1){
|
if (received == 1){
|
||||||
testCanMsg(&hcan1, canRX);
|
testCanMsg(&hcan1, canRX);
|
||||||
received = 0;
|
received = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user