Skip to content

Conversation

@fckruegel
Copy link
Contributor

MAX11612: 4 channels VCC=5V0 Int VRef=4.096V
MAX11613: 4 channels VCC=3V3 Int VRef=2.048V
MAX11614: 8 channels VCC=5V0 Int VRef=4.096V
MAX11615: 8 channels VCC=3V3 Int VRef=2.048V
MAX11616: 12 channels VCC=5V0 Int VRef=4.096V
MAX11617: 12 channels VCC=3V3 Int VRef=2.048V
Note: The chips' auto-scanning feature is not supported in this revision.

Summary

Impact

Testing

@acassis
Copy link
Contributor

acassis commented Nov 6, 2020

Thank you very much @fckruegel I really like when people put good comments on drivers. You did it and include nice tables.
I just need to confirm with other if it is OK to include the author together in the Apache license. @justinmclean @btashton @v01d @xiaoxiang781216 @gregory-nutt Is it possible to include the Author name in the Apache License? Please note that he didn't include the word Copyright.

@protobits
Copy link
Contributor

But what is the motivation behind it? Is it a previously existing file being shared to us (pre existing copyright)?
See here: https://www.apache.org/legal/src-headers.html
IMHO the goal is to have the Apache header unchanged for original works contributed to NuttX

@patacongo
Copy link
Contributor

patacongo commented Nov 6, 2020 via email

@acassis
Copy link
Contributor

acassis commented Nov 6, 2020

Thank you @v01d and @gregory-nutt it make sense. What do you suggest? Could we add an AUTHORS file at root of NuttX and let people to include their name and what driver or contribution they did?

@fckruegel Please remove the Author line from the Apache license file. We should fine another way the list the authors.

@justinmclean
Copy link
Member

justinmclean commented Nov 6, 2020 via email

@acassis
Copy link
Contributor

acassis commented Nov 11, 2020

Thank you very much @fckruegel !

@acassis
Copy link
Contributor

acassis commented Nov 11, 2020

@fckruegel hmm, there is a conflict in the include/nuttx/analog/ioctl.h did you see that? I think it was modified since you submit the original PR.

@fckruegel
Copy link
Contributor Author

fckruegel commented Nov 11, 2020

@fckruegel hmm, there is a conflict in the include/nuttx/analog/ioctl.h did you see that? I think it was modified since you submit the original PR.

Yes, I know. This affects the IOCTL code allocations. The STM32G4 codes came in in the meantime. Just put my block of numbers after these.

Maybe we should add another system call analog_get_ioctl_range(), which would allow the OS to allocate the ranges dynamically. Linux switches to this model from a staic allocation of device major numbers after they ran out of number space.

@acassis
Copy link
Contributor

acassis commented Nov 12, 2020

@fckruegel hmm, there is a conflict in the include/nuttx/analog/ioctl.h did you see that? I think it was modified since you submit the original PR.

Yes, I know. This affects the IOCTL code allocations. The STM32G4 codes came in in the meantime. Just put my block of numbers after these.

Maybe we should add another system call analog_get_ioctl_range(), which would allow the OS to allocate the ranges dynamically. Linux switches to this model from a staic allocation of device major numbers after they ran out of number space.

Yes, it could be a good idea. But I suggest you just fix the ioctl using the static approach and then propose to make the ioctl definition more dynamic. What do you think? Makes sense?

@xiaoxiang781216
Copy link
Contributor

@fckruegel could you resolve the conflict?

@xiaoxiang781216
Copy link
Contributor

@fckruegel please cherry-pick this patch to your master to resolve the conflict:
xiaoxiang781216@4fbe15d
I don't have the right to update your git.

@fckruegel
Copy link
Contributor Author

@fckruegel please cherry-pick this patch to your master to resolve the conflict:
xiaoxiang781216@4fbe15d
I don't have the right to update your git.

I'm not very familiar with git and github right now. Can you tell me what steps I need to perform?

@xiaoxiang781216
Copy link
Contributor

xiaoxiang781216 commented Nov 15, 2020

run the following commands in your local git:

git remote add xiaoxiang781216 git@github.com:xiaoxiang781216/incubator-nuttx.git
git checkout master
git cherry-pick xiaoxiang781216/fckruegel-master
git push -f origin master

