Gregory Nutt
a98bc05f65
New debug macro: alert(). This is high priority, unconditional output and is used to simplify and stanardize crash error reporting.
2016-06-14 09:07:53 -06:00
Gregory Nutt
fd57fde659
Back out part of previous commit
2016-06-13 14:44:28 -06:00
Gregory Nutt
93e7b5d7a0
Eliminate some warnings
2016-06-13 14:15:54 -06:00
Gregory Nutt
0f249016a0
Eliminate some warnings
2016-06-13 14:01:32 -06:00
Gregory Nutt
bed85cc515
configs/: Remove one more reference to non-existent SPI_VERBOSE setting
2016-06-12 18:48:13 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
9ec104834a
Remove CONFIG_USARTn_ISUART
2016-05-25 11:21:48 -06:00
Gregory Nutt
249a2e48e5
Rename CONFIG_ARCH_HAVE_USARTn to CONFIG_USARTn_SERIALDRIVER
2016-05-25 10:39:23 -06:00
Gregory Nutt
fb484a581f
All GCC final arch/*/src/Makefiles: Allow --start-group and --end-group to be redefined for the case where GCC is used to link (instead of LD). Suggested by Paul Alexander Patience.
2016-05-17 10:43:15 -06:00
Gregory Nutt
99e695398c
Rename up_boot to arm_boot
2016-05-12 13:42:49 -06:00
Gregory Nutt
48106e605a
Merge in arch/ submodule
2016-04-10 07:49:41 -06:00
Gregory Nutt
bd846c2e72
All architectures: Register the schedule note driver if enabled
2016-03-17 17:00:59 -06:00
Gregory Nutt
4d4f54a789
Rename current_regs to g_current_regs; For ARM, g_current_regs needs to be an array to support multiple CPUs
2016-03-09 13:41:48 -06:00
Gregory Nutt
9c63736c98
Standard some naming if code sectino comments
2016-02-21 18:06:09 -06:00
Gregory Nutt
666cc280f4
Rename irqenable() to up_irq_enable(); rename irqdisable() to up_irq_disable()
2016-02-14 16:54:09 -06:00
Gregory Nutt
83bc1c97c3
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
2016-02-14 16:11:25 -06:00
Gregory Nutt
70e502adb0
Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-13 19:11:09 -06:00
Gregory Nutt
c62177be00
AVR: Replace explicit references to g_readytorun with indirect references via the macro this_task()
2016-02-06 13:55:15 -06:00
Gregory Nutt
afbd0f55c3
For AVR MCUs, rename up_spiinitialize to avr_spibus_initialize
2016-01-27 08:00:28 -06:00
Gregory Nutt
b7cbbab761
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:10:21 -06:00
Gregory Nutt
4bd6adb725
Add dummy hwfeatures method to all SPI interfaces
2016-01-23 15:09:38 -06:00
Gregory Nutt
4e8772dfca
ATMEGA: A few trivial updates to USART-related macros
2016-01-16 14:38:28 -06:00
Gregory Nutt
6ca2315cf0
ATMEGA: Make some naming used with the 2560 compatible with other ATmega parts
2016-01-16 13:41:49 -06:00
Gregory Nutt
4b71d74a2b
Minor typo fix in warning
2016-01-09 19:57:48 -06:00
Gregory Nutt
10001f8556
WINTOOl should be selected only for Cygwin. MSYS and native should not have it.
2016-01-09 16:34:33 -06:00
Gregory Nutt
7231439290
Test for CONFIG_AVR_HAS_MEMX_PTR must be after inclusion of config.h
2016-01-09 08:11:25 -06:00
Gregory Nutt
d0578bfc2b
Changes to last pull request needed for conformance with coding standard
2016-01-09 07:25:24 -06:00
Gregory Nutt
203899cca8
Merged in kloper/arch/atmega2560 (pull request #48 )
...
debug macros for AVR (take #2 ): Introduce debug macro hooks for AVR
2016-01-09 07:17:35 -06:00
Dimitry Kloper
642b92b391
Introduce debug macro hooks for AVR
...
When AVR_HAS_MEMX_PTR is enabled provide dbg macro hooks that place
the format strings in program memory releasing RAM for other tasks.
2016-01-09 14:44:38 +02:00
Gregory Nutt
7a393f9e8b
Eliminate some warnings
2016-01-08 11:26:16 -06:00
Gregory Nutt
278701f93d
Eliminate warnings (one of which looks like a bug)
2016-01-08 11:22:57 -06:00
Gregory Nutt
68e3f5d9ce
All AVR toolchain configuration names must end with _TOOLCHAIN to work properly with nuttx/tools/testbuilds.sh
2016-01-08 10:39:59 -06:00
Gregory Nutt
dfe3240973
AVR: Rename ATMEGA_PC_SIZE to AVR_PC_SIZE since it must be used in common AVR logic. Add definitions for other AVR architectures as necessary for compilation
2016-01-07 08:14:09 -06:00
Gregory Nutt
951c40215a
Atmega: Eliminate some warnings
2016-01-06 09:50:15 -06:00
Dimitry Kloper
16212f19e7
AVR: Introduce Atmel Toolchain as a configuration option
...
Atmel's AVR8 toolchain is similar to WinAVR, but at present moment
it has one important feature that WinAVR does not. The __flash and __memx
allow built in comiler support for transparent program memory pointers.
Functions that use such pointers will work both with RAM arrays and
flash memory arrays. The compiler generates an appropriate code automatically.
For systems with tiny memory like atmega, this is very important and
allows to move all static const strings into flash.
2016-01-04 21:53:44 +02:00
Dimitry Kloper
b9f06dc5e3
ATMEGA2560: Fix compilation when CONFIG_DISABLE_SIGNALS is undefined
2016-01-04 21:39:48 +02:00
Gregory Nutt
71c289ce4f
Rename all architecture files of form xyz_internal.h to just xyz.h
2015-12-29 18:07:11 -06:00
Gregory Nutt
68cc2ecfd2
ATMEGA2560: Most cosmetic changes from review of pull request
2015-12-29 13:02:20 -06:00
Dimitry Kloper
0b8a43abbb
Merged nuttx/arch/master into atmega2560
2015-12-29 19:10:57 +02:00
Dimitry Kloper
3c0c90e07d
Minor identation fix
2015-12-29 19:09:20 +02:00
Dimitry Kloper
3746305f12
AVR: Minor adapt to a differnt TIMER IRQ notions for Atmega2560
2015-12-29 19:08:13 +02:00
Dimitry Kloper
556954141e
AVR: Add support for AVR chips with 24-bit Program Counter register
...
The main challenge is to change the context switch code to be aware of the
extra byte that is saved on stack during call and intterupt. This relates also
to the task startup and signal handling.
2015-12-29 19:01:06 +02:00
Dimitry Kloper
99aab135b2
AVR: Make setting of XDIV optional for platforms that support it
...
Put setting of XDIV into ifdef since not AVR platforms support it.
2015-12-29 18:56:12 +02:00
Dimitry Kloper
462307f4b7
AVR: Clear EIND on system start-up
...
For AVR chips (Atmega2560) Program Counter register larger than 16 bits
EIND represents the most significant byte that is used for EICALL and EIJMP
instructions.
Setting of EIND is normally managed by compiler, but I have seen a situation
when for first 64K flash segment compiler didn't set EINT explicitly. Thus
setting EIND at system startup makes sure we are safe.
2015-12-29 18:46:28 +02:00
Dimitry Kloper
9a4a06bf47
AVR: Explicitly disable interrupts as the first step of system init
...
Disabling interrupts at the very beginning of system init does not
make sense after reset since interrupts are disabled anyway. But
it is very convenient for debugging purposes, in situations when the
system misbehaves and ocassionally jumps to zero.
2015-12-29 18:35:36 +02:00
Dimitry Kloper
ff5e589f76
AVR: add support for TCGETS and TCSETS terminal controls
...
Sometimes I need UART to support binary data transfer, TCSETS/TCGETS allow
stwitching into binary mode.
2015-12-29 17:56:44 +02:00
Dimitry Kloper
d6f6e41a36
AVR: Fix linking error for AVR platforms that have no ARCH_HAVE_LEDS defined
...
Minor bug while working on Arduino Mega support. I didn't add support
for ARCH_HAVE_LEDS and have it undefined in .config. To my surprise compilation
failed since AVR code had a related function compiled in.
2015-12-29 17:26:11 +02:00
Dimitry Kloper
8f8b88f532
AVR: Fix resulting nuttx file name when EXEEXT is not empty
...
arch/avr/Makefile is adding extra EXEEXT to the
nuttix image file. This was not discovered since in most configurations
EXEEXT is empty string.
2015-12-29 17:19:30 +02:00
Dimitry Kloper
41bdcd16b8
Change notation of PCH and PCL registers into PC0 and PC1
...
This is for forthcoming Atmega2560 support. The Atmega2560 has 24-bit PC
thus, PCH and PCL would become PCH, PCM and PCL (M for Middle). The problem
that in this notation PCM is equivalent to former PCH. This makes compatable
porting kind of difficult, at least for my taste.
Instead PCH becomes PC0 and PCL becomes PC1 (think of the index as order of
bytes pushed to stack when call is performed, PC0 as MSB goes first, PC1
goes to stack second, and for 24-bit PC, PC2 as LDB goes last).
2015-12-28 00:46:24 +02:00
Dimitry Kloper
0c1294d332
Introduce a new Kconfig variant for Atmega2560 and add some basic stuff
...
Modify Kconfig to be aware of the new chip.
Add all the interrupt hanler constants and vectors where needed.
Move contsatnts from generic to specific headers when needed.
2015-12-27 01:47:35 +02:00
Gregory Nutt
46da8a07ef
Costmetic changes from review of merge request
2015-12-26 16:39:51 -06:00
Dimitry Kloper
0998876ef6
AVR: Fix interrupt bombing during a context switch
...
TCB_RESTORE macro has a problem when restoring Status Register
and returning from the function (in up_fullcontextrestore()) as non-atomic action.
If there is some frequently occurring interrupt, chances are that we will
enter the interrupt handler just before ret is called.
The handler may cause a context switch which, when unrolled, will
execute up_fullcontextrestore() function that employs TCB_RESTORE.
It will be interrupted again just before return, leaving part of context
switch content un-popped again, etc... Thus, chances are that the stack will
eventually blow.
Note that this is not some edge condition fix. This bug was discovered when
testing AVR with UART configured to work on 115200 baud rate.
2015-12-26 21:55:40 +02:00
Gregory Nutt
927b1dcc1f
Initialize the telnet factory as part of the common architecture intialization
2015-12-07 11:40:29 -06:00
Gregory Nutt
2afd4595e4
Re-think how __KERNEL__ option is set in architecture Makefiles. Should be passed in EXTRADEFINES
2015-11-26 06:59:35 -06:00
Gregory Nutt
4aa3dcb51a
__KERNEL__ should be defined when compiler architecture specific logic
2015-11-25 18:05:36 -06:00
Gregory Nutt
14d7ede265
All instances of up_initialize() should call loop_register() is CONFIG_DEV_LOOP=y
2015-11-25 17:10:41 -06:00
Gregory Nutt
076b05b460
In Kconfig of all CPUs with 16-bit address, force CONFIG_MM_SMALL=y
2015-11-23 12:16:35 -06:00
Gregory Nutt
79df561669
Rename board_led_off to board_autoled_off
2015-11-01 09:09:36 -06:00
Gregory Nutt
b28e32e3d3
Rename board_led_on to board_autoled_on
2015-11-01 09:07:06 -06:00
Gregory Nutt
a73d266469
AVR: Fix some spacing issues
2015-10-07 16:24:54 -06:00
Gregory Nutt
7a63e976ad
Remove TABs
2015-10-04 16:00:42 -06:00
Gregory Nutt
6fc6d17760
Fix some spacing problems
2015-10-04 14:59:08 -06:00
Gregory Nutt
9caf33e13b
Standardize the width of all comment boxes in C header files
2015-10-03 07:28:30 -06:00
Gregory Nutt
7ced84c5f0
Standardize the width of all comment boxes in C files
2015-10-03 07:25:03 -06:00
Gregory Nutt
36726b1bc4
Standardize the width of all comment boxes in header files
2015-10-02 17:42:29 -06:00
Gregory Nutt
26347891ac
Apply same fix for ARMv7-M to other architectures
2015-09-30 11:21:04 -06:00
Gregory Nutt
26eada3446
In all up_initialize() functions, automatically initialize TUN driver is so configureded
2015-09-06 09:35:29 -06:00
Gregory Nutt
975d912b40
Cosmetic: Move # of pre-processior command to column 1
2015-09-05 09:07:37 -06:00
Paul A. Patience
a0dc724a5d
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT32UC3 clock initialization: AVR32_CLOCK_PLL_OSC1 should be AVR32_CLOCK_PLL0_OSC1 and AVR32_CLOCK_PLL1_OSC1.
2015-09-01 13:47:06 -04:00
Gregory Nutt
01cfe8c315
Networking: Move where the local loopback device is initialized from board_app_intiialize() to up_intiialize() so that it will happen automatically
2015-08-24 14:25:49 -06:00
Gregory Nutt
e29220183a
Fix some common typos
2015-08-16 10:59:10 -06:00
Gregory Nutt
0843af5367
Fixes that call sched_resume_scheduler and sched_suspend_scheduler must include nuttx/sched.h
2015-07-29 16:51:26 -06:00
Gregory Nutt
eddf8161a5
Add scheduler resume/suspend calls to all implementations of up_release_pending()
2015-07-26 10:13:29 -06:00
Gregory Nutt
37969b8279
Add scheduler resume/suspend calls to all implementations of up_reprioritize_rtr()
2015-07-26 09:46:28 -06:00
Gregory Nutt
838c5355eb
Correct resume scheduler hooks and add suspend scheduler hooks to all implementations of up_unblock_task
2015-07-26 09:07:47 -06:00
Gregory Nutt
a92c0a10ab
Add scheduler resume/suspend calls in all implementations of up_block_task()
2015-07-26 08:31:23 -06:00
Gregory Nutt
9d98177daa
Add logic to reset the replenish the sporadic scheduler when a task is resumed
2015-07-24 09:54:28 -06:00
Gregory Nutt
e9a3cc3457
Remove the arch/ subdirectory; replace it with a submodule
2015-07-22 10:56:22 -06:00
Gregory Nutt
8e4f3bddb6
Add CONFIG_NETDEV_LATEINIT that can be used to suppress calls to up_netinitialize() from early initialization
2015-07-17 07:20:16 -06:00
Gregory Nutt
652371c919
Add CONFIG_NETDEV_LATEINIT that can be used to suppress calls to up_netinitialize() from early initialization
2015-07-17 07:20:16 -06:00
Gregory Nutt
fb926e7283
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
29136e51cc
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
b578c98fa9
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
c07a9632cc
Clean up and review of header files for conformance to standards
2015-06-12 19:17:42 -06:00
Gregory Nutt
c5b15d0b31
Clean up and review of header files for conformance to standards
2015-06-12 19:17:42 -06:00
Gregory Nutt
7bd3d5eaf1
Clean up and review of header files for conformance to standards
2015-06-12 19:00:52 -06:00
Gregory Nutt
be0fb09250
Clean up and review of header files for conformance to standards
2015-06-12 19:00:52 -06:00
Gregory Nutt
38735fafeb
More missing semicolons after DEBUGASSERT
2015-05-27 13:32:39 -06:00
Gregory Nutt
0476d8168a
More missing semicolons after DEBUGASSERT
2015-05-27 13:32:39 -06:00
Gregory Nutt
d77a19f0a2
Two r's and only two r's in the word interrupt
2015-04-23 14:04:43 -06:00
Gregory Nutt
0092f79696
Two r's and only two r's in the word interrupt
2015-04-23 14:04:43 -06:00
Gregory Nutt
ae15c6963c
Make some file section headers more consistent with standard
2015-04-08 08:04:12 -06:00
Gregory Nutt
16814e2b00
Make some file section headers more consistent with standard
2015-04-08 08:04:12 -06:00
Gregory Nutt
a5043d5e60
Add support for dumping board-specific information on assertion. From David Sidrane
2015-03-04 07:00:29 -06:00
Gregory Nutt
76007d28f5
Add support for dumping board-specific information on assertion. From David Sidrane
2015-03-04 07:00:29 -06:00