From 3d0f03a56d30f893f5cba8eb3d857e22c2c75368 Mon Sep 17 00:00:00 2001 From: Benjamin Vedder Date: Sat, 19 Feb 2022 15:37:12 +0100 Subject: [PATCH] Added headers, let me know if I missed someone or got it wrong --- encoder/ABI.c | 19 +++++++++++++++++++ encoder/ABI.h | 19 +++++++++++++++++++ encoder/AD2S1205.c | 20 ++++++++++++++++++++ encoder/AD2S1205.h | 20 ++++++++++++++++++++ encoder/AS504x.c | 19 +++++++++++++++++++ encoder/AS504x.h | 19 +++++++++++++++++++ encoder/ENC_SINCOS.c | 20 ++++++++++++++++++++ encoder/ENC_SINCOS.h | 20 ++++++++++++++++++++ encoder/MT6816.c | 21 +++++++++++++++++++++ encoder/MT6816.h | 20 ++++++++++++++++++++ encoder/TS5700N8501.c | 20 ++++++++++++++++++++ encoder/TS5700N8501.h | 20 ++++++++++++++++++++ encoder/encoder.c | 19 +++++++++++++++++++ encoder/encoder.h | 20 ++++++++++++++++++++ encoder/encoder_datatype.h | 18 ++++++++++++++++++ lispBM/lispif_vesc_extensions.c | 2 +- 16 files changed, 295 insertions(+), 1 deletion(-) diff --git a/encoder/ABI.c b/encoder/ABI.c index a080063b..8d78ffcf 100644 --- a/encoder/ABI.c +++ b/encoder/ABI.c @@ -1,3 +1,22 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #include "encoder/ABI.h" diff --git a/encoder/ABI.h b/encoder/ABI.h index 8f1b77f0..08947ab2 100644 --- a/encoder/ABI.h +++ b/encoder/ABI.h @@ -1,3 +1,22 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_ABI_H_ #define ENCODER_ABI_H_ diff --git a/encoder/AD2S1205.c b/encoder/AD2S1205.c index 6c7d6d71..2bdffb25 100644 --- a/encoder/AD2S1205.c +++ b/encoder/AD2S1205.c @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #include "encoder/AD2S1205.h" diff --git a/encoder/AD2S1205.h b/encoder/AD2S1205.h index 8be4260e..bb8a5e21 100644 --- a/encoder/AD2S1205.h +++ b/encoder/AD2S1205.h @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_AD2S1205_H_ #define ENCODER_AD2S1205_H_ diff --git a/encoder/AS504x.c b/encoder/AS504x.c index b9131305..9c723907 100644 --- a/encoder/AS504x.c +++ b/encoder/AS504x.c @@ -1,3 +1,22 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #include "encoder/AS504x.h" diff --git a/encoder/AS504x.h b/encoder/AS504x.h index ed5cff7f..7d9064ce 100644 --- a/encoder/AS504x.h +++ b/encoder/AS504x.h @@ -1,3 +1,22 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_AS504X_H_ #define ENCODER_AS504X_H_ diff --git a/encoder/ENC_SINCOS.c b/encoder/ENC_SINCOS.c index 7352116c..2e93dc84 100644 --- a/encoder/ENC_SINCOS.c +++ b/encoder/ENC_SINCOS.c @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #include "encoder/ENC_SINCOS.h" diff --git a/encoder/ENC_SINCOS.h b/encoder/ENC_SINCOS.h index 319ba98c..c0c5ef07 100644 --- a/encoder/ENC_SINCOS.h +++ b/encoder/ENC_SINCOS.h @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_ENC_SINCOS_H_ #define ENCODER_ENC_SINCOS_H_ diff --git a/encoder/MT6816.c b/encoder/MT6816.c index ad99800d..f931a5b9 100644 --- a/encoder/MT6816.c +++ b/encoder/MT6816.c @@ -1,3 +1,24 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + #include "encoder/MT6816.h" #include "ch.h" diff --git a/encoder/MT6816.h b/encoder/MT6816.h index aa907729..3feade72 100644 --- a/encoder/MT6816.h +++ b/encoder/MT6816.h @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Marcos Chaparro mchaparro@powerdesigns.ca + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_MT6816_H_ #define ENCODER_MT6816_H_ diff --git a/encoder/TS5700N8501.c b/encoder/TS5700N8501.c index 22871e1e..a154a54a 100644 --- a/encoder/TS5700N8501.c +++ b/encoder/TS5700N8501.c @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + #include "encoder/TS5700N8501.h" #include "ch.h" diff --git a/encoder/TS5700N8501.h b/encoder/TS5700N8501.h index 04dc336a..b88ac675 100644 --- a/encoder/TS5700N8501.h +++ b/encoder/TS5700N8501.h @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + #ifndef ENCODER_TS5700N8501_H_ #define ENCODER_TS5700N8501_H_ diff --git a/encoder/encoder.c b/encoder/encoder.c index 53576c37..bd465870 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -1,3 +1,22 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #include "encoder.h" diff --git a/encoder/encoder.h b/encoder/encoder.h index fd06ff78..2b53ddd9 100644 --- a/encoder/encoder.h +++ b/encoder/encoder.h @@ -1,3 +1,23 @@ +/* + Copyright 2016 - 2022 Benjamin Vedder benjamin@vedder.se + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ + #ifndef ENCODER_ENCODER_H_ #define ENCODER_ENCODER_H_ diff --git a/encoder/encoder_datatype.h b/encoder/encoder_datatype.h index 5e916ba4..4b0ae2b5 100644 --- a/encoder/encoder_datatype.h +++ b/encoder/encoder_datatype.h @@ -1,3 +1,21 @@ +/* + Copyright 2022 Jakub Tomczak + + This file is part of the VESC firmware. + + The VESC firmware is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + The VESC firmware is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + */ #ifndef ENCODER_ENCODER_DATATYPE_H_ #define ENCODER_ENCODER_DATATYPE_H_ diff --git a/lispBM/lispif_vesc_extensions.c b/lispBM/lispif_vesc_extensions.c index 1cec321d..26f8517d 100644 --- a/lispBM/lispif_vesc_extensions.c +++ b/lispBM/lispif_vesc_extensions.c @@ -33,7 +33,7 @@ #include "timeout.h" #include "servo_dec.h" #include "servo_simple.h" -#include "encoder.h" +#include "encoder/encoder.h" #include "comm_can.h" #include "bms.h" #include "utils.h"