@fckruegel
Copy link
Contributor Author

fckruegel commented Nov 15, 2020

run the following commands in your local git:

git remote add xiaoxiang781216 git@github.com:xiaoxiang781216/incubator-nuttx.git
git checkout master
git cherry-pick xiaoxiang781216/fckruegel-master
git push -f origin master

Oops- I get an error message.

ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git remote add xiaoxiang781216 git@github.com:xiaoxiang781216/incubator-nuttx.git
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git remote -v
origin  https://github.com/fckruegel/incubator-nuttx-1 (fetch)
origin  https://github.com/fckruegel/incubator-nuttx-1 (push)
upstream        https://github.com/apache/incubator-nuttx (fetch)
upstream        https://github.com/apache/incubator-nuttx (push)
xiaoxiang781216 git@github.com:xiaoxiang781216/incubator-nuttx.git (fetch)
xiaoxiang781216 git@github.com:xiaoxiang781216/incubator-nuttx.git (push)
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git cherry-pick xiaoxiang781216/fckruegel-master
fatal: bad revision 'xiaoxiang781216/fckruegel-master'
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$

I'm stuck.

@xiaoxiang781216
Copy link
Contributor

pleaase run "git fetch xiaoxiang781216" and cherry-pick again.

@fckruegel
Copy link
Contributor Author

fckruegel commented Nov 15, 2020

pleaase run "git fetch xiaoxiang781216" and cherry-pick again.

ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git fetch xiaoxiang781216
The authenticity of host 'github.com (140.82.121.4)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,140.82.121.4' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git config user.name
Frank-Christian Kruegel
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git config user.email
fchk@istda.com
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$

@xiaoxiang781216
Copy link
Contributor

how about this:

git remote remove xiaoxiang781216
git remote add xiaoxiang781216 https://github.com/xiaoxiang781216/incubator-nuttx.git
git fetch xiaoxiang781216
``

@fckruegel
Copy link
Contributor Author

fckruegel commented Nov 15, 2020

how about this:

git remote remove xiaoxiang781216
git remote add xiaoxiang781216 https://github.com/xiaoxiang781216/incubator-nuttx.git
git fetch xiaoxiang781216
``
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git remote remove xiaoxiang781216
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git remote add xiaoxiang781216 https://github.com/xiaoxiang781216/incubator-nuttx.git
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git remote -v
origin  https://github.com/fckruegel/incubator-nuttx-1 (fetch)
origin  https://github.com/fckruegel/incubator-nuttx-1 (push)
upstream        https://github.com/apache/incubator-nuttx (fetch)
upstream        https://github.com/apache/incubator-nuttx (push)
xiaoxiang781216 https://github.com/xiaoxiang781216/incubator-nuttx.git (fetch)
xiaoxiang781216 https://github.com/xiaoxiang781216/incubator-nuttx.git (push)
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git fetch xiaoxiang781216
remote: Enumerating objects: 275, done.
remote: Counting objects: 100% (275/275), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 309 (delta 260), reused 259 (delta 253), pack-reused 34
Receiving objects: 100% (309/309), 48.57 KiB | 8.09 MiB/s, done.
Resolving deltas: 100% (261/261), completed with 180 local objects.
From https://github.com/xiaoxiang781216/incubator-nuttx
 * [new branch]            fckruegel-master -> xiaoxiang781216/fckruegel-master
 * [new branch]            idle             -> xiaoxiang781216/idle
 * [new branch]            master           -> xiaoxiang781216/master
 * [new branch]            openamp          -> xiaoxiang781216/openamp
 * [new branch]            uname            -> xiaoxiang781216/uname
 * [new branch]            wchar            -> xiaoxiang781216/wchar
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git cherry-pick xiaoxiang781216/fckruegel-master
Auto-merging include/nuttx/analog/ioctl.h
[master 12365e6e79] Support for MAX1161X family of I2C 12 bit ADC chips: MAX11612:  4 channels VCC=5V0 Int VRef=4.096V MAX11613:  4 channels VCC=3V3 Int VRef=2.048V MAX11614:  8 channels VCC=5V0 Int VRef=4.096V MAX11615:  8 channels VCC=3V3 Int VRef=2.048V MAX11616: 12 channels VCC=5V0 Int VRef=4.096V MAX11617: 12 channels VCC=3V3 Int VRef=2.048V Note: The chips' auto-scanning feature is not supported in this revision.
 Date: Fri Nov 6 11:01:03 2020 +0100
 1 file changed, 2 insertions(+), 3 deletions(-)
