Skip to content

Commit

Permalink
Fix pinname generation on NRF52840_DK
Browse files Browse the repository at this point in the history
  • Loading branch information
janjongboom committed Apr 19, 2019
1 parent bfce8f0 commit a41fce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mbed-js/tools/generate_pins.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ def enumerate_pins(c_source_file, include_dirs, definitions):
Enumerate pins specified in PinNames.h, by looking for a PinName enum
typedef somewhere in the file.
"""
definitions += ['__attribute(x)__=', '__extension__(x)=', 'register=', '__IO=', 'uint32_t=unsigned int']
definitions += [
'__attribute(x)__=',
'__extension__(x)=',
'register=',
'__IO=',
'uint32_t=unsigned int',
'_UINT32_T_DECLARED'
]

gcc_args = ['-E', '-fmerge-all-constants']
gcc_args += ['-I' + directory for directory in include_dirs]
Expand Down
Empty file added mbed-js/tools/nrf_gpio.h
Empty file.

0 comments on commit a41fce5

Please sign in to comment.