ubuntu@kruegel2:~/nuttx/incubator-nuttx-1$ git push -f origin master
Username for 'https://github.com': fckruegel
Password for 'https://fckruegel@github.com':
Enumerating objects: 551, done.
Counting objects: 100% (469/469), done.
Delta compression using up to 16 threads
Compressing objects: 100% (104/104), done.
Writing objects: 100% (308/308), 59.82 KiB | 5.44 MiB/s, done.
Total 308 (delta 252), reused 239 (delta 193)
remote: Resolving deltas: 100% (252/252), completed with 119 local objects.
To https://github.com/fckruegel/incubator-nuttx-1
   c79bda6e4f..12365e6e79  master -> master

Looks good. Thank you very much.

extinguish pushed a commit to extinguish/nuttx that referenced this pull request Aug 6, 2024
common/gnu/fork.S 29: unknown instruction
  .syntax unified
--^
[asarm] (error apache#2230) common/gnu/fork.S 81: bad directive
  .type up_fork , function
------------------^
[asarm] (error apache#2067) armv7-m/arm_saveusercontext.S 31: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) armv7-m/arm_saveusercontext.S 55: bad directive
  .type up_saveusercontext , % function
--^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 65: not within valid register range
  str r12 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 4 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 66: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 5 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 67: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 6 ) ) ]
------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 72: expected a register
  str r1 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 7 ) ) ]
------------------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 75: not within valid register range
  add r1 , r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 8 ) )
-----------^

[asarm] (error apache#2071) armv7-m/arm_saveusercontext.S 89: bad parameter
  stmia r0 ! , { r2 - r11 }
--------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 93: expected a register
  mov r1 , - 1
-----------^

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
extinguish pushed a commit to extinguish/nuttx that referenced this pull request Aug 6, 2024
common/gnu/fork.S 29: unknown instruction
  .syntax unified
--^
[asarm] (error apache#2230) common/gnu/fork.S 81: bad directive
  .type up_fork , function
------------------^
[asarm] (error apache#2067) armv7-m/arm_saveusercontext.S 31: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) armv7-m/arm_saveusercontext.S 55: bad directive
  .type up_saveusercontext , % function
--^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 65: not within valid register range
  str r12 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 4 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 66: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 5 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 67: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 6 ) ) ]
------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 72: expected a register
  str r1 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 7 ) ) ]
------------------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 75: not within valid register range
  add r1 , r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 8 ) )
-----------^

[asarm] (error apache#2071) armv7-m/arm_saveusercontext.S 89: bad parameter
  stmia r0 ! , { r2 - r11 }
--------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 93: expected a register
  mov r1 , - 1
-----------^

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
extinguish pushed a commit to extinguish/nuttx that referenced this pull request Aug 10, 2024
common/gnu/fork.S 29: unknown instruction
  .syntax unified
--^
[asarm] (error apache#2230) common/gnu/fork.S 81: bad directive
  .type up_fork , function
------------------^
[asarm] (error apache#2067) armv7-m/arm_saveusercontext.S 31: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) armv7-m/arm_saveusercontext.S 55: bad directive
  .type up_saveusercontext , % function
--^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 65: not within valid register range
  str r12 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 4 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 66: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 5 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 67: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 6 ) ) ]
------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 72: expected a register
  str r1 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 7 ) ) ]
------------------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 75: not within valid register range
  add r1 , r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 8 ) )
-----------^

[asarm] (error apache#2071) armv7-m/arm_saveusercontext.S 89: bad parameter
  stmia r0 ! , { r2 - r11 }
--------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 93: expected a register
  mov r1 , - 1
-----------^

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
extinguish added a commit to extinguish/nuttx that referenced this pull request Aug 10, 2024
CC:  bch/bchlib_read.c [asarm] (error apache#2067) machine/arm/gnu/arch_setjmp.S 34: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) machine/arm/gnu/arch_setjmp.S 62: bad directive
  .type setjmp , function
-----------------^

[asarm] (error) errors during processing

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
extinguish pushed a commit to extinguish/nuttx that referenced this pull request Aug 11, 2024
common/gnu/fork.S 29: unknown instruction
  .syntax unified
--^
[asarm] (error apache#2230) common/gnu/fork.S 81: bad directive
  .type up_fork , function
------------------^
[asarm] (error apache#2067) armv7-m/arm_saveusercontext.S 31: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) armv7-m/arm_saveusercontext.S 55: bad directive
  .type up_saveusercontext , % function
--^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 65: not within valid register range
  str r12 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 4 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 66: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 5 ) ) ]
------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 67: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 6 ) ) ]
------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 72: expected a register
  str r1 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 7 ) ) ]
------------------^

[asarm] (error apache#2004) armv7-m/arm_saveusercontext.S 75: not within valid register range
  add r1 , r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 8 ) )
-----------^

[asarm] (error apache#2071) armv7-m/arm_saveusercontext.S 89: bad parameter
  stmia r0 ! , { r2 - r11 }
--------^

[asarm] (error apache#2014) armv7-m/arm_saveusercontext.S 93: expected a register
  mov r1 , - 1
-----------^

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
extinguish added a commit to extinguish/nuttx that referenced this pull request Aug 11, 2024
CC:  bch/bchlib_read.c [asarm] (error apache#2067) machine/arm/gnu/arch_setjmp.S 34: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2230) machine/arm/gnu/arch_setjmp.S 62: bad directive
  .type setjmp , function
-----------------^

[asarm] (error) errors during processing

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
acassis pushed a commit that referenced this pull request Aug 11, 2024
common/gnu/fork.S 29: unknown instruction
  .syntax unified
--^
[asarm] (error #2230) common/gnu/fork.S 81: bad directive
  .type up_fork , function
------------------^
[asarm] (error #2067) armv7-m/arm_saveusercontext.S 31: unknown instruction
  .syntax unified
--^

[asarm] (error #2230) armv7-m/arm_saveusercontext.S 55: bad directive
  .type up_saveusercontext , % function
--^

[asarm] (error #2004) armv7-m/arm_saveusercontext.S 65: not within valid register range
  str r12 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 4 ) ) ]
------^

[asarm] (error #2004) armv7-m/arm_saveusercontext.S 66: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 5 ) ) ]
------^

[asarm] (error #2004) armv7-m/arm_saveusercontext.S 67: not within valid register range
  str r14 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 6 ) ) ]
------^

[asarm] (error #2014) armv7-m/arm_saveusercontext.S 72: expected a register
  str r1 , [ r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 7 ) ) ]
------------------^

[asarm] (error #2004) armv7-m/arm_saveusercontext.S 75: not within valid register range
  add r1 , r0 , ( 4 * ( ( ( 12 ) + ( 16 ) ) + 8 ) )
-----------^

[asarm] (error #2071) armv7-m/arm_saveusercontext.S 89: bad parameter
  stmia r0 ! , { r2 - r11 }
--------^

[asarm] (error #2014) armv7-m/arm_saveusercontext.S 93: expected a register
  mov r1 , - 1
-----------^

Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
acassis pushed a commit that referenced this pull request Aug 11, 2024
CC:  bch/bchlib_read.c [asarm] (error #2067) machine/arm/gnu/arch_setjmp.S 34: unknown instruction
  .syntax unified
--^

[asarm] (error #2230) machine/arm/gnu/arch_setjmp.S 62: bad directive
  .type setjmp , function
-----------------^

[asarm] (error) errors during processing

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
extinguish added a commit to extinguish/nuttx that referenced this pull request Sep 26, 2024
[asarm] (error apache#2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 35: unknown instruction
  .syntax unified
--^

[asarm] (error apache#2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 70: unknown instruction
  .thumb_func
--^

[asarm] (error apache#2230) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 72: bad directive
  .type up_signal_handler , function
----------------------------^

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
xiaoxiang781216 pushed a commit that referenced this pull request Sep 26, 2024
[asarm] (error #2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 35: unknown instruction
  .syntax unified
--^

[asarm] (error #2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 70: unknown instruction
  .thumb_func
--^

[asarm] (error #2230) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 72: bad directive
  .type up_signal_handler , function
----------------------------^

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants